TransWikia.com

Simple box in beamer

TeX - LaTeX Asked by theWrongAlice on February 23, 2021

I’m looking for a beamer theme with a simple box around each frame. Just a coloured rectangle, really. I tried to frame each slide myself with tcolorbox, but I can only make it start below the frame title. How would I go about making a box like the one in the picture below? Or is there a preset theme that I haven’t found yet?

enter image description here

One Answer

Following code could be a solution. It draws a rectangular TikZ node in background. You have to compile twice to see the rectangular border.

documentclass{beamer}
usepackage{tikz}
setbeamertemplate{background canvas}{%
    begin{tikzpicture}[remember picture, overlay]%
    node[draw=blue, thick, minimum width=.975paperwidth, minimum height=.95paperheight] at (current page.center){};
    end{tikzpicture}}
    
begin{document}
begin{frame}{Testing Background Image}
    Hello!
end{frame}
end{document}

enter image description here

Correct answer by Ignasi on February 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP