reporting: change showdate to showDate

time-shift
Houtan Bastani 2013-05-13 16:28:02 +02:00
parent 89b0bd0904
commit 36ee655d03
2 changed files with 3 additions and 3 deletions

View File

@ -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');
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'};

View File

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