timtylin / scholdoc

Fork of Pandoc for the implementation of a ScholarlyMarkdown parser
scholdoc.scholarlymarkdown.com
GNU General Public License v2.0
335 stars 16 forks source link

Internal reference of aligned equation array #22

Open gantech opened 8 years ago

gantech commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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?