reporting: @section: check user input
parent
5715dea155
commit
ed5f2a8bf0
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue