Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a large equation in nested itemize-environments, which creates a lot of indention for the equation, such the equation is only placed on the right side of the page. It would look nicer if the equation was centered w.r.t. to the text area and disregard the base indention from the itemize-environments. Is it possible to somehow disable the indention for one equation?

MWE:

\documentclass{memoir}
\begin{document}
\begin{itemize}
  \item Item 1
    \begin{itemize}
      \item Item 1.1
        \begin{itemize}
          \item Item 1.1.1
            Text which should be indented
            % this equation should be positioned just as if it was not contained in any itemize-environment
            \[ 
              1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
            \]
            Text which should be indented
        \end{itemize}
    \end{itemize}
\end{itemize}
\end{document}
share|improve this question

3 Answers 3

up vote 5 down vote accepted
\documentclass{memoir}

\begin{document}
\begin{itemize}
  \item Item 1
    \begin{itemize}
      \item Item 1.1
        \begin{itemize}
          \item Item 1.1.1
            Text which should be indented
            % this equation should be positioned just as if it was not contained in any itemize-environment
            \[
\displayindent0pt
\displaywidth\textwidth
              1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
            \]
            Text which should be indented
        \end{itemize}
    \end{itemize}
\end{itemize}
\end{document}
share|improve this answer
\documentclass{memoir}
\begin{document}
\begin{itemize}
  \item Item 1
    \begin{itemize}
      \item Item 1.1
        \begin{itemize}
          \item Item 1.1.1
            Text which should be indented\par
            % this equation should be positioned just as if it was not contained in any itemize-environment
            \hspace*{\dimexpr-\leftmargini-\leftmarginii-\leftmarginiii}\parbox{\linewidth}{%
            \[ 
              1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
            \]}\par
            Text which should be indented
        \end{itemize}
    \end{itemize}
\end{itemize}

  \[ 
     1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
  \]
\end{document}

enter image description here

share|improve this answer

The cumulative list indentations are given by \leftmargini+\leftmarginii+\leftmarginiii - one for each of the lists:

enter image description here

\documentclass{memoir}
\usepackage{showframe}
\begin{document}
\begin{itemize}
  \item Item 1
    \begin{itemize}
      \item Item 1.1
        \begin{itemize}
          \item Item 1.1.1
            Text which should be indented
            % this equation should be positioned just as if it was not contained in any itemize-environment
            \[ 
              \hspace*{\dimexpr-\leftmargini-\leftmarginii-\leftmarginiii}
              1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
            \]
            Text which should be indented
        \end{itemize}
    \end{itemize}
\end{itemize}
\end{document}
share|improve this answer
    
This technique seems to also work for align*, which I didn't ask for but also need. –  user51122 Jun 18 at 14:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.