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