summaryrefslogtreecommitdiff
path: root/pandoc/templates/elenq-book.latex
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-04-08 13:21:55 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-04-08 13:21:55 +0200
commit32d5e8c976afceb4390c305c21586a91f85451d3 (patch)
tree87ba2a51b6812012c77fad57f0f8bdd31e102237 /pandoc/templates/elenq-book.latex
parent993a0cb6d93865bd585ccfa9f5e3be19cb74510a (diff)
Use array
Diffstat (limited to 'pandoc/templates/elenq-book.latex')
-rw-r--r--pandoc/templates/elenq-book.latex14
1 files changed, 13 insertions, 1 deletions
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