I am wondering if there is anywhere I can get the standard NK-DSGE model - LaTeX code so that I do not have to type everything but use the template and make modifications for my model…

My variables are all in exp(x) terms.

```
/*
* This file implements the baseline New Keynesian model of Jordi Gal� (2015): Monetary Policy, Inflation,
* and the Business Cycle, Princeton University Press, Second Edition, Chapter 3
*
* Note that this mod-file implements the non-linear first order conditions and that the IRFs show the log-deviations
* from steady state.
*
* THIS MOD-FILE REQUIRES DYNARE 4.5 OR HIGHER
*
* Notes:
* - in the LOM for the discount rate shock z the shock enters with a minus sign in this mod-file to generate the
* IRF to a -0.5% shock
* - the IRF for the nominal rate in Figure 3.6 "Dynamic Responses to a Technology Shock: Money Supply Rule", p. 81
* is wrong. It should be identically 0 as can be seen in this mod-file and Gal�'s slide set accompanying this chapter
* - For nonlinear models, the proper way to specify standard deviations is in the form 0.01 for 1%. One must not multiply by
* 100 here, because the uncertainty correct will be wrong in this case.
*
* This implementation was written by Johannes Pfeifer. In case you spot mistakes,
* email me at jpfeifer@gmx.de
*
```

This file has been truncated. show original

and

```
/*
* This file implements the baseline New Keynesian model of Jordi Gal� (2015): Monetary Policy, Inflation,
* and the Business Cycle, Princeton University Press, Second Edition, Chapter 3
*
* THIS MOD-FILE REQUIRES DYNARE 4.5 OR HIGHER
*
* Notes:
* - all model variables are expressed in deviations from steady state, i.e. in contrast to
* to the chapter, both the nominal interest rate and natural output are not in log-levels, but rather mean 0
* - in the LOM for the discount rate shock z the shock enters with a minus sign in this mod-file to generate the
* IRF to a -0.5% shock
* - the IRF for the nominal rate in Figure 3.6 "Dynamic Responses to a Technology Shock: Money Supply Rule", p. 81
* is wrong. It should be identically 0 as can be seen in this mod-file and Gal�'s slide set accompanying this chapter
*
* This implementation was written by Johannes Pfeifer. In case you spot mistakes,
* email me at jpfeifer@gmx.de
*
* Please note that the following copyright notice only applies to this Dynare
* implementation of the model.
*/
```

This file has been truncated. show original

have the

\LaTeX -featured enabled that allow printing the equations to a file with

```
write_latex_original_model;
collect_latex_files;
```

See also https://git.dynare.org/Dynare/dynare/-/blob/master/tests/TeX/fs2000_corr_ME.mod