diff --git a/matlab/reports/@section/section.m b/matlab/reports/@section/section.m index 2e3f0972b..19f9aefd5 100644 --- a/matlab/reports/@section/section.m +++ b/matlab/reports/@section/section.m @@ -21,7 +21,6 @@ function o = section(varargin) % along with Dynare. If not, see . 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/reports/@section/write.m b/matlab/reports/@section/write.m index 4848ad830..be439c43e 100644 --- a/matlab/reports/@section/write.m +++ b/matlab/reports/@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