From d8fcf00d0c55add4b7eadc44e5cee1962484371c Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 16 Sep 2015 12:20:20 +0200
Subject: [PATCH] preprocessor: fix bug when printing model variables
 containing underscores in latex file. closes #1059

---
 ModelTree.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ModelTree.cc b/ModelTree.cc
index 10fb02f7..21c2d509 100644
--- a/ModelTree.cc
+++ b/ModelTree.cc
@@ -1385,7 +1385,7 @@ ModelTree::writeLatexModelFile(const string &basename, ExprNodeOutputType output
       expr_t value = it->second;
 
       content_output << "\\begin{dmath*}" << endl
-                     << symbol_table.getName(id) << " = ";
+                     << symbol_table.getTeXName(id) << " = ";
       // Use an empty set for the temporary terms
       value->writeOutput(content_output, output_type);
       content_output << endl << "\\end{dmath*}" << endl;
-- 
GitLab