diff --git a/matlab/reporting/@section/section.m b/matlab/reporting/@section/section.m index 2e3f0972bcf9a719cea8850e3fc6b8b07a103fb7..19f9aefd5dadbcb06a110266432b591003a9d990 100644 --- a/matlab/reporting/@section/section.m +++ b/matlab/reporting/@section/section.m @@ -21,7 +21,6 @@ function o = section(varargin) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. o = struct; -o.align = 't'; o.elements = elements(); o.cols = 1; @@ -50,6 +49,9 @@ elseif nargin > 1 end end +% Check options provided by user +assert(isint(o.cols), '@graph.graph: cols must be an integer'); + % Create section object o = class(o, 'section'); end diff --git a/matlab/reporting/@section/write.m b/matlab/reporting/@section/write.m index 4848ad8302c0081dae2e397a7504f7945451a407..be439c43e22a948cd0c8765781d0da752a506246 100644 --- a/matlab/reporting/@section/write.m +++ b/matlab/reporting/@section/write.m @@ -31,7 +31,6 @@ function o = write(o, fid) assert(fid ~= -1); fprintf(fid, '%% Section Object\n'); -%fprintf(fid, '\\begin{table}[%shtpb]%%\n', o.align); fprintf(fid, ' \\vspace{15px}\n'); fprintf(fid, '\\centering\n'); fprintf(fid, '\\noindent\\maxsizebox{\\textwidth}{!}{%%\n'); @@ -52,6 +51,5 @@ end fprintf(fid, '\\end{tabular}%%\n'); fprintf(fid, '}%%\n'); -%fprintf(fid, '\\end{table}%%\n'); fprintf(fid, '%% End Section Object\n\n'); end \ No newline at end of file