from fetch import CachingFetcher
from glowfic import BesideIconLayout, BelowIconLayout, Layout
from htmlfilter import ApplyHTMLFilters, HTMLFilters
+from texfilter import ApplyTexFilters, TexFilters
from images import DiskImageStore
from spec import Spec
from texify import PandocTexifier
'(eg: "%(default)s" produces %(default)s.tex, %(default)s.pdf, etc.)',
default='book')
parser.add_argument('--pandoc', help='Location of the pandoc executable')
+ parser.add_argument(
+ '--texfilters',
+ help='Which TeX filters to use (default: %(default)s)',
+ default=','.join(f[0] for f in TexFilters))
parser.add_argument(
'--timeout',
help='How long to wait for HTTP requests, in seconds',
DiskImageStore(args.out + '_images', fetcher),
lambda x: ApplyHTMLFilters(args.htmlfilters, x),
lambda x: ApplyDOMFilters(args.domfilters, x),
+ lambda x: ApplyTexFilters(args.texfilters, x),
layout,
args.geometry,
texout)