From 1b8c2d4c487e03588f95d0387141ef64841462e2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 2 Sep 2019 15:42:05 +0200 Subject: [PATCH] make tables more easily included in external latex report --- matlab/reporting/src/@report_table/writeTableFile.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matlab/reporting/src/@report_table/writeTableFile.m b/matlab/reporting/src/@report_table/writeTableFile.m index 2c9b21d31..93780a546 100644 --- a/matlab/reporting/src/@report_table/writeTableFile.m +++ b/matlab/reporting/src/@report_table/writeTableFile.m @@ -51,6 +51,7 @@ if fid == -1 end 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{\\tabcolsep}{4pt}\n'); @@ -227,7 +228,9 @@ else o.table_data{1}.writeDataForTable(fid, o.precision); end 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'); if fclose(fid) == -1 error('@report_table.writeTableFile: closing %s\n', o.filename);