Allow for underscores in first header element in dyn_latex_table.m

time-shift
Johannes Pfeifer 2016-05-31 20:54:10 +02:00
parent 2c4c7558f4
commit f76a353d65
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ header_string_format = sprintf('$%%%ds$',val_width);
%Create and print header string
if length(headers) > 0
header_string = sprintf(label_format_leftbound ,deblank(headers(1,:)));
header_string = sprintf(label_format_leftbound ,strrep(deblank(headers(1,:)),'\','\\'));
header_code_string='l';
for i=2:size(headers,1)
header_string = [header_string '\t & \t ' sprintf(header_string_format,strrep(deblank(headers(i,:)),'\','\\'))];