<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsubsection{Video}
% \DescribeMacro{\youtube}{Youtube command. Requires id.}
%    \begin{macrocode}
%&lt;*classXimera&gt;
\newcommand{\youtube}[1]{YouTube link: \url{https://www.youtube.com/watch?v=#1}}
%&lt;/classXimera&gt;
%    \end{macrocode}
%    \begin{macrocode}
%&lt;*htXimera&gt;
\renewcommand{\youtube}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{&lt;div class="video youtube-player" data-youtube="#1"&gt;_&lt;/div&gt;}}
%&lt;/htXimera&gt;
%    \end{macrocode}
% Video commands are also emitted, slightly differently, when placed
% at top-level in a xourse file.
%    \begin{macrocode}
%&lt;*htXourse&gt;
\renewcommand\youtube[1]{%
\ifvmode \IgnorePar\fi \EndP\HCode{&lt;a class="youtube" href="https://www.youtube.com/watch?v=#1"&gt;#1&lt;/a&gt;}\IgnoreIndent%
}
%&lt;/htXourse&gt;
%    \end{macrocode}
</pre></body></html>