From 10652be09a874d39fa551b65f7745f7e522dd72d Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 9 Dec 2013 17:24:41 +0100 Subject: [PATCH] write_latex_definitions: use texttt for variable names, #478 --- matlab/write_latex_definitions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/write_latex_definitions.m b/matlab/write_latex_definitions.m index 59c3166d5..d2b06fa08 100644 --- a/matlab/write_latex_definitions.m +++ b/matlab/write_latex_definitions.m @@ -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,:)), '_', '\\_'));