# equation labels and references in mmd?

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

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

1 Posted by

ACGon 13 Jun, 2013 06:47 PMI 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

Support Staff 2 Posted by

fletcheron 13 Jun, 2013 08:05 PMMMD 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-

fletcher

closedthis discussion on 13 Jun, 2013 08:05 PM.