Posts Tagged ‘out-denting’

Quotations Containing Hanging Paragraphs in LAΤΕΧ

Monday, 4 May 2020

In a paper on which I'm working, I needed a block quotation, within which there were hanging paragraphs — for each every line except for the first was indented — effected in a way that naturally complemented ordinary block quotations as defined in article.cls. Not being a master of LAΤΕΧ, I made a search for how to do this, but I did not find anything that quite did the job. I arrived at this

\newenvironment{hangquotation}
    {\list{}{%
        \setlength{\itemindent}{-1.5em}%
        \setlength{\listparindent}{\itemindent}%
        \setlength{\rightmargin}{\leftmargin}%
        \addtolength{\leftmargin}{1.5em}%
        \setlength{\parsep}{\z@ \@plus\p@}%
    }%
    \item\relax}
    {\endlist}

which I am posting for the benefit of someone which the same problem, or with a problem sufficiently similar that my solution is readily adapted to his or to hers.

Here's an example of the output: [screenshot]

To use the code, place it in the LAΤΕΧ preamble, and then nest each block of paragraphs for which it is to be used between \begin{hangquotation} and \end{hangquotation}.