reporting: add series option tableRowColor
parent
db485235b5
commit
2fbd75d11c
|
@ -8446,6 +8446,10 @@ The zero tolerance. Anything smaller than @code{zerotol} and larger
|
||||||
than @code{-zerotol} will be set to zero before being
|
than @code{-zerotol} will be set to zero before being
|
||||||
graphed. Default: @math{1e-6}
|
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 table
|
||||||
@end defmethod
|
@end defmethod
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,9 @@ else
|
||||||
fprintf(fid, '\\usepackage{pgfplots}\n');
|
fprintf(fid, '\\usepackage{pgfplots}\n');
|
||||||
end
|
end
|
||||||
|
|
||||||
|
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
|
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');
|
||||||
|
|
|
@ -51,6 +51,8 @@ o.tableMarkerLimit = 1e-4;
|
||||||
|
|
||||||
o.tableAlignRight = false;
|
o.tableAlignRight = false;
|
||||||
|
|
||||||
|
o.tableRowColor = '';
|
||||||
|
|
||||||
o.zerotol = 1e-6;
|
o.zerotol = 1e-6;
|
||||||
|
|
||||||
if nargin == 1
|
if nargin == 1
|
||||||
|
|
|
@ -51,6 +51,9 @@ dataString = ['%.' num2str(precision) 'f'];
|
||||||
precision = 10^precision;
|
precision = 10^precision;
|
||||||
|
|
||||||
fprintf(fid, '%% Table Row (series)\n');
|
fprintf(fid, '%% Table Row (series)\n');
|
||||||
|
if ~isempty(o.tableRowColor)
|
||||||
|
fprintf(fid, '\\rowcolor{%s}', o.tableRowColor);
|
||||||
|
end
|
||||||
if o.tableAlignRight
|
if o.tableAlignRight
|
||||||
fprintf(fid, '\\multicolumn{1}{r}{');
|
fprintf(fid, '\\multicolumn{1}{r}{');
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue