Good to know. Thanks for your help! Am Mittwoch, 3. Juni 2020 15:43:06 UTC+2 schrieb Komiya Takeshi: > > Yes, Sphinx uses mathjax by default now. > > 2020年6月3日(水) 22:33 'CaptFugu' via sphinx-users <[email protected] > <javascript:>>: > > > > That is to bad. Is mathjax the default math renderer for HTML output? > > > > Am Mittwoch, 3. Juni 2020 15:17:53 UTC+2 schrieb Komiya Takeshi: > >> > >> 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] <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/a190917f-19fd-4b19-bb22-0896fc1bb052%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/b1268b9e-020b-4888-88fa-6fb218004f51%40googlegroups.com.
