Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
reporting
Commits
bb055a09
Commit
bb055a09
authored
Apr 29, 2015
by
Houtan Bastani
Browse files
reporting: use linewidth instead of textwidth as it works better in landscape mode
parent
5e50d25d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@paragraph/write.m
View file @
bb055a09
...
...
@@ -12,7 +12,7 @@ function o = write(o, fid)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2014 Dynare Team
% Copyright (C) 2014
-2015
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -30,7 +30,7 @@ function o = write(o, fid)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'%% Paragraph Object\n\\multicolumn{1}{p{\\
text
width}}{%%\n'
);
fprintf
(
fid
,
'%% Paragraph Object\n\\multicolumn{1}{p{\\
line
width}}{%%\n'
);
if
o
.
cols
~=
1
bc
=
''
;
if
o
.
balancedCols
...
...
@@ -67,4 +67,4 @@ end
%\columnbreak
%If you read this text, you will get no information. Really? Is there
%no information? Is there...
%\end{multicols}}\\
\ No newline at end of file
%\end{multicols}}\\
src/@section/write.m
View file @
bb055a09
...
...
@@ -14,7 +14,7 @@ function o = write(o, fid, pg, sec)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2013-201
4
Dynare Team
% Copyright (C) 2013-201
5
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -37,7 +37,7 @@ fprintf(fid, '%% Section Object\n');
if
~
isempty
(
o
.
height
)
fprintf
(
fid
,
'\\setlength\\sectionheight{%s}%%\n'
,
o
.
height
);
end
fprintf
(
fid
,
'\\maxsizebox{\\
text
width}{'
);
fprintf
(
fid
,
'\\maxsizebox{\\
line
width}{'
);
if
isempty
(
o
.
height
)
fprintf
(
fid
,
'!'
);
else
...
...
@@ -86,4 +86,4 @@ for i=1:ne
end
fprintf
(
fid
,
'\\end{tabular}}\\\\\n'
);
fprintf
(
fid
,
'%% End Section Object\n\n'
);
end
\ No newline at end of file
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment