# Latex Reporting Error

**URL:** <https://forum.dynare.org/t/latex-reporting-error/16806>\
**Category:** Documentation\
**Created:** [21 October 2020 17:38 UTC](https://forum.dynare.org/t/latex-reporting-error/16806 "2020-10-21T17:38:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.bah](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/7ab992/32.png) [@a.bah](https://forum.dynare.org/u/a.bah)\
**Post date:** [21 October 2020 17:38 UTC](https://forum.dynare.org/t/latex-reporting-error/16806/1 "2020-10-21T17:38:14Z")

</div>

Dear Friends,  
I have a result matrix for a estimated model. Now I want to plot estimation results stored in oo\_ matrix in PGFPLOTS/TikZ graphs format based on chapter 7 Dynare Reference Manual (Release 4.6.2). Although I prepared attached file using aforementioned manual, I got some strange errors.Would you mind helping me find the solution?

Bests,  
Ali  
[report\_training.mod](https://forum.dynare.org/uploads/short-url/2wk4DoOn3TfxNC4NECs1hDJVWjr.mod) (958 Bytes)  
[oo\_.mat](https://forum.dynare.org/uploads/short-url/yR1rCGOVzP400I1cI6JdxAsLRf0.mat) (655 Bytes)

---

<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:** [21 October 2020 19:03 UTC](https://forum.dynare.org/t/latex-reporting-error/16806/2 "2020-10-21T19:03:20Z")

</div>

You also need to provide the `_results.mat`-file.

---

<div class="post-metadata">

**Author:** ![a.bah](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/7ab992/32.png) [@a.bah](https://forum.dynare.org/u/a.bah)\
**Post date:** [22 October 2020 16:57 UTC](https://forum.dynare.org/t/latex-reporting-error/16806/3 "2020-10-22T16:57:03Z")

</div>

Dear John,

Although I think the code could be tested using every arbitrary \_result.mat, I have just attached the file you asked.It is worth mentioning that I had to delete unnecessary data in oo\_.mat in order to meet uploading limit regarding file size.

Bests

---

<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:** [22 October 2020 20:20 UTC](https://forum.dynare.org/t/latex-reporting-error/16806/4 "2020-10-22T20:20:30Z")

</div>

Use  
[report\_training.m](https://forum.dynare.org/uploads/short-url/pJkK3UkPaHh4f3rejKWLnNTv0Z3.m) (1.0 KB)  
For some reason the `xrange` seems to be mandatory. Also, the `title`-strings must not contain any special strings that the \LaTeX-math interpreter does not know, i.e. `&` and `_`.
