
我正在研究Warsaw
主題和smoothbars
外主題。
我在簡報末尾新增了一個參考書目條目,該條目旨在用於出版物清單。但是,這些幻燈片不會添加到 的圓形進度條(這有技術名稱嗎?)smoothbars
。
檢查沒有分段的投影機導航圈?我認為添加一些小節可以解決問題,但這沒有用。看來,如果框架包含\printbibliography
(我猜是任何參考書目),那麼框架就會從進度條中跳過。另外,我不確定這是否與此有關漏洞。
檢查以下範例。透過添加小節出現第一格。第二小節包含該小節的框架也會出現,但有參考書目的架構除外。
\documentclass{beamer}
\begin{filecontents}{\jobname.bib}
@Book{test1,
author = {Goossens, Michel and Mittelbach,
Frank and Samarin, Alexander},
title = {The LaTeX Companion},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
year = {1994},
}
\end{filecontents}
\useoutertheme[subsection=false]{smoothbars}
\usepackage{biblatex}
\bibliography{\jobname}
\begin{document}
\section{Section}
\subsection{Subsection}
\begin{frame}{test}
content...
\end{frame}
\section{Publications}
\subsection{Subsection}
\begin{frame}{in nav}
this frame is in navigation bar
\end{frame}
\subsection{References}
\begin{frame}
\nocite{*}
\printbibliography[heading=subbibliography]
\end{frame}
\subsection{Subsection}
\begin{frame}{in nav}
this frame is also in navigation bar, but the previous one isn't
\end{frame}
\end{document}
那麼,如何讓有參考書目出現在smoothbars
/circle 進度條中的參考書目的幻燈片呢?
答案1
簡短形式的解決方案:使用
\printbibliography[heading=none]
解釋
biblatex
-部分
biblatex
測試載入了哪個文檔類。該類別不是有效選項,因此使用beamer
預設設定。abx@classtype
透過這些設置,該選項heading=subbibliography
代表以下定義:
\defbibheading{subbibliography}[\refname]{%
\subsection*{#1}}
定義在文件中完成biblatex.def
。請務必注意,\subsection
使用的是帶有星號的版本。
beamer
-部分
在beamer
結構化命令中,\subsection
應將其放置在環境之外frame
。如果您將此類命令放入其中,frame
將會產生不必要的副作用。在您的情況下,該命令\subsection*
會刪除smoothbar
.
一個簡單的例子證明了這一點:
\documentclass{beamer}
\useoutertheme[subsection=false]{smoothbars}
\begin{document}
\section{Section}
\subsection*{Subsection}
\begin{frame}{test}
content...a
\end{frame}
\begin{frame}{test}
\subsection*{Subsection b}
content...b
\end{frame}
\end{document}
根據上面的解釋,您必須刪除\subsection*
由heading=subbibliography
.最簡單的方法是其用法heading=none
定義為:
\defbibheading{none}{}