Skip to content
Snippets Groups Projects
Verified Commit 2d03c638 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

include timestamp in output files

parent 2079bbd5
No related branches found
No related tags found
No related merge requests found
Pipeline #1592 failed
......@@ -15,7 +15,7 @@ function o = writeGraphFile(o, pg, sec, row, col)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-2017 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -49,6 +49,7 @@ if fid == -1
error(['@graph.writeGraphFile: ' msg]);
end
fprintf(fid, '%% Graph Object written %s\n', datestr(now));
fprintf(fid, '\\begin{tikzpicture}[baseline');
if ~isempty(o.miscTikzPictureOptions)
fprintf(fid, ',%s', o.miscTikzPictureOptions);
......
......@@ -13,7 +13,7 @@ function o = write(o, fid, pg)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-2017 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -32,7 +32,7 @@ function o = write(o, fid, pg)
assert(fid ~= -1);
fprintf(fid, '\n%% Page Object\n');
fprintf(fid, '\n%% Page Object written %s\n', datestr(now));
if strcmpi(o.orientation, 'landscape')
fprintf(fid, '\\begin{landscape}\n');
end
......
......@@ -12,7 +12,7 @@ function o = write(o, fid)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2014-2015 Dynare Team
% Copyright (C) 2014-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -30,7 +30,8 @@ function o = write(o, fid)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert(fid ~= -1);
fprintf(fid, '%% Paragraph Object\n\\multicolumn{1}{p{\\linewidth}}{%%\n');
fprintf(fid, '%% Paragraph Object written %s\n', datestr(now));
fprintnf(fid, '\\multicolumn{1}{p{\\linewidth}}{%%\n');
if o.cols ~= 1
bc = '';
if o.balancedCols
......
......@@ -11,7 +11,7 @@ function o = write(o)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-2015 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -33,7 +33,7 @@ if fid == -1
error(['@report.write: ' msg]);
end
fprintf(fid, '%% Report Object\n');
fprintf(fid, '%% Report Object written %s\n', datestr(now));
fprintf(fid, '\\documentclass[11pt]{article}\n');
fprintf(fid, '\\usepackage[%spaper,margin=%f%s', o.paper, o.margin, o.marginUnit);
......
......@@ -15,7 +15,7 @@ function o = writeTableFile(o, pg, sec, row, col)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-2017 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -50,7 +50,7 @@ if fid == -1
error(['@report_table.writeTableFile: ' msg]);
end
fprintf(fid, '%% Report_Table Object\n');
fprintf(fid, '%% Report_Table Object written %s\n', datestr(now));
fprintf(fid, '\\setlength{\\parindent}{6pt}\n');
fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n');
......
......@@ -14,7 +14,7 @@ function o = write(o, fid, pg, sec)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-2017 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -32,7 +32,7 @@ function o = write(o, fid, pg, sec)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert(fid ~= -1);
fprintf(fid, '%% Section Object\n');
fprintf(fid, '%% Section Object written %s\n', datestr(now));
if isempty(o.elements)
warning(['reporting:section.write(): trying to print a section ' ...
'with no elements. Perhaps you forgot to overwrite the report object.']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment