Skip to content

Pandoc 2.11.2 requires calc LaTeX package #1566

Closed

Description

@buergi

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

Activity

  1. added
    format:LaTeX
    on May 11, 2021
  2. added a commit that references this issue on Dec 9, 2021
  3. ivanov commented on Dec 9, 2021

    @ivanov
    Member

    closed by #1686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    format:LaTeX

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions