Commit db382f1f authored by sebastien's avatar sebastien
Browse files

Changes to the write_latex_{static,dynamic}_model:

* fixed bug in the dynamic version (was putting time subscripts to parameters)
* changed symbol for multiplication to a space (was a dot)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2802 ac1d8469-bf42-47a9-8791-bf33cf982152
parent fbff2701
......@@ -327,7 +327,8 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
if (IS_LATEX(output_type))
{
output << datatree.symbol_table.getTeXName(symb_id);
if (output_type == oLatexDynamicModel)
if (output_type == oLatexDynamicModel
&& (type == eEndogenous || type == eExogenous || type == eExogenousDet || type == eModelLocalVariable))
{
output << "_{t";
if (lag != 0)
......@@ -1651,7 +1652,7 @@ BinaryOpNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
break;
case oTimes:
if (IS_LATEX(output_type))
output << "\\cdot ";
output << "\\, ";
else
output << "*";
break;
......
Supports Markdown
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