mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-02-07 03:40:13 +00:00
Merge pull request #38 from Andre0512/toc-own-page
Added custom variable toc-own-page
This commit is contained in:
commit
b34762da19
@ -68,6 +68,9 @@ This template defines some new variables to control the appearance of the title
|
|||||||
- `caption-justification` default=`raggedright`
|
- `caption-justification` default=`raggedright`
|
||||||
|
|
||||||
justification setting for captions (uses the `justification` parameter of the [caption](https://ctan.org/pkg/caption?lang=en) package)
|
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
|
## Examples
|
||||||
|
|
||||||
|
@ -724,6 +724,9 @@ $if(beamer)$
|
|||||||
\begin{frame}
|
\begin{frame}
|
||||||
\tableofcontents[hideallsubsections]
|
\tableofcontents[hideallsubsections]
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
$if(toc-own-page)$
|
||||||
|
\newpage
|
||||||
|
$endif$
|
||||||
$else$
|
$else$
|
||||||
{
|
{
|
||||||
$if(colorlinks)$
|
$if(colorlinks)$
|
||||||
@ -731,6 +734,9 @@ $if(colorlinks)$
|
|||||||
$endif$
|
$endif$
|
||||||
\setcounter{tocdepth}{$toc-depth$}
|
\setcounter{tocdepth}{$toc-depth$}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
|
$if(toc-own-page)$
|
||||||
|
\newpage
|
||||||
|
$endif$
|
||||||
}
|
}
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
|
Loading…
x
Reference in New Issue
Block a user