]> git.scottworley.com Git - paperdoorknob/blobdiff - paperdoorknob_test.py
Learning TeX: Render icon images with TeX command
[paperdoorknob] / paperdoorknob_test.py
index c4232829a9b41a940728cce880bc87fcee4a4613..286d6a9fc3aa65ca4cae3c4934470f27e775e468 100644 (file)
@@ -42,6 +42,7 @@ class BaseTestProcess(ABC):
             lambda x: x,
             lambda x: None,
             lambda x: x,
+            20,
             ContentOnlyLayout(PandocTexifier('pandoc')),
             'margin=20mm',
             buf,
@@ -50,7 +51,7 @@ class BaseTestProcess(ABC):
         assert re.match(br'''\\documentclass{article}
 (\\usepackage{[a-z]+}\n)+\\usepackage\[margin=20mm\]{geometry}
 \\begin{document}
-\\newcommand{\\href}\[2\]{#2\\footnote{#1}}
+(.|\n)*
 This is \\href{https://glowfic.com}{glowfic}
 
 You \\emph{sure}\?
@@ -71,6 +72,7 @@ Pretty sure.
             lambda x: x,
             lambda x: None,
             lambda x: x,
+            20,
             ContentOnlyLayout(texifier),
             None,
             buf,
@@ -86,7 +88,8 @@ Pretty sure.
                 lambda x: x,
                 lambda x: None,
                 lambda x: x,
-                BesideIconLayout(PandocTexifier('pandoc'), 20),
+                20,
+                BesideIconLayout(PandocTexifier('pandoc')),
                 None,
                 out,
                 lambda _: None)