summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2019-01-22 09:45:11 +0100
committerjfbu <jfbu@free.fr>2019-01-22 09:45:11 +0100
commitf2536b145ee0c79eca29cf5c8ef0b6bad20147dd (patch)
treebe7c8bc94686300a052a77b7cc13d4c2be9fb782 /sphinx/texinputs
parent52a9a1a81862469ce040103e652f09ec90afb146 (diff)
parenta11a74287f7b26f1eb633c1a739eb493bdd949ee (diff)
downloadsphinx-git-f2536b145ee0c79eca29cf5c8ef0b6bad20147dd.tar.gz
Merge branch '1.8'
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty8
1 files changed, 7 insertions, 1 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index b4708eb0e..3af7d3e1f 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -220,7 +220,13 @@
% For floating figures in the text. Better to load after float.
\RequirePackage{wrapfig}
% Separate paragraphs by space by default.
-\RequirePackage{parskip}
+\IfFileExists{parskip-2001-04-09.sty}% since September 2018 TeXLive update
+% new parskip.sty, but let it rollback to old one.
+% hopefully TeX installation not broken and LaTeX kernel not too old
+ {\RequirePackage{parskip}[=v1]}
+% standard one from 1989. Admittedly \section of article/book gives possibly
+% anomalous spacing, but we can't require September 2018 release for some time.
+ {\RequirePackage{parskip}}
% For parsed-literal blocks.
\RequirePackage{alltt}
% Display "real" single quotes in literal blocks.