Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Pandoc allows referencing images via inline Latex commands. However, it seems it does not work for tables. I'm aware of several workarounds, including manipulating a resulting TeX file manually, but is there a way, for example via inline Latex, to get pandoc to output Latex/PDF/... with automatic table references, like the following (which does not work):

See table \ref{example}.

my  table
--- ------
a   1
b   2
Table \label{example}: An example that does not work.
share|improve this question

1 Answer 1

See table \ref{my_table}.

Table: (table title) \label{my_table}

Header1 Header2 Header3
------- ------- -------
item1   item2   item3
share|improve this answer
Welcome to TeX.SX! It would be great if you can extend your answer, for example providing the code for real implementation. –  Claudio Fiandrino Jan 20 at 7:44
@user44431 Would you mind to elaborate your answer? –  pushpen.paul Jul 19 at 16:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.