General ⇒ How to prevent indention after equations or floats?
How to prevent indention after equations or floats?
Is there an easy way to suppress the indention of the text right after an equation- or float environment (but only there)?
- localghost
- Site Moderator
- Posts: 9201
- 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}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: How to prevent indention after equations or floats?
Thanks.
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.
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?
YES...make sure you leave no vertical space in between the equation and the next line of text.
\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.
\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?
Thanks a lot. This works fine. Some solutions are so easy and obvious...
Re: How to prevent indention after equations or floats?
Hello,
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?
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?