Debian Codegraph @

texmf-dist/doc/latex/ximera/src/xkcd.dtx

raw
1 % \subsubsection{XKCD}
2 % \DescribeMacro{\xkcd}{Reference an XKCD cartoon.}
3 % \begin{macrocode}
4 %<*classXimera>
5 \newcommand{\xkcd}[1]{#1}
6 %</classXimera>
7 % \end{macrocode}
8 % On the web, this should be an image linked to the actual XKCD website.
9 % \begin{macrocode}
10 %<*htXimera>
11 \renewcommand{\xkcd}[1]{\ifvmode \IgnorePar\fi \EndP\HCode{<img src="https://imgs.xkcd.com/comics/#1.png">}}
12 %</htXimera>
13 % \end{macrocode}