Commit 36ee655d authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: change showdate to showDate

parent 89b0bd09
......@@ -40,7 +40,7 @@ o.margin_unit = 'cm';
o.pages = pages();
o.filename = 'report.tex';
o.config = '';
o.showdate = true;
o.showDate = true;
o.compiler = '';
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.config), '@report.report: config 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.');
valid_margin_unit = {'cm', 'in'};
......
......@@ -54,7 +54,7 @@ else
fprintf(fid, '\\usepackage{pgfplots}\n');
end
if o.showdate
if o.showDate
fprintf(fid, '\\usepackage{fancyhdr, datetime}\n');
fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n');
fprintf(fid, '\\pagestyle{fancy}\n');
......
Supports Markdown
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