report title was not being written

remove-priordens
Houtan Bastani 2019-11-28 16:21:45 +01:00
parent 1c7b3b09f5
commit 0c1569db72
2 changed files with 9 additions and 1 deletions

View File

@ -105,6 +105,14 @@ end
if fid_document == -1
error(['@report.write: ' msg]);
end
if ~isempty(o.title)
fprintf(fid_document, ['\\begin{titlepage}\n\\centering\n' ...
'\\vspace*{0.5cm}\n\\huge\\bfseries\n%s\n' ...
'\\vspace*{\\fill}\n\\end{titlepage}\n\\clearpage\n'], ...
o.title);
end
if isunix && ~ismac
fprintf(fid_document, '\\pgfdeclarelayer{axis background}\n');
fprintf(fid_document, '\\pgfdeclarelayer{axis lines}\n');

View File

@ -34,7 +34,7 @@ longNames = {'Coca Cola', 'Kinder Bueno', 'Pizza', ...
'Vegetarianism Is Good', 'OS X', 'Dothraki'};
%% Begin Report
rep = report('directory', 'my/report/dir');
rep = report('directory', 'my/report/dir', 'title', 'Report Title');
%% Page 1: GDP