General ⇒ How to prevent indention after equations or floats?
How to prevent indention after equations or floats?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to prevent indention after equations or floats?
Andy22 wrote: Is there an easy way to suppress the indention of the text right after an equation- or float environment (but only there)?
Just insert the \noindent command right before the beginning of the text.
Code: Select all
\begin{equation}\label{eqn:equation}
E=mc^2
\end{equation}
\noindent
And here the text continues …
Code: Select all
\setlength{\parindent}{0pt}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to prevent indention after equations or floats?
But I'm looking for a way to prevent the indention globally but only after equations and floats.
At this time I use the "search and replace" feature of the editor to search for "\end{equation}" and replace it with "\end{equation} \noindent".
But this only works in a satisfactory way on the final version of a document.
-
- Posts: 4
- Joined: Tue Aug 28, 2007 4:11 pm
Re: How to prevent indention after equations or floats?
\end{equation}
text follows here
instead of
\end{equation}
text follows here.
You will still get vertical space in between math and text in the compiled document, but no indentation of the following line.
Re: How to prevent indention after equations or floats?
Re: How to prevent indention after equations or floats?
I have a similar question, except I want indention to be prevented even if the float is not located within the text ([!h] or [H] option), but its position is left to latex.
Any idea?