reporting: @section: check user input

time-shift
Houtan Bastani 2013-03-15 17:34:34 +01:00
parent 5715dea155
commit ed5f2a8bf0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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