fletcher / MultiMarkdown

Expanded perl version of John Gruber's original Markdown --- No longer under active development since MMD 3
http://fletcherpenney.net/multimarkdown/
1.06k stars 530 forks source link

Wrong number used in LaTeX for figure and tables references #6

Closed cumulusware closed 15 years ago

cumulusware commented 15 years ago

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}.

cumulusware commented 15 years ago

Fixed in commit 2c7259500f0a8f87e09b535d3a0f8a0cdacf5520

fletcher commented 15 years ago

Done.