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

reporting: change showdate to showDate

parent 89b0bd09
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ o.margin_unit = 'cm'; ...@@ -40,7 +40,7 @@ o.margin_unit = 'cm';
o.pages = pages(); o.pages = pages();
o.filename = 'report.tex'; o.filename = 'report.tex';
o.config = ''; o.config = '';
o.showdate = true; o.showDate = true;
o.compiler = ''; o.compiler = '';
if nargin == 1 if nargin == 1
...@@ -73,7 +73,7 @@ assert(ischar(o.title), '@report.report: title must be a string'); ...@@ -73,7 +73,7 @@ assert(ischar(o.title), '@report.report: title must be a string');
assert(ischar(o.filename), '@report.report: filename must be a string'); assert(ischar(o.filename), '@report.report: filename must be a string');
assert(ischar(o.config), '@report.report: config file must be a string'); assert(ischar(o.config), '@report.report: config file must be a string');
assert(ischar(o.compiler), '@report.report: compiler file must be a string'); assert(ischar(o.compiler), '@report.report: compiler file must be a string');
assert(islogical(o.showdate), '@report.report: showdate must be either true or false'); assert(islogical(o.showDate), '@report.report: showDate must be either true or false');
assert(isfloat(o.margin) && o.margin > 0, '@report.report: margin must be a float > 0.'); assert(isfloat(o.margin) && o.margin > 0, '@report.report: margin must be a float > 0.');
valid_margin_unit = {'cm', 'in'}; valid_margin_unit = {'cm', 'in'};
......
...@@ -54,7 +54,7 @@ else ...@@ -54,7 +54,7 @@ else
fprintf(fid, '\\usepackage{pgfplots}\n'); fprintf(fid, '\\usepackage{pgfplots}\n');
end end
if o.showdate if o.showDate
fprintf(fid, '\\usepackage{fancyhdr, datetime}\n'); fprintf(fid, '\\usepackage{fancyhdr, datetime}\n');
fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n'); fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n');
fprintf(fid, '\\pagestyle{fancy}\n'); fprintf(fid, '\\pagestyle{fancy}\n');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment