write_latex_definitions: use texttt for variable names, #478

time-shift
Houtan Bastani 2013-12-09 17:24:41 +01:00
parent 3539dc7153
commit 10652be09a
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ for i=1:length(tables)
tex = eval([M_var_root{i} '_names_tex']);
long = eval([M_var_root{i} '_names_long']);
for j=1:size(names,1)
fprintf(fid, '%s & $%s$ & %s\\\\\n', ...
fprintf(fid, '\\texttt{%s} & $%s$ & %s\\\\\n', ...
regexprep(strtrim(names(j,:)), '_', '\\_'), ...
strtrim(tex(j,:)), ...
regexprep(strtrim(long(j,:)), '_', '\\_'));