|
38 | 38 | fid = fopen(Statistics_Tex_Output, 'wt'); |
39 | 39 | % Generate table header information in .tex file |
40 | 40 | fprintf(fid, '%s\n', '\scriptsize'); |
41 | | - fprintf(fid, '%s\n', '\begin{longtable}[c]{@{\extracolsep{\fill}}|l|c|c|c|c|c|c|c|c|c|}'); |
| 41 | + fprintf(fid, '%s\n', '\begin{longtable}{|p{2.5in}|l|p{1in}|l|p{1in}|l|l|l|l|l|}'); |
42 | 42 | fprintf(fid, '%s\n', '\hline'); |
43 | 43 | fprintf(fid, '%s\n', 'Case Name & Section & Expected & Expected & Predicted & Predicted & Type of & Error & Error & Within \\'); |
44 | 44 | fprintf(fid, '%s\n', ' & & Quantity & Value & Quantity & Value & Error & & Tolerance & Tol. \\ \hline \hline'); |
|
54 | 54 | [rows, cols] = size(output_stats); |
55 | 55 | m = sortrows(output_stats(2:rows,:),1); |
56 | 56 | for i_row = 1:rows-1 |
57 | | - case_name = strrep(m{i_row, 3}, '_', '\_'); |
| 57 | + case_name = ['\lstinline[basicstyle=\scriptsize\ttfamily]!',m{i_row,3},'!']; |
58 | 58 | if m{i_row,14}(1:14)=='FDS_User_Guide' |
59 | 59 | case_name_section = ['\ref{UG-',m{i_row,3},'}']; |
60 | 60 | else |
61 | 61 | case_name_section = ['\ref{',m{i_row,3},'}']; |
62 | 62 | end |
63 | | - expected_quantity = strrep(m{i_row, 5}, '_', '\_'); |
| 63 | + expected_quantity = ['\lstinline[basicstyle=\scriptsize\ttfamily]!',m{i_row,5},'!']; |
64 | 64 | expected_value = m{i_row, 6}; |
65 | | - predicted_quantity = strrep(m{i_row, 7}, '_', '\_'); |
| 65 | + predicted_quantity = ['\lstinline[basicstyle=\scriptsize\ttfamily]!',m{i_row, 7},'!']; |
66 | 66 | predicted_value = m{i_row, 8}; |
67 | 67 | error_type = strrep(m{i_row,10}, ' Error', ''); |
68 | 68 | error_val = str2num(m{i_row,11}); |
|
0 commit comments