Open veromary opened 2 months ago
Oooo.
I admit the scripture
environment is very picky about what you put inside it. Everything is a LaTeX list and LaTeX lists fiddle with \par
in odd ways. Combine that with the scripture
environment trying to manage \parshape
across paragraphs and I'm not surprised that problems arise.
I'll see if I can track down exactly what is going on, but in the mean time for the case where your section headings are not in an inner environment (e.g., poetry
, hanging
, etc.) try adding this to your preamble:
\makeatletter
\AddToHook{cmd/subsection/before}{%
\parshape 1 \@totalleftmargin \linewidth}
\makeatother
Trying to put section headings within inner environments is probably a bad idea.
Using \section
and friends for headings is a reasonable feature to try and make work, so I'll see if I can make things more robust.
I typeset a book of gospels last year without this being much of an issue. It's puzzling.
I changed how the main scripture
environment works. It used to not use a LaTeX list, but now it does (there were too many weird problems with spacing). I would say that if you tried to recompile your document with the current version, it would fail.
Thank you!
I've tried to pare it down to a minimal example. Sometimes, after a few paragraphs, it starts indenting as if there's a drop cap even though there's no chapter number. Most of the time I can reset it by using "\end{scripture} \begin{scripture}" or putting the subsection headings outside the environment, but then I need extra code to soak up the extra vertical space. I typeset a book of gospels last year without this being much of an issue. It's puzzling.
test.pdf