2010-03-02 40 views
13

我希望將幀標題放在我的演講中。我明白,投影類有一個內置的中心幀標題的能力,但我不知道如何去做。它是這樣的:在乳膠中使用投影儀類時居中標題

\begin{frame} 
\frametitle[alignment=center]{title} 
\end{frame} 

但這並不起作用。

我可以得到一些幫助嗎?

回答

24

嘗試

\setbeamertemplate{frametitle}[default][center] 

所有幻燈片之前。

+0

完全工作!謝謝 ;) – jovo 2010-03-06 03:36:59

2

手動,我總是做這樣的:

\begin{frame} 
\frametitle{\centerline{Hello World!}} 
\end{frame} 
1

我認爲這是更好地把這個代碼在滲透你的文件。所以你會有幀標題和字幕中心:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
\makeatletter 
\long\def\[email protected]@frametitle[#1]#2{% 
    \[email protected]{#2}{}{% 
    \gdef\insertframetitle{\centering{#2\ifnum\[email protected]>0\relax{}\space\usebeamertemplate*{frametitle continuation}\fi}}% 
    \gdef\[email protected]{#2}% 
    \gdef\[email protected]{#1}% 
}% 
} 
\makeatother 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%