equation labels and references in mmd?

ACG's Avatar

ACG

13 Jun, 2013 05:45 PM

I am quite proficient at LaTeX as I write math papers for a living! But, I am teaching myself (multi-)markdown and would like to know how to produce labeled equations and then reference the labels in a multimarkdown document (which I then convert to a latex document and compile via pdflatex). For example, how do I produce the following latex snippet:

\begin{equation}
\sin(x) = 1.
\label{eq:eqn1}
\end{equation}

We see in Equation \ref{eq:eqn1} that ...

Thanks,
ACG

  1. 1 Posted by ACG on 13 Jun, 2013 06:47 PM

    ACG's Avatar

    I did find the following worked but I wondered if there was a more elegant solution:

    ------------------------
    Here's how to do equation references (which is a big deal to me in latex!). Here is the reference [](#eq:eqn1). There doesn't seem to be an automagic way of doing this except just commenting it out.
    <!-- \begin{equation}
    \sin(x) = 1.
    \label{eq:eqn1}
    \end{equation} -->
    -----------------------------

    Thanks,
    ACG

  2. Support Staff 2 Posted by fletcher on 13 Jun, 2013 08:05 PM

    fletcher's Avatar

    MMD 2 used ASCIIMathML to handle math, and then converted to LaTeX when appropriate. This syntax allowed me more control, and included a method to add labels to LaTeX equations.

    MMD 3/4 use straight LaTeX. So you use the standard LaTeX approaches to add labels, however you prefer.

    Your approach to referencing those equations above is correct ([](#eq:eqn1)).

    Thanks for your question, and thanks for answering it for others!

    F-

  3. fletcher closed this discussion on 13 Jun, 2013 08:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 Dec, 2022 09:57 PM
11 Dec, 2022 07:57 PM
26 Sep, 2022 02:40 AM
21 Jul, 2022 10:22 AM
11 Jan, 2022 02:33 PM

Recent Articles