]> git.scottworley.com Git - paperdoorknob/blobdiff - args.py
Put Texifier in spec
[paperdoorknob] / args.py
diff --git a/args.py b/args.py
index fc7a0f7af147073450761e06fa262a3eea66992d..ede847118dd4bfdd5cc7f62843252790fac52405 100644 (file)
--- a/args.py
+++ b/args.py
@@ -89,9 +89,9 @@ def spec_from_commandline_args() -> Iterator[Spec]:
     texifier = PandocTexifier(args.pandoc or 'pandoc')
     layout: Layout
     if args.layout == 'below':
-        layout = BelowIconLayout(texifier, args.image_size)
+        layout = BelowIconLayout(texifier)
     elif args.layout == 'beside':
-        layout = BesideIconLayout(texifier, args.image_size)
+        layout = BesideIconLayout(texifier)
     else:
         raise ValueError(f'Unknown layout: {args.layout}')
     log = (lambda _: None) if args.quiet else _print_status
@@ -103,7 +103,9 @@ def spec_from_commandline_args() -> Iterator[Spec]:
                 DiskImageStore(args.out + '_images', fetcher),
                 lambda x: ApplyHTMLFilters(args.htmlfilters, x),
                 lambda x: ApplyDOMFilters(args.domfilters, x),
+                texifier,
                 lambda x: ApplyTexFilters(args.texfilters, x),
+                args.image_size,
                 layout,
                 args.geometry,
                 texout,