summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorHong Xu <hong@topbug.net>2015-12-19 19:34:39 -0800
committerHong Xu <hong@topbug.net>2015-12-21 01:30:14 -0800
commit4d3fdc0e47b88c8afe31acfe0cebe076481afe2c (patch)
treef49fc95ab06cbc7dcdb37d32510d061194437ba5 /sphinx/ext/mathbase.py
parentdd74537c62f7b8c7c17fe8705cf0d0da5e3da669 (diff)
downloadsphinx-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.py1
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')