spec.geometry.encode('UTF-8') +
b']{geometry}\n')
spec.texout.write(b'''\\begin{document}
-\\newcommand{\\href}[2]{#2\\footnote{#1}}
+\\newcommand{\\href}[2]{#2\\footnote{\\detokenize{#1}}}
''')
url = flatURL(spec.url)
spec.log('Fetching HTML...\r')
assert re.match(br'''\\documentclass{article}
(\\usepackage{[a-z]+}\n)+\\usepackage\[margin=20mm\]{geometry}
\\begin{document}
-\\newcommand{\\href}\[2\]{#2\\footnote{#1}}
+\\newcommand{\\href}\[2\]{#2\\footnote{\\detokenize{#1}}}
This is \\href{https://glowfic.com}{glowfic}
You \\emph{sure}\?