Add options argument to Sphinx.add_latex_package()

This commit is contained in:
tk0miya
2014-09-28 21:10:26 +09:00
parent 6358d62718
commit 16529c5604
4 changed files with 17 additions and 4 deletions

View File

@@ -288,9 +288,15 @@ package.
.. versionadded:: 1.0
.. method:: Sphinx.add_latex_package(packagename)
.. method:: Sphinx.add_latex_package(packagename, options=None)
Add *packagename* to the list of packages that LaTeX source code will include.
If you provide *options*, it will be taken to `\usepackage` declaration.
.. code-block:: python
app.add_latex_package('mypackage') # => \usepackage{mypackage}
app.add_latex_package('mypackage', 'foo,bar') # => \usepackage[foo,bar]{mypackage}
.. versionadded:: 1.3