curvenote / templates

A collection LaTeX templates compatible with curvenote.com
Other
12 stars 2 forks source link

Multiline equations do not render in Curvenote Default PDF/Latex exports #89

Closed mrava87 closed 2 years ago

mrava87 commented 2 years ago

Hello, I am writing a paper with Curvenote and I noticed that when I try to export latex/pdf with Curvenote Default, multiline equations* do not render.

*A multiline equation is an equation written within $$..$$ and using

\begin{split}
...
\end{split}
stevejpurves commented 2 years ago

@mrava87 thanks for opening the issue!

I've taken look and it seems like the current latex setup via amsmath requires the maths to be wrapped in an \begin{equation} environment, even though in the web editor (which is using katex) that equation environment seems not to be needed for the math to render properly.

e.g.

\begin{equation}
\begin{split}
A & = \frac{\pi r^2}{2} \\
 & = \frac{1}{2} \pi r^2
\end{split}
\end{equation}

produces the first block in this pdf

image

We need to do something to unify this, so that if is rendered in the web editor, it will render correctly in the PDF also

mrava87 commented 2 years ago

Oh I see, let me try :)

stevejpurves commented 2 years ago

@mrava87 did this work out for you?

mrava87 commented 2 years ago

Yes :D

In curvenote, it seems like this trick created double numbering but when I export it I only get the relevant one.

Screen Shot 2022-08-12 at 5 39 21 PM
stevejpurves commented 2 years ago

@mrava87 I take it you saw that double numbering when looking at a curvenote website with curvneote start?

mrava87 commented 2 years ago

I am using the curvenote web-editor

stevejpurves commented 2 years ago

closing this issue, the duplicated numbering we will pick up in https://github.com/curvenote/curvenote/issues/136