Typesetting question:
I've noticed that in many novels there will be a scene change within a chapter that is marked by a larger than normal gap between two paragraphs. Is there a way to represent this in a #LaTeX document?
Typesetting question:
I've noticed that in many novels there will be a scene change within a chapter that is marked by a larger than normal gap between two paragraphs. Is there a way to represent this in a #LaTeX document?
Matthew Skala
in reply to Jonathan Lamothe • • •Jonathan Lamothe likes this.
Jonathan Lamothe
in reply to Matthew Skala • •\vspace{1em}
is probably what I'm looking for.Marei
in reply to Jonathan Lamothe • • •@mattskala It would be better to wrap that into a specific command. So you can adjust the amount later globally instead of locally having it hardcoded. To give an example:
\NewDocumentCommand{\chapterSep}{\par\vspace{1em}\AddToHookNext{para/begin}{\OmitIndent}}
The \OmitIndent thing would make it flexible so you also use it with documents where you have indentation of the first line instead of a parskip.
#TeXLaTeX
Matthew Skala
in reply to Marei • • •Marei
in reply to Matthew Skala • • •@mattskala not internal,, as they are user level commands. But yes, it's part of #TeLaTeX without any package
NewDocumentCommand is the modern replacement of newcommand. (see `texdoc usrguide`)
The hook with OmitIndent allows to set the \noindent for the following paragraph, while \noindent has to be called at the beginning of that paragraph.(`texdoc ltpara-doc¸`)
Online links of the documentation:
texdoc.org/serve/usrguide/0
texdoc.org/serve/ltpara-doc/0
Marei
in reply to Marei • • •@mattskala Oh and I of course I agree there are document class which support that by default. Just sometimes one may not use those or can't or whatever. So I wanted to provide a general option. Of course you should check the documentation of the document class first.
memoir's plainbreak is defined similar. But what I don't like about it, that it does not have a default value for the size. So I'd still define my own \chapterSep to be like \plainbreak{1} to be able to adjust that globally.