From 173838b53479c7265e5fcd30efaea2181b7dad7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B=2E?= <2589111+jfbu@users.noreply.github.com> Date: Sat, 5 Oct 2024 23:28:11 +0200 Subject: [PATCH] LaTeX: use current parskip package for better spacing around titles (#12833) Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> --- CHANGES.rst | 2 ++ sphinx/texinputs/sphinxlatexstylepage.sty | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6001fd220..ababf23e9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,8 @@ Dependencies * #12756: Add lower-bounds to the ``sphinxcontrib-*`` dependencies. Patch by Adam Turner. +* #12833: Update the LaTeX ``parskip`` package from 2001 to 2018. + Patch by Jean-François B. Incompatible changes -------------------- diff --git a/sphinx/texinputs/sphinxlatexstylepage.sty b/sphinx/texinputs/sphinxlatexstylepage.sty index 3af88c377..53f9e4828 100644 --- a/sphinx/texinputs/sphinxlatexstylepage.sty +++ b/sphinx/texinputs/sphinxlatexstylepage.sty @@ -4,13 +4,7 @@ \ProvidesPackage{sphinxlatexstylepage}[2021/01/27 page styling] % Separate paragraphs by space by default. -\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}} +\RequirePackage{parskip} % Style parameters and macros used by most documents here \raggedbottom