Skip to content

Commit

Permalink
DOC: Escape underscore in \text{}
Browse files Browse the repository at this point in the history
Unescaped underscores seem to work with MathJax, but LaTeX itself does complain.
  • Loading branch information
mgeier committed Mar 12, 2019
1 parent 44a2c5e commit 41f520f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sfs/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def max_order_circular_harmonics(N):
It is given on page 132 of [Ahrens2012]_ as
.. math::
\text{max_order} =
\text{max\_order} =
\begin{cases}
N/2 - 1 & \text{even}\;N \\
(N-1)/2 & \text{odd}\;N,
Expand All @@ -634,7 +634,7 @@ def max_order_circular_harmonics(N):
which is equivalent to
.. math::
\text{max_order} = \big\lfloor \frac{N - 1}{2} \big\rfloor.
\text{max\_order} = \big\lfloor \frac{N - 1}{2} \big\rfloor.
Parameters
----------
Expand All @@ -649,7 +649,7 @@ def max_order_spherical_harmonics(N):
r"""Maximum order of 3D HOA.
.. math::
\text{max_order} = \lfloor \sqrt{N} \rfloor - 1.
\text{max\_order} = \lfloor \sqrt{N} \rfloor - 1.
Parameters
----------
Expand Down

0 comments on commit 41f520f

Please sign in to comment.