X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/67612898f2efcbb985da8534e0cce124152601db..5f230208bb5e858cfeadb3d9c822579d2b7b8300:/paperdoorknob.py?ds=sidebyside diff --git a/paperdoorknob.py b/paperdoorknob.py index a19045c..0fb3fe1 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -36,7 +36,11 @@ def process(spec: Spec) -> None: b']{geometry}\n') 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') html = spec.fetcher.fetch(url)