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
Dóra Kocsis
dynare
Commits
49586d0b
Commit
49586d0b
authored
Mar 19, 2013
by
Houtan Bastani
Browse files
reporting: add centering
parent
e02e06b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@report/write.m
View file @
49586d0b
...
...
@@ -60,6 +60,7 @@ fprintf(fid, '\\renewcommand{\\topfraction}{0.8}\n');
fprintf
(
fid
,
'\\renewcommand{\\bottomfraction}{0.8}\n'
);
fprintf
(
fid
,
'\\usepackage[Export,PGF]{adjustbox}\n'
);
fprintf
(
fid
,
'\\begin{document}\n'
);
fprintf
(
fid
,
'\\centering\n'
);
o
.
pages
.
write
(
fid
);
...
...
matlab/reports/@section/write.m
View file @
49586d0b
...
...
@@ -32,11 +32,10 @@ assert(fid ~= -1);
fprintf
(
fid
,
'%% Section Object\n'
);
fprintf
(
fid
,
' \\vspace{15px}\n'
);
fprintf
(
fid
,
'\\centering\n'
);
fprintf
(
fid
,
'\\noindent\\maxsizebox{\\textwidth}{!}{%%\n'
);
fprintf
(
fid
,
'\\begin{tabular}[t]{'
);
for
i
=
1
:
o
.
cols
fprintf
(
fid
,
'
c
'
);
fprintf
(
fid
,
'
@{\\hspace*{-3pt}}c@{}
'
);
end
fprintf
(
fid
,
'}\n'
);
ne
=
numElements
(
o
);
...
...
@@ -48,8 +47,6 @@ for i=1:ne
fprintf
(
fid
,
' \\\\\n'
);
end
end
fprintf
(
fid
,
'\\end{tabular}%%\n'
);
fprintf
(
fid
,
'}%%\n'
);
fprintf
(
fid
,
'\\end{tabular}}%%\n'
);
fprintf
(
fid
,
'%% End Section Object\n\n'
);
end
\ No newline at end of file
matlab/reports/@table/write.m
View file @
49586d0b
...
...
@@ -48,7 +48,7 @@ end
nlhc
=
1
;
disp
(
'creating table.........'
);
fprintf
(
fid
,
'
{
%% Table Object\n'
);
fprintf
(
fid
,
'%% Table Object\n'
);
fprintf
(
fid
,
'\\begin{tabular}{l'
);
dates
=
ds
.
time
;
...
...
@@ -130,6 +130,7 @@ for i=1:nvars
end
fprintf
(
fid
,
'\\bottomrule%%\n'
);
fprintf
(
fid
,
'\\end{tabular}}%%\n'
);
fprintf
(
fid
,
'\\end{tabular}%%\n\n'
);
fprintf
(
fid
,
'\\medskip\\par\n\n'
);
fprintf
(
fid
,
'%% End Table Object\n'
);
end
Write
Preview
Supports
Markdown
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