Hi,
At present, Sphinx assigns numbers to code-blocks having a caption. So
this is intended behavior.
>If true, figures, tables and code-blocks are automatically numbered if they
>have a caption. The numref role is enabled. Obeyed so far only by HTML and
>LaTeX builders. Default is False.
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 >:
> >
> > That is to bad. Is mathjax the default math renderer for HTML output?
> >
> > Am
Yes, Sphinx uses mathjax by default now.
2020年6月3日(水) 22:33 'CaptFugu' via sphinx-users :
>
> 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
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:
Hi,
Unfortunately, there are no such options. I think it is hard to
distinguish code blocks in reST or docstring.
Thanks,
Takeshi KOMIYA
2020年6月3日(水) 17:10 'Jens Jørgen Mortensen' via sphinx-users
:
>
> Hi!
>
> I'm using the sphinx.ext.doctest extension to test code examples in my
> docs. I'm
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
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
Hi!
I'm using the sphinx.ext.doctest extension to test code examples in my
docs. I'm using the default behavior where code marked with ">>>" is
tested, which is nice because I don't have to put my code examples
inside a ".. doctest::" directive. But this will also test my doctests
pulled