reporting: add centering
parent
ce65626a68
commit
59ef4b9e68
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue