LaTeX: load amstext in sphinx.sty even if not using amsmath

Needed in particular for:

- use of \iffirstchoice@ at commit 9d82cad (PR #2297)

- use of \text at commit 488ee52 addressing issue #2501
This commit is contained in:
jfbu 2016-06-04 10:12:16 +02:00
parent df6ed50799
commit 401302df48
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Bugs fixed
* #2614: Some tables in PDF output will end up shifted if user sets non zero \parindent in preamble
* #2602: URL redirection breaks the hyperlinks generated by `sphinx.ext.intersphinx`
* #2613: Show warnings if merged extensions are loaded
* #2619: make sure amstext LaTeX package always loaded (ref: d657225, 488ee52, 9d82cad and #2615)
Release 1.4.2 (released May 29, 2016)

View File

@ -10,6 +10,8 @@
\@ifclassloaded{memoir}{}{\RequirePackage{fancyhdr}}
% for \text macro and \iffirstchoice@ conditional even if amsmath not loaded
\RequirePackage{amstext}
\RequirePackage{textcomp}
% fancybox not used anymore and will be removed at Sphinx-1.5
\RequirePackage{fancybox}