Hello Stefan,
I'm not good at typesetting math, but is your problem just that the numbers
"(2.8)" and "(2.9)" on the right are not rendered in HTML? Or you can't
render math in HTML at all?

For example, if I reuse your snippet in my project, it looks like this:

[image: image.png]

The only what I did differently in my conf.py was adding
"'sphinx.ext.mathjax'" to "extensions" list.

Matt



On Fri, Apr 24, 2020 at 4:50 PM sbiser <stefan.sb.bi...@gmail.com> wrote:

> Hey together,
>
> I'm working on some code documentation which I need both as HTML as well
> as PDF. Is there any way to achieve the following graphical output not
> only as PDF but as HTML as well?
>
> For latex output I've used the following code:
>
> .. math::
>       :label: testpdf
>       :nowrap:
>
>       \begin{align}
>          2x^2 + 3(x-1)(x-2)   & = 2x^2 + 3(x^2-3x+2) \\ \nonumber
>                               & = 2x^2 + 3x^2 - 9x + 6 \\
>                               & = 5x^2 - 9x + 6
>       \end{align}
>
> But I couldn't manage to get the same rendering in HTML (either only one
> label number, or no at all...)
>
> Thanks for any suggestions.
>
> Stefan
>
> --
> 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 sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sphinx-users/e1f8f0ac-0d30-4e45-a342-d332499a4370%40googlegroups.com
> <https://groups.google.com/d/msgid/sphinx-users/e1f8f0ac-0d30-4e45-a342-d332499a4370%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAOGNDW_WF5r4fF-7KswmQxiaukK%3DwzqOHmKeEzrDWysDv4z4iQ%40mail.gmail.com.

Reply via email to