Text Formattingindents for first line in {quotation}

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
saimike
Posts: 20
Joined: Wed Apr 11, 2012 10:44 pm

indents for first line in {quotation}

Post by saimike »

How do I remove the indent in the first line after \begin{quotation} ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

indents for first line in {quotation}

Post by Frits »

You can add \noindent before the first word of the text in the quotation environment.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
saimike
Posts: 20
Joined: Wed Apr 11, 2012 10:44 pm

Re: indents for first line in {quotation}

Post by saimike »

Frits, Thanks!
saimike
Posts: 20
Joined: Wed Apr 11, 2012 10:44 pm

Re: indents for first line in {quotation}

Post by saimike »

Frits,

As it stands, I have to add a \noindent for every new line in my {quotation}, is there a way to make this a permanent configuration?
Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

indents for first line in {quotation}

Post by Frits »

Can you post a minimal working example?

The indentation that is removed with \noindent is the paragraph indentation, which can permanently be turned off with by adding this to your preamble:

Code: Select all

\setlength\parindent{0pt}
However I'm not sure that's the problem, that's why I asked for a minimal working example.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
saimike
Posts: 20
Joined: Wed Apr 11, 2012 10:44 pm

indents for first line in {quotation}

Post by saimike »

Frits

Right now, I have:

Code: Select all

\begin{quotation} \noindent 
Doctor: How are you feeling?

Patient: I have a headache.

Nurse: Here are his charts.
\end{quotation}
In this case, I see that the Doctor line is not indented, but both the Patient and the Nurse lines are indented.

Outside of the quotation, I want every paragraph to have an indent. But inside the quotation, however, I do not want any indents. Is that possible without inserting a \noindent in front of every paragraph in the quotation?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

indents for first line in {quotation}

Post by Stefan Kottwitz »

In that case use the {quote} environment instead of {quotation}. With quote, all paragraph indentations are turned off. Probably Frits did not mention it yet because your first question was just about turning it off at the beginning.

Btw. your code is not a Infominimal working example. No problem now with this simple issue, just next time perhaps post a compilable small example. Follow the link to read more about why and how.

Stefan
LaTeX.org admin
saimike
Posts: 20
Joined: Wed Apr 11, 2012 10:44 pm

Re: indents for first line in {quotation}

Post by saimike »

Stefan

Thanks for the tip. Still a rookie here, but I will try to follow the rules from now.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: indents for first line in {quotation}

Post by Stefan Kottwitz »

The MWE tip wan't meant as a strict rule, don't worry, just as a helpful advice. Most of the time, a MWE is a guarantee for getting a quick, working and verified solution. We like to test and to fix code, which is possible with complete (compilable, but reduced) code.

Stefan
LaTeX.org admin
Post Reply