Tuesday, 15 September 2015

How to place labels correctly and use cross-reference in latex to be able to convert to html(5) using pandoc? -


intro

I want to create the source code in latex to create PDFFX via PDF Through the html page (s) I use the following source

  \ documentclass [12pt, a4paper] {article} \ usepackage [T1] {fontenc} \ usepackage [utf8] {inputenc} \ Usepackage [Maggire] {Babel} \ first example point \ end {enumerate} is an example of how to demonstrate how \ textbackslash labels \ {\} and \ textbackslash Referees \ {\} do not work with Pandoc The first example should be a reference to: \ {{itm: thefirst} \ end {document}  

This can be compiled with pdflatex without any error or warning is.

Problem

I create an html page using pandoc using the following code:

  pandoc -f latex sample. Tex -t html5 -o sample.html -s - -toc -s  

But it creates unsatisfactory results around labels and references:

  & Lt; Body & gt; & Lt; Ol & gt; & Lt; Li & gt; & Lt; P & gt; [Itm: thefirst] First example point & lt; / P & gt; & Lt; / Li & gt; & Lt; / Ol & gt; & Lt; P & gt; This is an example to demonstrate how \ label {} and \ ref {} is not working with pandoc. Here's a reference to the first example: [itm: thefirst]  

question

What will I modify in the latex source code to get something like this:

  & lt; Body & gt; & Lt; Ol & gt; & Lt; Li & gt; & Lt; P id = "itm: thefirst" & gt; The first example point & lt; / P & gt; & Lt; / Li & gt; & Lt; / Ol & gt; & Lt; P & gt; This is an example to demonstrate how \ label {} and \ ref {} is not working with pandoc. Here's a reference to the example:  

What will I modify in latex source code [...] < / P>

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


No comments:

Post a Comment