From d2860c4f6b907ba3ee690cd9b36835a2f5b6fdaa Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 6 Jan 2020 18:22:31 +0100 Subject: [PATCH] place braces directly around latex name issue dynare#263 --- src/ExprNode.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 5807a282..b8eec32d 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -1,5 +1,5 @@ /* - * Copyright © 2007-2019 Dynare Team + * Copyright © 2007-2020 Dynare Team * * This file is part of Dynare. * @@ -976,7 +976,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, { if (output_type == ExprNodeOutputType::latexDynamicSteadyStateOperator) output << R"(\bar)"; - output << "{" << datatree.symbol_table.getTeXName(symb_id); + output << "{" << datatree.symbol_table.getTeXName(symb_id) << "}"; if (output_type == ExprNodeOutputType::latexDynamicModel && (type == SymbolType::endogenous || type == SymbolType::exogenous || type == SymbolType::exogenousDet || type == SymbolType::modelLocalVariable || type == SymbolType::trend || type == SymbolType::logTrend)) { @@ -989,7 +989,6 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, } output << "}"; } - output << "}"; return; }