Commit 2fbd75d1 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: add series option tableRowColor

parent db485235
......@@ -8446,6 +8446,10 @@ The zero tolerance. Anything smaller than @code{zerotol} and larger
than @code{-zerotol} will be set to zero before being
graphed. Default: @math{1e-6}
@item tableRowColor, @code{STRING}
The color that you want the row to be. Predefined values include
@code{LightCyan} and @code{Gray}. Default: white.
@end table
@end defmethod
......@@ -54,6 +54,9 @@ else
fprintf(fid, '\\usepackage{pgfplots}\n');
fprintf(fid, '\\usepackage{color, colortbl}\n');
fprintf(fid, '\\definecolor{LightCyan}{rgb}{0.88,1,1}\n');
fprintf(fid, '\\definecolor{Gray}{gray}{0.9}\n');
if o.showDate
fprintf(fid, '\\usepackage{fancyhdr, datetime}\n');
fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n');
......@@ -51,6 +51,8 @@ o.tableMarkerLimit = 1e-4;
o.tableAlignRight = false;
o.tableRowColor = '';
o.zerotol = 1e-6;
if nargin == 1
......@@ -51,6 +51,9 @@ dataString = ['%.' num2str(precision) 'f'];
precision = 10^precision;
fprintf(fid, '%% Table Row (series)\n');
if ~isempty(o.tableRowColor)
fprintf(fid, '\\rowcolor{%s}', o.tableRowColor);
if o.tableAlignRight
fprintf(fid, '\\multicolumn{1}{r}{');
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