At times when referencing a LaTeX figure, using the MMD command [](#ref_foo), will reference the wrong number. The problem appears to be that the \label{} code in xhtml2latex.xslt comes before the \caption{} code. To solve, I recommend moving the \label{} code to be inside the \caption{} code, such as \caption{\label{ref_foo} Caption for the Figure}.
At times when referencing a LaTeX figure, using the MMD command
[](#ref_foo)
, will reference the wrong number. The problem appears to be that the\label{}
code inxhtml2latex.xslt
comes before the\caption{}
code. To solve, I recommend moving the\label{}
code to be inside the\caption{}
code, such as\caption{\label{ref_foo} Caption for the Figure}
.