tUpdate scibeamer - scibeamer - quickly create scientific presentations using LateX and Beamer
(HTM) git clone git://src.adamsgaard.dk/scibeamer
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f6501aaea57e75760fbf82f6c62df081e33bcbb5
(DIR) parent 9e660e53a3b371915c12ac74968d5d1b015d65d5
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 17 Sep 2019 15:09:40 +0200
Update scibeamer
Diffstat:
M scibeamer.sty | 53 ++++++++++++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/scibeamer.sty b/scibeamer.sty
t@@ -3,6 +3,9 @@
%\RequirePackage{lmodern}
+% for \movie command
+\RequirePackage{multimedia}
+
% Do not show horizontal line above footnotes
\renewcommand\footnoterule{}
t@@ -56,10 +59,58 @@
% \imageframecite{arg1}{arg2}{arg3}{arg4}{arg5}
% Add a frame with title `arg1`, containing a single image `arg2`, scaled
-% relative to frame height multiplied by `arg3`, including a citation to
+% relative to frame width multiplied by `arg3`, including a citation to
% publication authored by `arg4`, published in `arg5`.
% Example: \imageframecite{An example title}{image.pdf}{1.0}{Author year}{Journal}
\newcommand{\imageframecite}[5]{\begin{frame}{#1}\begin{center}\centering\includegraphics[width=#3\textwidth]{#2}\end{center}\fcite{#4}{#5}\end{frame}}
+% \imageframeciteheight{arg1}{arg2}{arg3}{arg4}{arg5}
+% Add a frame with title `arg1`, containing a single image `arg2`, scaled
+% relative to frame height multiplied by `arg3`, including a citation to
+% publication authored by `arg4`, published in `arg5`.
+% Example: \imageframecite{An example title}{image.pdf}{1.0}{Author year}{Journal}
+\newcommand{\imageframeciteheight}[5]{\begin{frame}{#1}\begin{center}\centering\includegraphics[height=#3\textheight]{#2}\end{center}\fcite{#4}{#5}\end{frame}}
+
+
+% \plainmovieframe{arg1}{arg2}{arg3}
+% Add a plain frame with a single full-frame movie `arg1`, with a placeholder
+% text `arg2`, with multimedia options `arg3` (externalviewer always set)
+% NOTE: The movie file *must* reside in the same folder as the PDF, and file
+% names with underscore characters cannot be used.
+% Example: \plainmovieframe{movie.mp4}{Example movie clip}{}
+\newcommand{\plainmovieframe}[3]{\begin{frame}\begin{center}\centering\movie[externalviewer,#3]{#2}{#1}\\\footnotesize{\texttt{#1}}\end{center}\end{frame}}
+
+% \movieframe{arg1}{arg2}{arg3}{arg4}
+% Add a frame titled `arg1`, a single full-frame movie `arg2`, with a
+% placeholder text `arg3`, with multimedia options `arg4` (externalviewer
+% always set)
+% NOTE: The movie file *must* reside in the same folder as the PDF, and file
+% names with underscore characters cannot be used.
+% Example: \movieframe{Example movie}{movie.mp4}{Example movie clip}{}
+\newcommand{\movieframe}[4]{\begin{frame}{#1}\begin{center}\centering\movie[externalviewer,#4]{#3}{#2}\\\footnotesize{\texttt{#2}}\end{center}\end{frame}}
+
+% \plainmovieframepreview{arg1}{arg2}{arg3}
+% Add a plain frame with a single full-frame movie `arg1`, with a preview image
+% `arg2`, with multimedia options `arg3` (externalviewer always set)
+% NOTE: The movie file *must* reside in the same folder as the PDF, and file
+% names with underscore characters cannot be used.
+% Example: \plainmovieframepreview{movie.mp4}{movie.png}{}
+\newcommand{\plainmovieframepreview}[3]{\begin{frame}\begin{center}\centering\movie[externalviewer,#3]{\includegraphics[height=0.75\textheight]{#2}}{#1}\\\footnotesize{\texttt{#1}}\end{center}\end{frame}}
+
+% \movieframepreview{arg1}{arg2}{arg3}{arg4}
+% Add a frame titled `arg1` with a single full-frame movie `arg2`, a preview
+% image `arg2`, and with multimedia options `arg3` (externalviewer always set)
+% NOTE: The movie file *must* reside in the same folder as the PDF, and file
+% names with underscore characters cannot be used.
+% Example: \movieframepreview{An example movie}{movie.mp4}{movie.png}{}
+\newcommand{\movieframepreview}[4]{\begin{frame}{#1}\begin{center}\centering\movie[externalviewer,#4]{\includegraphics[height=0.75\textheight]{#3}}{#2}\\\footnotesize{\texttt{#2}}\end{center}\end{frame}}
+
+% \movieframepreviewnotitle{arg1}{arg2}{arg3}{arg4}
+% Add a frame titled `arg1` with a single full-frame movie `arg2`, a preview
+% image `arg2`, and with multimedia options `arg3` (externalviewer always set)
+% NOTE: The movie file *must* reside in the same folder as the PDF, and file
+% names with underscore characters cannot be used.
+% Example: \movieframepreview{An example movie}{movie.mp4}{movie.png}{}
+\newcommand{\movieframepreviewnotitle}[4]{\begin{frame}{#1}\begin{center}\centering\movie[externalviewer,#4]{\includegraphics[height=0.75\textheight]{#3}}{#2}\\\end{center}\end{frame}}
\endinput