There are no proper way to do that. But I guess `mathjax_display` will
help you to insert custom command before each display equation as a
workaround:
```
# in conf.py
mathjax_display = [r'\[\newcommand{\myCustomCmd}{}', r'\]']
```Thanks, Takeshi KOMIYA 2020年6月3日(水) 21:05 'CaptFugu' via sphinx-users <[email protected]>: > > Is there a way to configure custom Latex commands for the math directive in > HTML output? For the latex build itself I can use > > latex_elements = {"preamble": r"""\newcommand{\myCustomCmd}{}"""} > > but I can't find something similar for the the HTML output. > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/8d7ccf28-08fa-4c7c-a9e7-11953f0580c6%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAFmkQANbzi19o5EjnGU5DZ25uTWBz1O-B0Fy%2B6HU6yRda7DxBw%40mail.gmail.com.
