Skip to content

Commit 98f8cf9

Browse files
authored
Merge pull request #15121 from mcgratta/master
FDS Verification Guide: Fix results table
2 parents 1bd4777 + 8d56259 commit 98f8cf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Utilities/Matlab/scripts/statistics_output.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
fid = fopen(Statistics_Tex_Output, 'wt');
3939
% Generate table header information in .tex file
4040
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|}');
4242
fprintf(fid, '%s\n', '\hline');
4343
fprintf(fid, '%s\n', 'Case Name & Section & Expected & Expected & Predicted & Predicted & Type of & Error & Error & Within \\');
4444
fprintf(fid, '%s\n', ' & & Quantity & Value & Quantity & Value & Error & & Tolerance & Tol. \\ \hline \hline');
@@ -54,15 +54,15 @@
5454
[rows, cols] = size(output_stats);
5555
m = sortrows(output_stats(2:rows,:),1);
5656
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},'!'];
5858
if m{i_row,14}(1:14)=='FDS_User_Guide'
5959
case_name_section = ['\ref{UG-',m{i_row,3},'}'];
6060
else
6161
case_name_section = ['\ref{',m{i_row,3},'}'];
6262
end
63-
expected_quantity = strrep(m{i_row, 5}, '_', '\_');
63+
expected_quantity = ['\lstinline[basicstyle=\scriptsize\ttfamily]!',m{i_row,5},'!'];
6464
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},'!'];
6666
predicted_value = m{i_row, 8};
6767
error_type = strrep(m{i_row,10}, ' Error', '');
6868
error_val = str2num(m{i_row,11});

0 commit comments

Comments
 (0)