I need to disable indentation in only one section of my document (subsection, to be specific). How can I do that?
Default indentation is provided by indentfirst package.
Text Formatting ⇒ Disabling indentation in particular section
Disabling indentation in particular section
Last edited by radpl on Tue Nov 02, 2010 1:21 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Disabling indentation in particular section
If it's just the first paragraph of that one section you don't want indented, then just use \noindent at the beginning of the paragraph.
If you don't want any identation throughout the (sub)section, then you could try something like this:
If that doesn't do what you want, then I think a minimal working example is in order.
If you don't want any identation throughout the (sub)section, then you could try something like this:
Code: Select all
\documentclass{article}
\usepackage{indentfirst}
\usepackage{lipsum}% for generating filler text
\begin{document}
\section{A section}
\lipsum[1-5]
\section{Another section}
\lipsum[6-10]
\section{Unindented section}
\newlength{\oldparindent}%
\setlength{\oldparindent}{\parindent}% save old indentation amount
\setlength{\parindent}{0em}% zero out indentation
\lipsum[11-15]
\setlength{\parindent}{\oldparindent}% return to old indent amount
\section{A Final Section}
\lipsum[16-20]
\end{document}
Re: Disabling indentation in particular section
frabjous, your example perfectly works for me. Thank you very much!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Disabling indentation in particular section
Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10