# Matlab function for Latex equations

**URL:** <https://forum.dynare.org/t/matlab-function-for-latex-equations/26474>\
**Category:** Dynare contributions and examples\
**Created:** [24 September 2024 21:17 UTC](https://forum.dynare.org/t/matlab-function-for-latex-equations/26474 "2024-09-24T21:17:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [24 September 2024 21:17 UTC](https://forum.dynare.org/t/matlab-function-for-latex-equations/26474/1 "2024-09-24T21:17:54Z")

</div>

Dear Forum,

I cannot find, which matlab functions dynare uses to write the latex equations? can you please point to the function or functions that do this job? It should typically loop through all equations and do `fprintf` with LaTeX commands like `\begin{dmath}`.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [25 September 2024 09:10 UTC](https://forum.dynare.org/t/matlab-function-for-latex-equations/26474/2 "2024-09-25T09:10:32Z")

</div>

The \LaTeX equation output is produced by the preprocessor not by Matlab codes.
