TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I draw a line just below the title of the frame using the beamer class? I want a clear separation between the title of the frame and the content of the frame. Also, I want the block environment to be shaded in blue. The LaTeX code I'm using is

\author[Mister X]{X}
\date{January 15, 2012}

\begin{frame}\frametitle{part 1}
 The following proposition is easy to prove.
 some statement

share|improve this question
up vote 10 down vote accepted

You could do it with TikZ, referring to the current page node:

  \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}

line in frame

share|improve this answer
Nice, but it would be nice if I could define a command which does that. Also, the the proposition environment does not look good. – Nadori Jan 21 '12 at 17:25
I made it to a command for you. Please don't mix different questions. It would be good if you post another question for a different problem, such as shaded blocks. That's better for a question & answer site. – Stefan Kottwitz Jan 21 '12 at 17:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.