@@ -78,6 +78,7 @@ $for(polyglossia-otherlangs)$
7878$endfor$
7979\fi
8080$endif$
81+\newif\ifbibliography
8182$if(natbib)$
8283\usepackage{natbib}
8384\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
@@ -129,9 +130,12 @@ $endif$
129130 \frame{\partpage}
130131}
131132\AtBeginSection{
132− \let\insertsectionnumber\relax
133− \let\sectionname\relax
134− \frame{\sectionpage}
133+ \ifbibliography
134+ \else
135+ \let\insertsectionnumber\relax
136+ \let\sectionname\relax
137+ \frame{\sectionpage}
138+ \fi
135139}
136140\AtBeginSubsection{
137141 \let\insertsubsectionnumber\relax
@@ -215,6 +219,7 @@ $else$
215219$endif$
216220$endif$
217221\begin{frame}[allowframebreaks]{$biblio-title$}
222+\bibliographytrue
218223\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
219224\end{frame}
220225
@@ -222,6 +227,7 @@ $endif$
222227$endif$
223228$if(biblatex)$
224229\begin{frame}[allowframebreaks]{$biblio-title$}
230+\bibliographytrue
225231\printbibliography[heading=none]
226232\end{frame}
227233