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

reporting: use linewidth instead of textwidth as it works better in landscape mode

parent 5e50d25d
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ function o = write(o, fid) ...@@ -12,7 +12,7 @@ function o = write(o, fid)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2014 Dynare Team % Copyright (C) 2014-2015 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -30,7 +30,7 @@ function o = write(o, fid) ...@@ -30,7 +30,7 @@ function o = write(o, fid)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert(fid ~= -1); assert(fid ~= -1);
fprintf(fid, '%% Paragraph Object\n\\multicolumn{1}{p{\\textwidth}}{%%\n'); fprintf(fid, '%% Paragraph Object\n\\multicolumn{1}{p{\\linewidth}}{%%\n');
if o.cols ~= 1 if o.cols ~= 1
bc = ''; bc = '';
if o.balancedCols if o.balancedCols
......
...@@ -14,7 +14,7 @@ function o = write(o, fid, pg, sec) ...@@ -14,7 +14,7 @@ function o = write(o, fid, pg, sec)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2013-2014 Dynare Team % Copyright (C) 2013-2015 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -37,7 +37,7 @@ fprintf(fid, '%% Section Object\n'); ...@@ -37,7 +37,7 @@ fprintf(fid, '%% Section Object\n');
if ~isempty(o.height) if ~isempty(o.height)
fprintf(fid, '\\setlength\\sectionheight{%s}%%\n', o.height); fprintf(fid, '\\setlength\\sectionheight{%s}%%\n', o.height);
end end
fprintf(fid, '\\maxsizebox{\\textwidth}{'); fprintf(fid, '\\maxsizebox{\\linewidth}{');
if isempty(o.height) if isempty(o.height)
fprintf(fid, '!'); fprintf(fid, '!');
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment