diff --git a/CHANGES b/CHANGES index 9e8acbd37..6572d1cbb 100644 --- a/CHANGES +++ b/CHANGES @@ -22,7 +22,8 @@ Bugs fixed * #6668: LaTeX: Longtable before header has incorrect distance (refs: `latex3/latex2e#173`_) -.. _latex3/latex2e#173: https://github.com/latex3/latex2e/issues/173 + .. _latex3/latex2e#173: https://github.com/latex3/latex2e/issues/173 +* #6618: LaTeX: Avoid section names at the end of a page Testing -------- diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index e0189b43f..bf7ae9eb1 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -40,7 +40,7 @@ % for \text macro and \iffirstchoice@ conditional even if amsmath not loaded \RequirePackage{amstext} \RequirePackage{textcomp}% "warn" option issued from template -\RequirePackage{titlesec} +\RequirePackage[nobottomtitles*]{titlesec} \@ifpackagelater{titlesec}{2016/03/15}% {\@ifpackagelater{titlesec}{2016/03/21}% {}%