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
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,