如何使用类在框架标题下方画一条线beamer
?我希望框架标题和框架内容之间有明显的区分。另外,我希望环境block
用蓝色阴影表示。我使用的 LaTeX 代码是
\documentclass[10pt]{beamer}
\mode<beamer>{%
\usetheme[hideothersubsections,
right,width=22mm]{Goettingen}
}
\title{Math}
\author[Mister X]{X}
\institute{University}
\titlegraphic{\includegraphics[width=20mm]{USTL}}
\date{January 15, 2012}
\begin{document}
\begin{frame}<handout:0>
\titlepage
\end{frame}
\begin{frame}\frametitle{part 1}
The following proposition is easy to prove.
\begin{block}{Proposition}
some statement
\end{block}
\end{frame}
\end{document}
答案1
您可以使用 TikZ 来完成此操作,引用当前页面节点:
\usepackage{tikz}
\newcommand{\topline}{%
\tikz[remember picture,overlay] {%
\draw[blue] ([yshift=-1cm]current page.north west)
-- ([yshift=-1cm,xshift=\paperwidth]current page.north west);}}
...
\begin{frame}\frametitle{part 1}
\topline
...
\end{frame}