Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goekce opened this issue Jul 19, 2024 · 3 comments

Comments

@goekce
Copy link

goekce commented Jul 19, 2024

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
Copy link
Member

tarleb commented Jul 19, 2024

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

@goekce
Copy link
Author

goekce commented Jul 19, 2024

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.

@goekce
Copy link
Author

goekce commented Jul 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants