Use "align" environment to wrap math equations instead of "gather"

Using align brings the benefit when multiple math equations are in one
math directive, alignment is provided. We also use "aligned" to wrap the
equations since in this way all the equations will be given only one
label/tag, while previously only the first equation is labeled.
This commit is contained in:
Hong Xu
2016-01-20 23:25:58 -08:00
parent b0e02b4a12
commit 76e29ca5b3
4 changed files with 29 additions and 8 deletions
+3
View File
@@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
master_doc = 'index'
latex_documents = [
(master_doc, 'test.tex', 'Math Extension Testing', 'Sphinx', 'report')]
+8
View File
@@ -8,3 +8,11 @@ Inline :math:`E=mc^2`
Second math
.. math:: e^{i\pi}+1=0
Multi math equations
.. math::
S &= \pi r^2
V &= \frac{4}{3} \pi r^3