| 1 |
function rep = AnnualTable(rep, db_a, dc_a, seriesRootName, arange) |
| 2 |
% Copyright © 2013-2023 Dynare Team |
| 3 |
% |
| 4 |
% This file is part of Dynare. |
| 5 |
% |
| 6 |
% Dynare is free software: you can redistribute it and/or modify |
| 7 |
% it under the terms of the GNU General Public License as published by |
| 8 |
% the Free Software Foundation, either version 3 of the License, or |
| 9 |
% (at your option) any later version. |
| 10 |
% |
| 11 |
% Dynare is distributed in the hope that it will be useful, |
| 12 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
% GNU General Public License for more details. |
| 15 |
% |
| 16 |
% You should have received a copy of the GNU General Public License |
| 17 |
% along with Dynare. If not, see <https://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
shortNames = {'US', 'EU', 'JA', 'EA6', 'LA6', 'RC6'}; |
| 20 |
longNames = {'Coca Cola', 'Kinder Bueno', 'Pizza', ... |
| 21 |
'Vegetarianism Is Good', 'OS X', 'Dothraki'}; |
| 22 |
|
| 23 |
rep.addSeries('tableSubSectionHeader', 'A group', ... |
| 24 |
'tableRowColor', 'red!22'); |
| 25 |
for i = 1:length(shortNames) |
| 26 |
db_a.tex_rename_([seriesRootName shortNames{i}], longNames{i}); |
| 27 |
rep.addSeries('data', db_a{[seriesRootName shortNames{i}]}); |
| 28 |
delta = dc_a{[seriesRootName shortNames{i}]}-db_a{[seriesRootName shortNames{i}]}; |
| 29 |
delta.tex_rename_('$\Delta$'); |
| 30 |
rep.addSeries('data', delta, ... |
| 31 |
'tableShowMarkers', true, ... |
| 32 |
'tableAlignRight', true); |
| 33 |
end |
| 34 |
end |