diff options
Diffstat (limited to 'macros/latex/contrib/ximera/src/interactives/video.dtx')
-rw-r--r-- | macros/latex/contrib/ximera/src/interactives/video.dtx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/latex/contrib/ximera/src/interactives/video.dtx b/macros/latex/contrib/ximera/src/interactives/video.dtx new file mode 100644 index 0000000000..7f7979db3f --- /dev/null +++ b/macros/latex/contrib/ximera/src/interactives/video.dtx @@ -0,0 +1,21 @@ +% \subsubsection{Video} +% \DescribeMacro{\youtube}{Youtube command. Requires id.} +% \begin{macrocode} +%<*classXimera> +\newcommand{\youtube}[1]{YouTube link: \url{https://www.youtube.com/watch?v=#1}} +%</classXimera> +% \end{macrocode} +% \begin{macrocode} +%<*htXimera> +\renewcommand{\youtube}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{<div class="video youtube-player" data-youtube="#1">_</div>}} +%</htXimera> +% \end{macrocode} +% Video commands are also emitted, slightly differently, when placed +% at top-level in a xourse file. +% \begin{macrocode} +%<*htXourse> +\renewcommand\youtube[1]{% +\ifvmode \IgnorePar\fi \EndP\HCode{<a class="youtube" href="https://www.youtube.com/watch?v=#1">#1</a>}\IgnoreIndent% +} +%</htXourse> +% \end{macrocode} |