mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-20 06:47:51 +00:00
Added custom variable toc-own-page
This commit is contained in:
parent
f9b234f151
commit
cddcb0a360
@ -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
|
||||
|
||||
|
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user