Commit a41c1c02 authored by Houtan Bastani's avatar Houtan Bastani

report title was not being written

parent f2fd7524
......@@ -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');
......
......@@ -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
......
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