Is there a way to remove the indentation at the beginning of a paragraph for a single paragraph. I know I could do
\setlength{\parindent}{0cm}
This is my paragraph. Blah blah blah.
\setlength{\parindent}{default}
Where default
is whatever the default indentation is for the document class I am using (part of the problem is that I don't know what this default value is). I feel as if there should be a better way to accomplish this than by the above method. I am looking for a solution of the form:
\noindent
This is my paragraph. Blah blah blah.
Is there a way to do this, or will I have to resort to the former method? If I have to resort to the former method, what is the default indentation value for the amsart
document class?
Best Answer
As the example below illustrates,
\noindent
suppresses paragraph indentation when used at the beginning of a paragraph. If used in the middle of a paragraph, it is ignored and does not suppress the paragraph indentation.Also, you can always group things within a
{}
so that any settings within their are not in effect after the group. This saves you from having to store the old setting and restore it afterwards.Notes:
\indent
to produce a horizontal space equal to the width of the paragraph indentation.[showframe]
option was used with thegeometry
package to show the margins so that the indentation is clearly shown.Code: