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

Pandoc 2.11.2 requires calc LaTeX package #1566

Closed
buergi opened this issue May 11, 2021 · 1 comment
Closed

Pandoc 2.11.2 requires calc LaTeX package #1566

buergi opened this issue May 11, 2021 · 1 comment
Labels
format:LaTeX pertains to exporting to the LaTeX format

Comments

@buergi
Copy link

buergi commented May 11, 2021

During export of jupyter notebook, I got loads of errors of the following kind

notebook.tex:798: Missing number, treated as zero
notebook.tex:798: Illegal unit of measure (
notebook.tex:799: Missing number, treated as zero
notebook.tex:799: Illegal unit of measure (
notebook.tex:803: Missing number, treated as zero
notebook.tex:803: Illegal unit of measure (

The notebook needs to contain markdown table of a certain width such as

| AAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCC | DDDDDDDDDDDDDD | EEEEEEEEEEEEEEEE | 
| --- | --- | --- |--- |--- |

when exporting this notebook as PDF (File > Download as > PDF via LaTeX (.pdf)) the described errors appear.

The problem was introduced with Pandoc 2.11.2 with this commit jgm/pandoc@bd7c9eb
To fix it we need to add \usepackage{calc} to base.tex.j2, ideally after the \usepackage{booktabs} line.

Nbconvert version: 6.0.7

@t-makaro t-makaro added the format:LaTeX pertains to exporting to the LaTeX format label May 11, 2021
cgevans added a commit to cgevans/nbconvert that referenced this issue Dec 7, 2021
Pandoc >= 2.11.1 requires the calc package, and pandoc >= 2.11.3
requires the array package, for larger tables (taken from git blame
for pandoc's templates).  This commits adds the two packages in
an order similar to that in pandoc's templates.
ivanov pushed a commit that referenced this issue Dec 9, 2021
Pandoc >= 2.11.1 requires the calc package, and pandoc >= 2.11.3
requires the array package, for larger tables (taken from git blame
for pandoc's templates).  This commits adds the two packages in
an order similar to that in pandoc's templates.
@ivanov
Copy link
Member

ivanov commented Dec 9, 2021

closed by #1686

@ivanov ivanov closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format:LaTeX pertains to exporting to the LaTeX format
Projects
None yet
Development

No branches or pull requests

3 participants