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

report title was not being written

parent f2fd7524
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,14 @@ end ...@@ -105,6 +105,14 @@ end
if fid_document == -1 if fid_document == -1
error(['@report.write: ' msg]); error(['@report.write: ' msg]);
end 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 if isunix && ~ismac
fprintf(fid_document, '\\pgfdeclarelayer{axis background}\n'); fprintf(fid_document, '\\pgfdeclarelayer{axis background}\n');
fprintf(fid_document, '\\pgfdeclarelayer{axis lines}\n'); fprintf(fid_document, '\\pgfdeclarelayer{axis lines}\n');
......
...@@ -34,7 +34,7 @@ longNames = {'Coca Cola', 'Kinder Bueno', 'Pizza', ... ...@@ -34,7 +34,7 @@ longNames = {'Coca Cola', 'Kinder Bueno', 'Pizza', ...
'Vegetarianism Is Good', 'OS X', 'Dothraki'}; 'Vegetarianism Is Good', 'OS X', 'Dothraki'};
%% Begin Report %% Begin Report
rep = report('directory', 'my/report/dir'); rep = report('directory', 'my/report/dir', 'title', 'Report Title');
%% Page 1: GDP %% Page 1: GDP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment