Source: sfepy
Version: 2016.2-3
Severity: serious
Justification: fails to build from source
Tags: patch fixed-upstream
User: python-modules-t...@lists.alioth.debian.org
Usertags: sphinx1.6

Dear maintainer,

sfepy package currently uses latex_preamble configuration option to define
its custom LaTeX commands. However that option was deprecated [1] in Sphinx
0.5 (in 2008) and removed [2] in Sphinx 1.6.

This makes the package FTBFS with the following error (\pdiff is defined in
the preamble):

  ! Undefined control sequence.
  l.1018 \Omega \setminus \Gamma\), i.e. \(\pdiff
                                                 {T}{\ul{n}} = 0\) there.  The
  ? 
  ! Emergency stop.

A patch to use the modern setting is attached, based on upstream commit [3].

[1]: https://github.com/sphinx-doc/sphinx/commit/f16dae964a7a5298
[2]: http://www.sphinx-doc.org/en/stable/changes.html#features-removed
[3]: https://github.com/sfepy/sfepy/commit/8fb2189c3a9a9aec

--
Dmitry Shachnev
Description: Updated conf.py to new LaTeX customization scheme
Origin: upstream, https://github.com/sfepy/sfepy/commit/8fb2189c3a9a9aec
Last-Update: 2017-10-13

--- a/doc/conf.py
+++ b/doc/conf.py
@@ -214,7 +214,8 @@
 
 # Additional stuff for the LaTeX preamble.
 #latex_preamble = ''
-latex_preamble = r"""
+latex_elements = {
+    'preamble': r'''
 \usepackage{bm}
 \usepackage{amsfonts}
 \def\dt{{\Delta t}}
@@ -244,7 +245,8 @@
 \def\vb{\bm{v}}
 \def\Mb{\bm{M}}
 \def\vphib{\bm{\varphi}}
-"""
+''',
+}
 # LS: Are the following needed as well?
 #\def\Vcal{\mathcal{V}}
 #\def\Tcal{\mathcal{T}}
@@ -258,7 +260,7 @@
 #latex_use_modindex = True
 
 # Preamble for pngmath images
-pngmath_latex_preamble = latex_preamble
+pngmath_latex_preamble = latex_elements['preamble']
 
 # Turn off numpydoc autosummary tables
 numpydoc_show_class_members = False

Attachment: signature.asc
Description: PGP signature

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to