place braces directly around latex name

issue dynare#263
parent 4e2538a2
/* /*
* Copyright © 2007-2019 Dynare Team * Copyright © 2007-2020 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -976,7 +976,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, ...@@ -976,7 +976,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
{ {
if (output_type == ExprNodeOutputType::latexDynamicSteadyStateOperator) if (output_type == ExprNodeOutputType::latexDynamicSteadyStateOperator)
output << R"(\bar)"; output << R"(\bar)";
output << "{" << datatree.symbol_table.getTeXName(symb_id); output << "{" << datatree.symbol_table.getTeXName(symb_id) << "}";
if (output_type == ExprNodeOutputType::latexDynamicModel if (output_type == ExprNodeOutputType::latexDynamicModel
&& (type == SymbolType::endogenous || type == SymbolType::exogenous || type == SymbolType::exogenousDet || type == SymbolType::modelLocalVariable || type == SymbolType::trend || type == SymbolType::logTrend)) && (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, ...@@ -989,7 +989,6 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
} }
output << "}"; output << "}";
} }
output << "}";
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment