from images import FakeImageStore
from spec import Spec
from texify import DirectTexifier, PandocTexifier, VerifyingTexifier
from images import FakeImageStore
from spec import Spec
from texify import DirectTexifier, PandocTexifier, VerifyingTexifier
- assert buf.getvalue() == b'''\\documentclass{article}
-\\usepackage{graphicx}
-\\usepackage{varwidth}
-\\usepackage{wrapstuff}
-\\usepackage[margin=20mm]{geometry}
+ assert re.match(br'''\\documentclass{article}
+(\\usepackage{[a-z]+}\n)+\\usepackage\[margin=20mm\]{geometry}
- lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
- BelowIconLayout(PandocTexifier('pandoc'), 20),
+ lambda x: None,
+ lambda x: x,
+ BesideIconLayout(PandocTexifier('pandoc'), 20),
paperdoorknob.process(spec)
subprocess.run(['pdflatex', 'test.tex'],
stdin=subprocess.DEVNULL, check=True)
paperdoorknob.process(spec)
subprocess.run(['pdflatex', 'test.tex'],
stdin=subprocess.DEVNULL, check=True)