mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3241 from jfbu/checktitlesecversion
Close #3210: emit latex warning if buggy titlesec.
This commit is contained in:
commit
dc582bc2dd
@ -6,7 +6,7 @@
|
|||||||
%
|
%
|
||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||||
\ProvidesPackage{sphinx}[2016/12/11 v1.5.1 LaTeX package (Sphinx markup)]
|
\ProvidesPackage{sphinx}[2016/12/14 v1.5.2 LaTeX package (Sphinx markup)]
|
||||||
|
|
||||||
% we delay handling of options to after having loaded packages, because
|
% we delay handling of options to after having loaded packages, because
|
||||||
% of the need to use \definecolor.
|
% of the need to use \definecolor.
|
||||||
@ -18,6 +18,11 @@
|
|||||||
\RequirePackage{amstext}
|
\RequirePackage{amstext}
|
||||||
\RequirePackage{textcomp}
|
\RequirePackage{textcomp}
|
||||||
\RequirePackage{titlesec}
|
\RequirePackage{titlesec}
|
||||||
|
\AtBeginDocument{\@ifpackagelater{titlesec}{2016/03/15}%
|
||||||
|
{\@ifpackagelater{titlesec}{2016/03/21}{}%
|
||||||
|
{\AtEndDocument{\PackageWarningNoLine{sphinx}{^^J%
|
||||||
|
******** ERROR !! PLEASE UPDATE titlesec.sty !!********^^J%
|
||||||
|
******** THIS VERSION SWALLOWS SECTION NUMBERS.********}}}}{}}
|
||||||
\RequirePackage{tabulary}
|
\RequirePackage{tabulary}
|
||||||
\RequirePackage{makeidx}
|
\RequirePackage{makeidx}
|
||||||
% For framing code-blocks and warning type notices, and shadowing topics
|
% For framing code-blocks and warning type notices, and shadowing topics
|
||||||
|
Loading…
Reference in New Issue
Block a user