Add new API: Sphinx.add_latex_package()

Sphinx.add_latex_package() allows sphinx extensions to add latex packages.
It helps creating extensions for latex (for example, latex-theming)
This commit is contained in:
tk0miya committed 2014-09-27 12:47:27 +09:00
1 parent 7984f81a5e
commit c04ad2908e
5 files changed
+24

No files matched your search

+7
View File
@@ -91,3 +91,10 @@ def test_latex(app, status, warning):
assert False, 'latex exited with return code %s' % p.returncode
finally:
os.chdir(cwd)
@with_app(buildername='latex')
def test_latex_add_latex_package(app, status, warning):
app.add_latex_package('foo')
app.builder.build_all()
assert '\\usepackage{foo}' in (app.outdir / 'SphinxTests.tex').text()