# "Undefined control sequence \\operatorname" error in stan math doxygen output

**URL:** <https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974>\
**Category:** Developers\
**Tags:** stan-math\
**Created:** [August 16, 2021, 5:14am UTC](https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974 "2021-08-16T05:14:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssog](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@ssog](https://discourse.mc-stan.org/u/ssog)\
**Post date:** [August 16, 2021, 5:14am UTC](https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974/1 "2021-08-16T05:14:07Z")

</div>

Hi, all

I built the API manual got an “Undefined control sequence \operatorname” error.

 ![doxygen error](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/c/c5893b516d283e951084667793ebbf8f96bf946f.png)

I built the manuls in new ubuntu environment. Before “make doxygen”, I did the following command

```
sudo apt install doxygen texlive-full

```

I understand this error was due to a missing amsmath package, but I do not know how to fix this.

Thanks.

---

<div class="post-metadata">

**Author:** ![rok\_cesnovar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Post date:** [August 16, 2021, 9:03am UTC](https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974/2 "2021-08-16T09:03:23Z")

</div>

What version of doxygen do you have?

---

<div class="post-metadata">

**Author:** ![ssog](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@ssog](https://discourse.mc-stan.org/u/ssog)\
**Post date:** [August 17, 2021, 1:54am UTC](https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974/3 "2021-08-17T01:54:28Z")

</div>

Hi, @rok_cesnovar,  
Thank you for your comment.  
The Doxygen version in Ubuntu 20.04 is 1.8.17.  
If there is a minimal version, let me know.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![rok\_cesnovar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Post date:** [August 20, 2021, 9:41am UTC](https://discourse.mc-stan.org/t/undefined-control-sequence-operatorname-error-in-stan-math-doxygen-output/23974/4 "2021-08-20T09:41:19Z")

</div>

Hey, I actually think the latest doxygens have issues with Stan Math. If you can, downgrade to 1.8.13 which is a version that does work fine for me.
