X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/1452f8d33eb6ffe6812698768f1e6bb975d9c4cf..24e866347ec2355c35e0e39e317946b9b833d2ed:/paperdoorknob.py?ds=inline diff --git a/paperdoorknob.py b/paperdoorknob.py index 4ee4dbc..0da6d97 100644 --- a/paperdoorknob.py +++ b/paperdoorknob.py @@ -18,7 +18,10 @@ def parse(content: bytes) -> BeautifulSoup: def process(spec: Spec) -> None: spec.texout.write(b'''\\documentclass{article} +\\usepackage{booktabs} \\usepackage{graphicx} +\\usepackage{longtable} +\\usepackage{soul} \\usepackage{varwidth} \\usepackage{wrapstuff} ''') @@ -32,7 +35,7 @@ def process(spec: Spec) -> None: for r in chunkDOMs(html): spec.domfilter(r) chunk = makeChunk(r, spec.images) - spec.texout.write(spec.layout.renderChunk(chunk)) + spec.texout.write(spec.texfilter(spec.layout.renderChunk(chunk))) spec.texout.write(b'\\end{document}\n')