include timestamp in output files

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