Allow toggling of toc
This commit is contained in:
parent
00badaa7e2
commit
b5bbc2d22a
1 changed files with 1 additions and 1 deletions
|
@ -49,6 +49,6 @@ def export_pdf(content, config):
|
||||||
os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'),
|
os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'),
|
||||||
options=PDF_OPTIONS,
|
options=PDF_OPTIONS,
|
||||||
cover=FILE_NAME_FORMAT.format('cover'),
|
cover=FILE_NAME_FORMAT.format('cover'),
|
||||||
toc=TOC_OPTIONS,
|
toc=TOC_OPTIONS if config['toc'] else {},
|
||||||
cover_first=True
|
cover_first=True
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue