pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Add table ID to LaTeX output

Open tarleb opened this issue 1 year ago • 0 comments

The identifier of a table is lost when converting to LaTeX, making it impossible to reference and crosslink to the table from within the document.

pandoc -f html -t latex
<table id="test">
  <tr><td>one</td><td>two</td></tr>
</table>
^D
\begin{longtable}[]{@{}ll@{}}
\toprule()
\endhead
one & two \\
\bottomrule()
\end{longtable}

The hypertarget should probably be added to the caption if one exists, or elsewhere in the table if the caption is empty.

tarleb avatar Aug 07 '22 14:08 tarleb