lierdakil / pandoc-crossref

Pandoc filter for cross-references
https://lierdakil.github.io/pandoc-crossref/
GNU General Public License v2.0
950 stars 76 forks source link

Referencing linguistic examples, tables and figures (from LaTex to docx) #316

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi all,

I think there might be an answer to it somewhere but I really cannot find it as I am a beginner to all these. I am converting a .tex to .docx and tables, figures and my linguistic examples all lack referencing between the texts (\ref{} in latex) and them. And some of the tables are not present. Where the examples and tables are present, my latex lines for their reference {xxx} as in \label{xxx} are there.

The syntax I used to convert is: pandoc xxx.tex --filter pandoc-crossref --biblio=Bib1306.bib -o test3.docx --citeproc

Thank you so much for your help.

Best, Joe

lierdakil commented 3 years ago

LaTeX as input format is not supported, but see https://github.com/lierdakil/pandoc-crossref/issues/250. TL;DR you can use an additional filter to make it kind of work, but you might have better luck with pandoc without pandoc-crossref or even something else entirely like tex4ht, depending on your use case.

Also, pandoc-crossref doesn't understand linguistic examples, it is only aware of tables, figures, listings, sections and equations.