diff --git a/doc/dynare.texi b/doc/dynare.texi index 1ab025113..d7c888d32 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -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 diff --git a/matlab/reports/@report/write.m b/matlab/reports/@report/write.m index 03b0dfc9a..0b34bdadb 100644 --- a/matlab/reports/@report/write.m +++ b/matlab/reports/@report/write.m @@ -54,6 +54,9 @@ else fprintf(fid, '\\usepackage{pgfplots}\n'); 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 fprintf(fid, '\\usepackage{fancyhdr, datetime}\n'); fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n'); diff --git a/matlab/reports/@series/series.m b/matlab/reports/@series/series.m index 6493dced7..754d82b0d 100644 --- a/matlab/reports/@series/series.m +++ b/matlab/reports/@series/series.m @@ -51,6 +51,8 @@ o.tableMarkerLimit = 1e-4; o.tableAlignRight = false; +o.tableRowColor = ''; + o.zerotol = 1e-6; if nargin == 1 diff --git a/matlab/reports/@series/write.m b/matlab/reports/@series/write.m index e0f0ffcae..f626b47ae 100644 --- a/matlab/reports/@series/write.m +++ b/matlab/reports/@series/write.m @@ -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); +end if o.tableAlignRight fprintf(fid, '\\multicolumn{1}{r}{'); end