Wednesday, March 18, 2015

HowTo : LaTeX - Create complex nested item list easily

Hi, ever wonder to create a complex nested item list such 1.1, 2.1, 3.1, 3.1.2, 3.2 and more with LaTeX syntax? Basicaly, i use /section for auto numbering the list but it does not auto indent my long nested list.

So, that bring problem to me. Now, i'm use package enumitem to solve the problem without using /section but using /item tags to solve the problem.

LaTeX source code:
\usepackage{enumitem} % <-- import this package
    \item My favourite food
    \begin{enumerate}[label*=\arabic*.] % <-- Keyword
      \item Pizza
        \item Pizza Hut
          \item Ocean Tuna
          \item chicken BBQ
        \item Domino
      \item Curry
        \item Spicy chicken curry
        \item Traditional curry 
      \item Maggi

PDF built result :


No comments:

Post a Comment