X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/9afdb32a9385204c13018198a136637ad599df47..bbfe8e520fea31ad19b8bc2ab5bc02cc5cddb205:/paperdoorknob.py?ds=inline diff --git a/paperdoorknob.py b/paperdoorknob.py index 8183136..0fb3fe1 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -37,6 +37,9 @@ def process(spec: Spec) -> None: spec.texout.write(br'''\begin{document} \newcommand{\href}[2]{#2\footnote{\detokenize{#1}}} \def\glowiconsize{%fmm} +\newcommand{\glowicon}[1]{\includegraphics[ + width=\glowiconsize,height=\glowiconsize,keepaspectratio +]{#1}} ''' % spec.icon_size) url = flatURL(spec.url) spec.log('Fetching HTML...\r')