From cddcb0a360f326c76f9bb1d88e7a815a4424b447 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 2 May 2018 19:10:58 +0200 Subject: [PATCH] Added custom variable toc-own-page --- README.md | 5 ++++- eisvogel.tex | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b29e2f..3f16405 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ This template defines some new variables to control the appearance of the title - `caption-justification` default=`raggedright` justification setting for captions (uses the `justification` parameter of the [caption](https://ctan.org/pkg/caption?lang=en) package) +- `toc-own-page` default=`false` + + begin new page after table of contents, when `true` ## Examples @@ -152,4 +155,4 @@ images and tables | Code blocks styled without listings ## License -This project is open source licensed under the BSD 3-Clause License. Please see the [LICENSE file](LICENSE) for more information. \ No newline at end of file +This project is open source licensed under the BSD 3-Clause License. Please see the [LICENSE file](LICENSE) for more information. diff --git a/eisvogel.tex b/eisvogel.tex index ed2edac..d5250af 100644 --- a/eisvogel.tex +++ b/eisvogel.tex @@ -724,6 +724,9 @@ $if(beamer)$ \begin{frame} \tableofcontents[hideallsubsections] \end{frame} +$if(toc-own-page)$ +\newpage +$endif$ $else$ { $if(colorlinks)$ @@ -731,6 +734,9 @@ $if(colorlinks)$ $endif$ \setcounter{tocdepth}{$toc-depth$} \tableofcontents +$if(toc-own-page)$ +\newpage +$endif$ } $endif$ $endif$