pandoc / pandoc/dockerfiles

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

Open
#243 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
439
Forks
107
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided two-tables.rst example and run the pandoc/latex Docker command against the reported image tags. Compare the container's LaTeX and Pandoc versions with the Arch Linux setup, and vary the number of equals signs as described. Done means reproducing the failure and identifying a documented, reproducible difference or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, latex
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.