From 17c1f5286804e1e0f53339b3bce51df802d0b977 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 7 Sep 2015 15:56:37 +0200 Subject: [PATCH] preprocessor: quick fix for #263 --- preprocessor/ExprNode.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index c09f25b9b..714255b1d 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -602,8 +602,8 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, if (IS_LATEX(output_type)) { if (output_type == oLatexDynamicSteadyStateOperator) - output << "\\bar{"; - output << datatree.symbol_table.getTeXName(symb_id); + output << "\\bar"; + output << "{" << datatree.symbol_table.getTeXName(symb_id); if (output_type == oLatexDynamicModel && (type == eEndogenous || type == eExogenous || type == eExogenousDet || type == eModelLocalVariable || type == eTrend || type == eLogTrend)) { @@ -616,8 +616,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, } output << "}"; } - else if (output_type == oLatexDynamicSteadyStateOperator) - output << "}"; + output << "}"; return; }