diff options
author | Hong Xu <hong@topbug.net> | 2015-12-19 19:34:39 -0800 |
---|---|---|
committer | Hong Xu <hong@topbug.net> | 2015-12-21 01:30:14 -0800 |
commit | 4d3fdc0e47b88c8afe31acfe0cebe076481afe2c (patch) | |
tree | f49fc95ab06cbc7dcdb37d32510d061194437ba5 /sphinx/ext/mathbase.py | |
parent | dd74537c62f7b8c7c17fe8705cf0d0da5e3da669 (diff) | |
download | sphinx-git-4d3fdc0e47b88c8afe31acfe0cebe076481afe2c.tar.gz |
Fix LaTeX output of \mathbb in math
If \mathbb is used in math, which is commonly used to represent sets,
the output LaTeX won't compile. This commit fixes this issue by adding
amsfonts package in the setup of sphinx.ext.mathbase .
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r-- | sphinx/ext/mathbase.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py index 1c5de3cd7..97c9eac5b 100644 --- a/sphinx/ext/mathbase.py +++ b/sphinx/ext/mathbase.py @@ -214,3 +214,4 @@ def setup_math(app, htmlinlinevisitors, htmldisplayvisitors): app.add_role('eq', eq_role) app.add_directive('math', MathDirective) app.connect('doctree-resolved', number_equations) + app.add_latex_package('amsfonts') |