pandoc/dockerfiles

restructuredText file with two tables leads to a `! Undefined control sequence` but compiles fine on another distribution

goekce opened this issue · 3 comments

two-tables.rst:

Example
-------

======================  =
0                       1
======================  =

Example
-------

=  =
0  1
=  =
docker run --rm -it --mount type=bind,src=.,dst=/data pandoc/latex two-tables.rst --to beamer -o two-tables.pdf

output:

Error producing PDF.
! Undefined control sequence.
\@currentHref ->table.\theHtable 
                                 
l.120 \end{frame}

Image version: Digest: sha256:def4afcf033586bc67b393236a3247d79234e76c5fa006365c2fdc1dc0cba5e6

Tags latest-ubuntu and edge have the same behavior. On Archlinux with pandoc 3.2.1 I don't get any errors. I don't see any version differences between pdflatexs and lualatexs between Archlinux and the Docker image.

If the number of =s is lower in the table above, then the error goes away.

Can someone reproduce this?

This appears to be an instance of jgm/pandoc#9914.

oh nice to hear that the problem is known.

I understand that the underlying issue is latex3/latex2e#1377. So I'll leave this issue open until the upstream issue is resolved.

As a workaround you can use pandoc/latex:3.0 until the upstream issue is fixed.