Code for tables is only loaded when tables are in the document.

This commit is contained in:
Wandmalfarbe 2017-06-09 14:46:57 +02:00
parent 2337e82b92
commit fc584bb323
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ language: r
pandoc_version: 1.19.2.1
install:
- sudo apt-get install poppler-utils
- tlmgr install xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro
- tlmgr install longtable xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro
before_script:
- cd examples
script:

View File

@ -413,7 +413,7 @@ $endif$
%
% tables
%
\usepackage{booktabs} % needed for midrule
$if(tables)$
\usepackage{tabularx}
\renewcommand{\arraystretch}{1.6} % table spacing
@ -426,6 +426,7 @@ $endif$
\let\endoldlongtable\endlongtable
\renewenvironment{longtable}{\rowcolors{2}{white}{table-gray}\oldlongtable} {
\endoldlongtable}
$endif$
%
% remove paragraph indention