Skip to content

Commit 684668d

Browse files
committed
Fix --toc-depth with beamer output.
Previously only top-level sections were ever included in the TOC, regardless of the setting of `--toc-depth`. Closes #9861.
1 parent 9af5b1c commit 684668d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data/templates/default.latex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ $if(beamer)$
571571
$if(toc-title)$
572572
\frametitle{$toc-title$}
573573
$endif$
574-
\tableofcontents[hideallsubsections]
574+
\setcounter{tocdepth}{$toc-depth$}
575+
\tableofcontents
575576
\end{frame}
576577
$else$
577578
{

0 commit comments

Comments
 (0)