From 32d5e8c976afceb4390c305c21586a91f85451d3 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 8 Apr 2024 13:21:55 +0200 Subject: Use array --- pandoc/templates/elenq-article.latex | 14 +++++++++++++- pandoc/templates/elenq-book.latex | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pandoc/templates/elenq-article.latex b/pandoc/templates/elenq-article.latex index 7ce6c8e..ee19f6c 100644 --- a/pandoc/templates/elenq-article.latex +++ b/pandoc/templates/elenq-article.latex @@ -276,7 +276,19 @@ $endif$ % Multiple page tables if needed $if(tables)$ -\usepackage{longtable,booktabs} +\usepackage{longtable,booktabs,array} +$if(multirow)$ +\usepackage{multirow} +$endif$ +\usepackage{calc} % for calculating minipage widths +% Correct order of tables after \paragraph or \subparagraph +\usepackage{etoolbox} +\makeatletter +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} +\makeatother +% Allow footnotes in longtable head/foot +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} +\makesavenoteenv{longtable} $endif$ % Strikeout text if needed diff --git a/pandoc/templates/elenq-book.latex b/pandoc/templates/elenq-book.latex index fa1dfe2..01290ee 100644 --- a/pandoc/templates/elenq-book.latex +++ b/pandoc/templates/elenq-book.latex @@ -274,7 +274,19 @@ $endif$ % Multiple page tables if needed $if(tables)$ -\usepackage{longtable,booktabs} +\usepackage{longtable,booktabs,array} +$if(multirow)$ +\usepackage{multirow} +$endif$ +\usepackage{calc} % for calculating minipage widths +% Correct order of tables after \paragraph or \subparagraph +\usepackage{etoolbox} +\makeatletter +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} +\makeatother +% Allow footnotes in longtable head/foot +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} +\makesavenoteenv{longtable} $endif$ % Strikeout text if needed -- cgit v1.2.3