Text Formatting(package) enumerate

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
svdape
Posts: 2
Joined: Fri Aug 21, 2009 3:03 pm

(package) enumerate

Post by svdape »

Can somebody explain this code

Code: Select all

  \begin{enumerate}[{\bf Problem} 1\quad]
     \item bla bla
      \begin{enumerate}
        \item 
        \item 
      \end{enumerate}
    \item
      \begin{minipage}[t]{1.0\linewidth}
         bla bla bla
        \begin{enumerate}
          \item
          \item
        \end{enumerate}
      \end{minipage}
    \item
      \parbox[t]{1.0\linewidth}
      {
        bla bla bla bla
        \begin{enumerate}
          \item 
          \item 
        \end{enumerate}
      }
  \end{enumerate}
The first item is normal. In the second the item text is put into a minipage and the second level items are indented. If minipage is replaced by a parbox, it is put correct again.

Thanks,

Recommended reading 2024:

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

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

svdape
Posts: 2
Joined: Fri Aug 21, 2009 3:03 pm

(package) enumerate

Post by svdape »

I'm new in this forum and now I have found out that can illustrate my problem.

So once more: The complete code is

Code: Select all

\documentclass{report}

\usepackage[english]{babel}
\usepackage{enumerate}

\begin{document}
  \begin{enumerate}[{\bf Problem} 1\quad]
    \item bla bla
      \begin{enumerate}
        \item
        \item 
      \end{enumerate}
    \item
      \begin{minipage}[t]{1.0\linewidth}
         bla bla bla
        \begin{enumerate}
          \item
          \item
        \end{enumerate}
      \end{minipage}
    \item
      \parbox[t]{1.0\linewidth}
      {
        bla bla bla bla
        \begin{enumerate}
          \item 
          \item 
        \end{enumerate}
      }
  \end{enumerate}
\end{document}
and the output can be seen from the attachment "enum.pdf". Why is the second level enumeration items indented when using minipage?

Thanks,
Attachments
enum.pdf
(9.22 KiB) Downloaded 257 times
Post Reply