pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
362 stars 98 forks source link

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

Open goekce opened 1 month ago

goekce commented 1 month ago

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?

tarleb commented 1 month ago

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

goekce commented 1 month ago

oh nice to hear that the problem is known.

I understand that the underlying issue is https://github.com/latex3/latex2e/issues/1377. So I'll leave this issue open until the upstream issue is resolved.

goekce commented 1 month ago

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