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

reporting: spacing cleanup

parent 664f94af
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ for i=1:length(o.footnote) ...@@ -40,7 +40,7 @@ for i=1:length(o.footnote)
end end
fprintf(fid,'\n'); fprintf(fid,'\n');
fprintf(fid, '\\begin{tabular}[t]{@{\\hspace*{-3pt}}c@{}}\n'); fprintf(fid, '\\begin{tabular}[t]{c}\n');
for i=1:length(o.title) for i=1:length(o.title)
fprintf(fid,'\\multicolumn{1}{c}{%s %s}\\\\\n', o.title_format{i}, o.title{i}); fprintf(fid,'\\multicolumn{1}{c}{%s %s}\\\\\n', o.title_format{i}, o.title{i});
end end
......
...@@ -59,6 +59,7 @@ fprintf(fid, '\\renewcommand{\\textfraction}{0.05}\n'); ...@@ -59,6 +59,7 @@ fprintf(fid, '\\renewcommand{\\textfraction}{0.05}\n');
fprintf(fid, '\\renewcommand{\\topfraction}{0.8}\n'); fprintf(fid, '\\renewcommand{\\topfraction}{0.8}\n');
fprintf(fid, '\\renewcommand{\\bottomfraction}{0.8}\n'); fprintf(fid, '\\renewcommand{\\bottomfraction}{0.8}\n');
fprintf(fid, '\\usepackage[Export,PGF]{adjustbox}\n'); fprintf(fid, '\\usepackage[Export,PGF]{adjustbox}\n');
fprintf(fid, '\\setlength{\\parindent}{0in}\n');
fprintf(fid, '\\begin{document}\n'); fprintf(fid, '\\begin{document}\n');
fprintf(fid, '\\centering\n'); fprintf(fid, '\\centering\n');
......
...@@ -31,11 +31,10 @@ function o = write(o, fid) ...@@ -31,11 +31,10 @@ function o = write(o, fid)
assert(fid ~= -1); assert(fid ~= -1);
fprintf(fid, '%% Section Object\n'); fprintf(fid, '%% Section Object\n');
fprintf(fid, ' \\vspace{15px}\n'); fprintf(fid, '\\maxsizebox{\\textwidth}{!}{%%\n');
fprintf(fid, '\\noindent\\maxsizebox{\\textwidth}{!}{%%\n');
fprintf(fid, '\\begin{tabular}[t]{'); fprintf(fid, '\\begin{tabular}[t]{');
for i=1:o.cols for i=1:o.cols
fprintf(fid, '@{\\hspace*{-3pt}}c@{}'); fprintf(fid, 'c');
end end
fprintf(fid, '}\n'); fprintf(fid, '}\n');
ne = numElements(o); ne = numElements(o);
...@@ -47,6 +46,6 @@ for i=1:ne ...@@ -47,6 +46,6 @@ for i=1:ne
fprintf(fid, '\\\\\n'); fprintf(fid, '\\\\\n');
end end
end end
fprintf(fid, '\\end{tabular}}%%\n'); fprintf(fid, '\\end{tabular}}\n');
fprintf(fid, '%% End Section Object\n\n'); fprintf(fid, '%% End Section Object\n\n');
end end
\ No newline at end of file
...@@ -53,7 +53,8 @@ nlhc = 1; ...@@ -53,7 +53,8 @@ nlhc = 1;
disp('creating table.........'); disp('creating table.........');
fprintf(fid, '%% Table Object\n'); fprintf(fid, '%% Table Object\n');
fprintf(fid, '\\begin{tabular}{l'); fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n');
fprintf(fid, '\\begin{tabular}{@{}l');
dates = ds.time; dates = ds.time;
ndates = dates.ndat; ndates = dates.ndat;
...@@ -64,7 +65,7 @@ for i=1:ndates ...@@ -64,7 +65,7 @@ for i=1:ndates
end end
fprintf(fid, 'r'); fprintf(fid, 'r');
end end
fprintf(fid, '}%%\n'); fprintf(fid, '@{}}%%\n');
if ~isempty(o.title) if ~isempty(o.title)
fprintf(fid, '\\multicolumn{%d}{c}{%s} \\\\\n', ndates+nlhc, o.title); fprintf(fid, '\\multicolumn{%d}{c}{%s} \\\\\n', ndates+nlhc, o.title);
end end
...@@ -136,8 +137,7 @@ for i=1:nvars ...@@ -136,8 +137,7 @@ for i=1:nvars
fprintf(fid, ' \\\\\n\n'); fprintf(fid, ' \\\\\n\n');
end end
fprintf(fid, '\\bottomrule%%\n'); fprintf(fid, '\\bottomrule\n');
fprintf(fid, '\\end{tabular}%%\n\n'); fprintf(fid, '\\end{tabular} \\par \\medskip\n\n');
fprintf(fid, '\\medskip\\par\n\n');
fprintf(fid, '%% End Table Object\n'); fprintf(fid, '%% End Table Object\n');
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment