Change default ratio for fullscreen images to 4:3
This commit is contained in:
parent
5f4f5b00e3
commit
c4e07adbc9
|
@ -365,17 +365,17 @@
|
|||
}}
|
||||
|
||||
% the optional argument is the aspect ratio
|
||||
% (default to 16:9)
|
||||
% (default to full-screen, ie 4:3 for Beamer)
|
||||
% for instance, for 16:9 (9/16 = 0.56): \videoframe[0.56]{myvideo.webm}
|
||||
\newcommand\videoframe[2][]{%
|
||||
{
|
||||
\setbeamertemplate{background canvas}{
|
||||
\noindent\colorbox{black}{%
|
||||
\parbox[c][\paperheight][c]{\paperwidth}{%
|
||||
\ifstrempty{#1}{
|
||||
% #1 is empty
|
||||
\href{run:#2}{\resizebox{\paperwidth}{0.56\paperheight}{\includepreview{#2}}}
|
||||
\href{run:#2}{\resizebox{\paperwidth}{\paperheight}{\includepreview{#2}}}
|
||||
}{
|
||||
\noindent\colorbox{black}{%
|
||||
\parbox[c][\paperheight][c]{\paperwidth}{%
|
||||
\href{run:#2}{\resizebox{\paperwidth}{#1\paperwidth}{\includepreview{#2}}}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue