mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Add options argument to Sphinx.add_latex_package()
This commit is contained in:
1 parent
6358d62718
commit
16529c5604
4 files changed
+17
-4
No files matched your search
@@ -96,5 +96,7 @@ def test_latex(app, status, warning):
|
||||
@with_app(buildername='latex')
|
||||
def test_latex_add_latex_package(app, status, warning):
|
||||
app.add_latex_package('foo')
|
||||
app.add_latex_package('bar', 'baz')
|
||||
app.builder.build_all()
|
||||
assert '\\usepackage{foo}' in (app.outdir / 'SphinxTests.tex').text()
|
||||
assert '\\usepackage[baz]{bar}' in (app.outdir / 'SphinxTests.tex').text()
|
||||
Reference in new issue
Block a user