9

I want to have a quotation environment that does not indent the first paragraph.

\documentclass{scrbook} 

\begin{document}

\makeatletter
\renewenvironment{quotation}
           {\list{}{\listparindent 1.5em%
                    \itemindent    \listparindent
                    \rightmargin \leftmargin
                    \parsep        \z@ \@plus\p@}%
            \item\relax}
           {\endlist}
\makeatother

This is normal text. This is normal text. This is normal text.
This is normal text. This is normal text. 
\begin{quotation}

This is a sentence that is devoid of any meaning. It should not be indented.

This ia another sentence. It should be indented. The other one shouldn't.
Some more text here. Some more text here. Some more text here. Some more text here. 

\end{quotation}
This again normal text. This again normal text. This again normal text.
This again normal text.

\end{document}

(A separate question would be how the environment can be modified so that the quote is not indented at the righthand side but instead aligned with the normal text.)

9

enter image description here

\documentclass{scrbook} 

\begin{document}

\makeatletter
\renewenvironment{quotation}
           {\list{}{\listparindent 1.5em%
                    %\itemindent    \listparindent
                    %\rightmargin \leftmargin
                    \parsep        \z@ \@plus\p@}%
            \item\relax}
           {\endlist}
\makeatother

This is normal text. This is normal text. This is normal text.
This is normal text. This is normal text. 
\begin{quotation}

This is a sentence that is devoid of any meaning. It should not be indented.

This ia another sentence. It should be indented. The other one shouldn't.
Some more text here. Some more text here. Some more text here. Some more text here. 

\end{quotation}
This again normal text. This again normal text. This again normal text.
This again normal text.

\end{document}

The first % stops the first para indenting, the second % stops the right margin being changed.

7

You could use the quoting environment of my package of the same name and activate the package options indentfirst=false and rightmargin=0pt.

For the sake of consistency, follow-up paragraphs within quotes should feature the same \parindent as normal running text. If you must use a different indentation, use \AtBeginEnvironment{quoting}{\setlength{\parindent}{1.5em}}.

\documentclass{scrbook} 

\usepackage[indentfirst=false,rightmargin=0pt]{quoting}

% \AtBeginEnvironment{quoting}{\setlength{\parindent}{1.5em}}

\begin{document}

This is normal text. This is normal text. This is normal text.
This is normal text. This is normal text. 

\begin{quoting}

This is a sentence that is devoid of any meaning. It should not be indented.

This is another sentence. It should be indented. The other one shouldn't.
Some more text here. Some more text here. Some more text here. Some more text here. 

\end{quoting}

This again normal text. This again normal text. This again normal text.
This again normal text.

\end{document}
0
6

Use \itemindent=0pt

If you don't want the quotations to be flush with the right margin, remove \rightmargin=\leftmargin.

\documentclass{scrbook}

\makeatletter
\renewenvironment{quotation}
  {\list{}{\listparindent=1.5em
           \itemindent=0pt
           \parsep\z@ \@plus\p@}%
           \item\relax}
  {\endlist}
\makeatother

\begin{document}

This is normal text. This is normal text. This is normal text. 
This is normal text. This is normal text.
\begin{quotation}
This is a sentence that is devoid of any meaning. It should not be indented.

This ia another sentence. It should be indented. The other one shouldn't. 
Some more text here. Some more text here. Some more text here. Some more text here.
\end{quotation}
This again normal text. This again normal text. This again normal text.
This again normal text.

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.