diff options
author | jfbu <jfbu@free.fr> | 2021-01-29 12:09:36 +0300 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2021-01-29 12:40:50 +0300 |
commit | d6e11b89e9d43120bfd008de5563899e58b80b7d (patch) | |
tree | 81d6de2f6d1f6debe9d459ed33dd1ac941a1a510 /sphinx/texinputs | |
parent | 185a2d27fee2418ee9056caac0a0652c63a0a7d7 (diff) |
Fix suppression of needed whiteline, encapsulate into \sphinxAtStartPar
Define it to do nothing with lualatex engine
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r-- | sphinx/texinputs/sphinx.sty | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index f406b1089..33d3cc445 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -410,6 +410,11 @@ \DisableKeyvalOption{sphinx}{numfigreset} \DisableKeyvalOption{sphinx}{nonumfigreset} \DisableKeyvalOption{sphinx}{mathnumfig} +% To allow hyphenation of first word in narrow contexts; no option, +% customization to be done via 'preamble' key +\newcommand*\sphinxAtStartPar{\hskip\z@skip} +% No need for the \hspace{0pt} trick (\hskip\z@skip) with luatex +\ifdefined\directlua\let\sphinxAtStartPar\@empty\fi % user interface: options can be changed midway in a document! \newcommand\sphinxsetup[1]{\setkeys{sphinx}{#1}} |