Skip to content Skip to sidebar Skip to footer

How To Place Labels Correctly And Use Cross-reference In Latex To Be Able To Convert To Html(5) Using Pandoc?

Introduction I'd like to create source code in latex in order to produce pdf via pdflatex and html page(s) via pandoc. I use the following source \documentclass[12pt,a4paper]{arti

Solution 1:

What shall I modify in the latex source code [...]

Pandoc does currently not support parsing and processing of \label{...} or \ref{...} from LaTeX files, so there is no easy solution to your problem.

Solution 2:

Why not go an alternative way?

Instead of writing your sources in LaTeX, write them in Markdown.

That way it will me much easier to convert the sources to HTML as well as to LaTeX and PDF.

As a bonus, you also get top-notch support to convert the sources to EPUB, DOCX, ODT and much more....

Post a Comment for "How To Place Labels Correctly And Use Cross-reference In Latex To Be Able To Convert To Html(5) Using Pandoc?"