TransWikia.com

Beamer: Reserving space for video overlay

TeX - LaTeX Asked by André Schlichting on August 24, 2020

For preparing a video lecture, I would like to have a frame template on which I can reserve a rectangular area, on which I want to place later a camera overlay for screencasting.
Ideally, the template also has the aspect ratio 16:9, to allow for a FullHD recording.
The size of the rectangular area should be between around 1/9 of the total area.

|----------------------------------|
|              Title               |
|----------------------------------|
|                                  |
|                                  |
|        CONTENT      |------------|
|                     |   video    |
|                     |  overlay   |
|---------------------|------------|

A modification of the default scheme would be sufficient since the corporate scheme builds on it.

One Answer

IMHO you should draw with TikZ, for example, a rectangle of the correct dimensions in lower right corner. Then prepare all your slides taking care of don't write in the rectangle. In the end, for the final version, you just delete the rectangle from all your slides. Et voilà that's it.

This is the very simple code:

documentclass[11pt,aspectratio=169]{beamer}
usetheme{default}
usepackage{tikz}
usetikzlibrary{calc}
newcommand{forCam}{
tikz[remember picture,overlay]
fill[red] (current page.south east) rectangle +(-5,3); %adjust this values by trial and errors for fit your camera overlay 
}
begin{document}
setbeamertemplate{navigation symbols}{}

begin{frame}
    frametitle{Title}
forCam % comment this line for delete the rectangle in the final version
Content of the slide

tikz[remember picture, overlay]
node at ($(current page.south east)!0.5!($(current page.south east)+(-5,3)$)$) {Don't write here!};
end{frame}
end{document}

slide for overlay camera

Correct answer by vi pa on August 24, 2020

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