place braces directly around latex name

issue dynare#263
issue#70
Houtan Bastani 2020-01-06 18:22:31 +01:00
parent 4e2538a2a2
commit d2860c4f6b
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}