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

reporting: add centering

parent ce65626a
Branches
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment