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

make tables more easily included in external latex report

parent b4f9f0fe
Branches
Tags
No related merge requests found
...@@ -51,6 +51,7 @@ if fid == -1 ...@@ -51,6 +51,7 @@ if fid == -1
end end
fprintf(fid, '%% Report_Table Object written %s\n', datestr(now)); fprintf(fid, '%% Report_Table Object written %s\n', datestr(now));
fprintf(fid, '\\begin{tabular}[t]{l}\n');
fprintf(fid, '\\setlength{\\parindent}{6pt}\n'); fprintf(fid, '\\setlength{\\parindent}{6pt}\n');
fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n'); fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n');
...@@ -227,7 +228,9 @@ else ...@@ -227,7 +228,9 @@ else
o.table_data{1}.writeDataForTable(fid, o.precision); o.table_data{1}.writeDataForTable(fid, o.precision);
end end
fprintf(fid, '\\bottomrule\n'); fprintf(fid, '\\bottomrule\n');
fprintf(fid, '\\end{tabular}\\setlength{\\parindent}{0pt}\n \\par \\medskip\n\n'); fprintf(fid, '\\end{tabular}\n');
fprintf(fid, '\\end{tabular}\n');
fprintf(fid, '\\setlength{\\parindent}{0pt}\n \\par \\medskip\n\n');
fprintf(fid, '%% End Report_Table Object\n'); fprintf(fid, '%% End Report_Table Object\n');
if fclose(fid) == -1 if fclose(fid) == -1
error('@report_table.writeTableFile: closing %s\n', o.filename); error('@report_table.writeTableFile: closing %s\n', o.filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment