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 an e.g. 10px broad orange border on the right hand side of each frame? And how can I draw it only on the titlepage?

It shoud look like that: right frame border

share|improve this question
up vote 7 down vote accepted

You can use the beamer template background canvas and TikZ to do that:

\title{Frame border}
{ % only on titlepage
\setbeamertemplate{background canvas}{%
    \clip (0,0) rectangle (\paperwidth,\paperheight);
    \fill[color=orange] (\paperwidth-10pt,0) rectangle (\paperwidth,\paperheight);
} % only on titlepage

titlepage with right border

This keeps the frame border local to the titlepage. To have it on all frames, remove the two lines marked with % only on titlepage.

BTW: The unit px is only available in pdfTeX and LuaTeX - you can use pt instead which is the same as px in the default setting.

If you don't want to use TikZ, you can use the following background template (thanks to Gonzalo Medina):

\setbeamertemplate{background canvas}{%
share|improve this answer
Thanks, this looks perfect! Anyway, is there a way to do it without the tikz package? – Simon Mar 21 '12 at 11:09
@GonzaloMedina Great, thank you! I do not want to use another package :-) – Simon Mar 21 '12 at 14:11

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.