Re: [sphinx-users] Numref strange behaviour

2020-06-03 Thread Komiya Takeshi
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.

Re: [sphinx-users] Custom latex commands for HTML output

2020-06-03 Thread 'CaptFugu' via sphinx-users
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

Re: [sphinx-users] Custom latex commands for HTML output

2020-06-03 Thread 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 Mittwoch, 3. Juni 2020 15:17:53 UTC+2 schrieb Komiya Takeshi: >> >> There are no proper way to do that. But I guess

Re: [sphinx-users] Custom latex commands for HTML output

2020-06-03 Thread '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 `mathjax_display` will > help you to insert custom command before each display equation as a > workaround:

Re: [sphinx-users] Skip doctests included with autodoc

2020-06-03 Thread Komiya Takeshi
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

Re: [sphinx-users] Custom latex commands for HTML output

2020-06-03 Thread 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] Custom latex commands for HTML output

2020-06-03 Thread 'CaptFugu' via sphinx-users
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

[sphinx-users] Skip doctests included with autodoc

2020-06-03 Thread '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 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