-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doing something of LaTeX commands when generating HTML #165
Comments
I wonder whether this would be a way to enable language tagging when converting from Google Code Info: |
I was just thinking about this too. Specifically I'd like to get label and ref tags and use javascript for cross referencing figs and math with numbering. Google Code Info: |
Handling \ref and \label in a cross-platform way is very complicated. If you just want automatic numbering of equations, with the ability to refer back, you should try the auto-numbered examples in pandoc's markdown: (@myeqn) As shown in ___, (@myeqn) is a refinement of ... Google Code Info: |
Thanks for the quick comment. Numbered examples are nice, but not quite enough for what I need in all cases. Would you still consider adding ref and label support to pandoc extended markdown syntax and reader? Latex and texinfo (http://www.gnu.org/software/hello/manual/texinfo/ref.html) can do this and in HTML you could use the ID tag for labels and refs would be fairly easy to handle with javascript. Of course using labels would require the ability to specify the label for figures, tables, equations and code so I know this requires some changes. Google Code Info: |
What would \ref{foo} and \label{foo} be rendered as in HTML? In LaTeX you might have: In figure~\ref{fig1} in section~\ref{sec1}, ... To render this properly, pandoc would have to know that fig1 is a label for a figure, and sec1 for a section, and pandoc would have to keep track of numbering for both. In addition there's the problem that default HTML and LaTeX output in pandoc doesn't number sections. Google Code Info: |
I think For figures Pandoc could use the title argument as label and ID as follows:
In HTML:
And in Latex:
I guess tables and equations would need some additional syntax to add I think I should be able to produce the required javascript and I'm Google Code Info: |
This seems mostly implemented now. Closing in favour of more specific issues, if remaining. |
Hey @mb21 not so fast! What about |
The text was updated successfully, but these errors were encountered: