Math & Sciencenegative indentation on just one equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
CoolnessItself
Posts: 47
Joined: Wed Nov 11, 2009 9:30 pm

negative indentation on just one equation

Post by CoolnessItself »

Hi all,

I have an equation inside a nested itemize environment, like

Code: Select all

\begin{itemize}
\item blah
\begin{itemize}
\item blah
\begin{align*}
&y = f(x)
\end{align*}
\end{itemize}
\end{itemize}
However, I'd like the left of the equation to be flush with the left margin, not indented like the itemize. I tried hspace{-1cm}, which has no effect, and the option fleqn along with \setlength{\mathindent}{0pt} acts globally.

Is there a way to reduce the indentation of just one equation?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

negative indentation on just one equation

Post by Stefan Kottwitz »

Hi,

if you would like to turn that align* equation into a flushed left equation, which is aligned to the left of the outside text, but within the itemize environment, you could use flalign*

Code: Select all

\begin{itemize}
  \item text
  \begin{itemize}
    \item text
    \begin{flalign*}
      y = f(x)&&
    \end{flalign*}
  \end{itemize}
\end{itemize}
The && push the first part before to the left.

However, if you would like to make it flushed left to the left margin of the base body text, simply end the itemize environment(s), write the equation, and start again itemize if it should continue. This way is also consistent in its meaning.

Btw. here and in general it would be much better if you write a real formula and perhaps even some normal text, not just "bla". So we could better understand what's desired and what would be the best way. I guess align* or flalign* won't be the best match, actually.

Stefan
LaTeX.org admin
Post Reply