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