preprocessor: quick fix for #263

time-shift
Houtan Bastani 2015-09-07 15:56:37 +02:00
parent c96b8392d3
commit 17c1f52868
1 changed files with 3 additions and 4 deletions

View File

@ -602,8 +602,8 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
if (IS_LATEX(output_type)) if (IS_LATEX(output_type))
{ {
if (output_type == oLatexDynamicSteadyStateOperator) if (output_type == oLatexDynamicSteadyStateOperator)
output << "\\bar{"; output << "\\bar";
output << datatree.symbol_table.getTeXName(symb_id); output << "{" << datatree.symbol_table.getTeXName(symb_id);
if (output_type == oLatexDynamicModel if (output_type == oLatexDynamicModel
&& (type == eEndogenous || type == eExogenous || type == eExogenousDet || type == eModelLocalVariable || type == eTrend || type == eLogTrend)) && (type == eEndogenous || type == eExogenous || type == eExogenousDet || type == eModelLocalVariable || type == eTrend || type == eLogTrend))
{ {
@ -616,8 +616,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
} }
output << "}"; output << "}";
} }
else if (output_type == oLatexDynamicSteadyStateOperator) output << "}";
output << "}";
return; return;
} }