+ texifier = PandocTexifier(args.pandoc or 'pandoc')
+ layout: Layout
+ if args.layout == 'below':
+ layout = BelowIconLayout(texifier, args.image_size)
+ elif args.layout == 'beside':
+ layout = BesideIconLayout(texifier, args.image_size)
+ else:
+ raise ValueError(f'Unknown layout: {args.layout}')
+ log = (lambda _: None) if args.quiet else _print_status
+ with CachingFetcher(args.cache_path, args.timeout, log) as fetcher: