From b9addb2372c4c3b285d14a44ef727b3d11751e15 Mon Sep 17 00:00:00 2001 From: Constantine Evans Date: Thu, 9 Dec 2021 06:54:16 +0000 Subject: [PATCH] Fix recent pandoc latex tables (#1536, #1566) (#1686) 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. --- share/jupyter/nbconvert/templates/latex/base.tex.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/jupyter/nbconvert/templates/latex/base.tex.j2 b/share/jupyter/nbconvert/templates/latex/base.tex.j2 index 5575798f9..ce28fcb79 100644 --- a/share/jupyter/nbconvert/templates/latex/base.tex.j2 +++ b/share/jupyter/nbconvert/templates/latex/base.tex.j2 @@ -77,6 +77,8 @@ override this.-=)) \usepackage{titling} \usepackage{longtable} % longtable support required by pandoc >1.10 \usepackage{booktabs} % table support for pandoc > 1.12.2 + \usepackage{array} % table support for pandoc >= 2.11.3 + \usepackage{calc} % table minipage width calculation for pandoc >= 2.11.1 \usepackage[inline]{enumitem} % IRkernel/repr support (it uses the enumerate* environment) \usepackage[normalem]{ulem} % ulem is needed to support strikethroughs (\sout) % normalem makes italics be italics, not underlines