scholdoc icon indicating copy to clipboard operation
scholdoc copied to clipboard

Internal reference of aligned equation array

Open gantech opened this issue 9 years ago • 2 comments

The example given on the scholarly markdown syntax guide website doesn't seem to work for me.

\left.\begin{aligned}
B'&=-\partial\times E\
E'&=\partial\times B - 4\pi j
\end{aligned}
\right}
\qquad \text{Maxwell's equations}

```

produces

<span class="math scholmd-math-display" style="display: block;">\[
\begin{equation}
\label{maxwellEq}
\left.\begin{aligned}
B&#39;&amp;=-\partial\times E\\
E&#39;&amp;=\partial\times B - 4\pi j
\end{aligned}
\right\}
\qquad \text{Maxwell&#39;s equations}
\end{equation}
\]</span>

However, I notice that on the html file on the website, the label is placed at the end just before \end{equation}. If I modify my html file manually to do the same thing, the reference works! Could anyone help me solve this issue.
```

gantech avatar Apr 25 '16 15:04 gantech

I see that commit 231b717daa00eac2b8e5c5fc931c381e62d9f656 was supposed to deal with this issue explicitly.. however it doesn't seem to work on my computers...I used debian to install cabal and then did cabal install scholdoc and scholdoc-citeproc. I installed this October 2015. Do I need to do anything else?

gantech avatar Apr 25 '16 16:04 gantech

Sorry..doing more digging.. I found that the latest version on hackage is still 0.1.3 http://hackage.haskell.org/package/scholdoc. Could this be upgraded to the latest version please? Are there any instructions for installing this manually otherwise?

gantech avatar Apr 25 '16 16:04 gantech