From 2a9bd4178928ec00e1935fb801b7dae5b541671f Mon Sep 17 00:00:00 2001 From: jfbu Date: Thu, 17 Jan 2019 17:06:11 +0100 Subject: [PATCH] Closes: #5960 Mumble --- CHANGES | 2 ++ sphinx/texinputs/sphinx.sty | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 337a3f0e8..719c2ef65 100644 --- a/CHANGES +++ b/CHANGES @@ -30,6 +30,8 @@ Bugs fixed in an admonition * #5231: "make html" does not read and build "po" files in "locale" dir * #5954: ``:scale:`` image option may break PDF build if image in an admonition +* #5960: LaTeX: modified PDF layout since September 2018 TeXLive update of + :file:`parskip.sty` Testing -------- diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 4410709d5..de6664cd1 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.