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

reporting: @table: add vline_after option

parent d0be97c4
Branches
Tags
No related merge requests found
......@@ -40,6 +40,7 @@ o.footnote = '';
o.config = '';
o.hlines = false;
o.vlines = false;
o.vline_after = '';
o.data = '';
o.seriestouse = '';
......@@ -81,11 +82,15 @@ assert(isint(o.precision), '@table.table: precision must be an int');
assert(isempty(o.range) || (isa(o.range, 'dynDates') && o.range.ndat >= 2), ...
['@table.table: range is specified as a dynDates range, e.g. ' ...
'''dynDates(''1999q1''):dynDates(''1999q3'')''.']);
assert(isempty(o.data) || isa(o.data, 'dynSeries'), ['@table.table: data must ' ...
'be a dynSeries']);
assert(isempty(o.seriestouse) || iscellstr(o.seriestouse), ['@table.table: ' ...
'seriestouse must be a cell array of string(s)']);
assert(isempty(o.data) || isa(o.data, 'dynSeries'), ...
'@table.table: data must be a dynSeries');
assert(isempty(o.seriestouse) || iscellstr(o.seriestouse), ...
'@table.table: seriestouse must be a cell array of string(s)');
assert(isempty(o.vline_after) || isa(o.vline_after, 'dynDate'), ...
'@table.table: vline_after must be a dynDate');
if o.vlines
o.vline_after = '';
end
valid_title_sizes = {'Huge', 'huge', 'LARGE', 'Large', 'large', 'normalsize', ...
'small', 'footnotesize', 'scriptsize', 'tiny'};
assert(any(strcmp(o.title_size, valid_title_sizes)), ...
......
......@@ -59,6 +59,11 @@ for i=1:ndates
fprintf(fid, '|');
end
fprintf(fid, 'r');
if ~isempty(o.vline_after)
if dates(i) == o.vline_after
fprintf(fid, '|');
end
end
end
fprintf(fid, '@{}}%%\n');
if ~isempty(o.title)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment