我发现这个投影仪主题我只需要标题页,因为我已经使用了默认主题。我怎样才能从这个主题中只提取标题页?
答案1
以下是我的一份提案摘录beamer 主题 mines-albi(需要两次编译):
\documentclass{beamer}
\usepackage{babel}
\usepackage{tikz}
\usetikzlibrary{calc}
\makeatletter
\defbeamertemplate*{part page}{mytheme}
{
\begin{tikzpicture}[overlay,remember picture,shift={(current page.north west)}]
\hypersetup{linkcolor=.}%
\ifbabelshorthand{!}{\shorthandoff*{!}}{}
\path let
\p1 = (.8*\paperheight,-1*\paperheight),
\p2 = (0,{-1*\paperheight + \x1}),
\p3 = (.8*\paperheight,0),
\p4 = ($(\p1)!(\p3)!(\p2)$)
in
(\p1) coordinate (p1)
(\p2) coordinate (p2)
(\p3) coordinate (p3)
(\p4) coordinate (p4)
;
\fill[fill=cyan,line width=0]
(current page.south east) -- (p1) -- (p4) -- (p3) -| cycle;
\fill[fill=orange,line width=0]
(current page.north west) -- (p3) -- (p4) -- (p2) -- cycle;
\path let
\p5 = ($(p4)!.5!(p3)$),
\p6 = (\p5 |- p4),
\n1 = {\paperwidth - \x6 - \Gm@rmargin},
\n2 = {\n1 - 1em}
in (\p6)
node[anchor=west,text width=\n2,inner sep=.5em,align=flush right] {%
\usebeamerfont*{part name}%
\usebeamercolor[fg]{part name}%
\iflanguage{french}{\partname}{\partname~\thepart}%
\par%
\usebeamerfont*{part title}\insertpart\par%
};
\node[at={(current page.south west)},shift={(.1*\paperheight,.1*\paperheight)},
anchor=south west,inner sep=0]
{\includegraphics[width=22mm]{example-image}};
\end{tikzpicture}
}
\makeatother
\setbeamertemplate{part page}[mytheme]
\setbeamercolor{part name}{fg=white}%
\setbeamertemplate{navigation symbols}{}
\AtBeginPart{\frame[plain]{\partpage}}
\begin{document}
\part{Introduction}
\end{document}