X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/372211762c57033dfef33075bd593ec5d426f3c7..b254976424d0f56fab14f8897dade345ce46a2d1:/paperdoorknob.py diff --git a/paperdoorknob.py b/paperdoorknob.py index 4e7cdf6..6a55675 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -34,7 +34,9 @@ def process(spec: Spec) -> None: spec.texout.write(b'\\usepackage[' + spec.geometry.encode('UTF-8') + b']{geometry}\n') - spec.texout.write(b'\\begin{document}\n') + spec.texout.write(b'''\\begin{document} +\\newcommand{\\href}[2]{#2\\footnote{#1}} +''') url = flatURL(spec.url) html = parse(spec.htmlfilter(spec.fetcher.fetch(url))) num_chunks = ilen(chunkDOMs(html))