[python-dtcwt] 338/497: docs: use aligned environment in math mode

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit b9c9f2d1a962f25d77a3662ee97ffaa53d1515b5
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Feb 6 22:20:48 2014 +0000

    docs: use aligned environment in math mode
    
    The align environment doesn't play nicely with Sphinx's LaTeX output.
---
 docs/conf.py          | 4 +++-
 docs/registration.rst | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index bf8089a..b619777 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -195,7 +195,9 @@ latex_elements = {
 #'pointsize': '10pt',
 
 # Additional stuff for the LaTeX preamble.
-#'preamble': '',
+'preamble': '''
+    \usepackage{amsmath}
+''',
 }
 
 # Grouping the document tree into LaTeX files. List of tuples
diff --git a/docs/registration.rst b/docs/registration.rst
index e97d75b..fd4507b 100644
--- a/docs/registration.rst
+++ b/docs/registration.rst
@@ -154,7 +154,7 @@ affine parameters in :math:`\mathbf{\tilde{a}}`. We can solve for
 :math:`\epsilon(\mathbf{x})`:
 
 .. math::
-    \begin{align}
+    \begin{aligned}
         \epsilon(\mathbf{x}) &= \sum_{d=1}^6 \left\|
             \mathbf{c}_d^T(\mathbf{x}) \mathbf{\tilde{K}}(\mathbf{x}) \mathbf{\tilde{a}}
         \right\|^2 \\
@@ -162,7 +162,7 @@ affine parameters in :math:`\mathbf{\tilde{a}}`. We can solve for
             \mathbf{\tilde{a}}^T \, \mathbf{\tilde{K}}^T(\mathbf{x}) \, \mathbf{c}_d(\mathbf{x})
             \mathbf{c}^T_d(\mathbf{x}) \, \mathbf{\tilde{K}}(\mathbf{x}) \, \mathbf{\tilde{a}} \\
         &= \mathbf{\tilde{a}}^T \mathbf{\tilde{Q}}(\mathbf{x}) \mathbf{\tilde{a}}
-    \end{align}
+    \end{aligned}
 
 where
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list