From ca4b1ba4edf1470d16005df10f067fa8ced13aad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 19 Feb 2021 17:45:58 +0100
Subject: [PATCH] Remove time subscript in LaTeX output of model-local
 variables

See https://forum.dynare.org/t/tex-output-unwanted-subscript-t/16072
---
 src/ExprNode.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ExprNode.cc b/src/ExprNode.cc
index 9df220c2..650959d3 100644
--- a/src/ExprNode.cc
+++ b/src/ExprNode.cc
@@ -924,7 +924,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
         output << R"(\bar)";
       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))
+          && (type == SymbolType::endogenous || type == SymbolType::exogenous || type == SymbolType::exogenousDet || type == SymbolType::trend || type == SymbolType::logTrend))
         {
           output << "_{t";
           if (lag != 0)
-- 
GitLab