Text Formatting ⇒ Disabling indentation in particular section
Disabling indentation in particular section
Default indentation is provided by indentfirst package.
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
Disabling indentation in particular section
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Disabling indentation in particular section
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10