This is how you type set a nested list in LaTeX:

    \item I have a house
        \item It has 4 walls
        \item a roof,
        \item two windows,
        \item and a door
            \item with a handle
            \item and a lock
    \item I also have a car
        \item but I will not talk of it further

This is the same list in Markdown:

 - I have a house
    - It has 4 walls,
    - a roof,
    - two windows
    - and a door
         - with a handle
         - and a lock
 - I also have a car
    - But I will not talk of it further

The Latex one is really verbose. I am finding it particularly annoying when writing slides with Beamer. Nesting 3 deep is rarely a good idea, but having a list that contains a few subitems for every item is not bad at all, but will still be uncomfortable verbose.

Is there a package that provides a alternative syntax for writing lists?

Using a few defs can help maybe, but seems hacky

\newcommand{\ol}{\begin{itemize} }
\newcommand{\ole}{\end{itemize} }
\newcommand{\li}{\item }

Parsing markdown lists syntax seems like it could be done with Lua, or maybe even with xargs, but I am not so great at this kinda thing (yet).

  • 3
    May be seeing indentation is a bit difficult, but you could, for instance, in a relatively simple way see - for \item and -- for \iitem where both are a little inteligent and start a new \begin{itemize} or end a \end{itemize} when necessary. – Manuel Sep 3 '14 at 17:41
  • Have you seen tex.stackexchange.com/q/101717/17423? – Sean Allred Sep 3 '14 at 17:42
  • Isn't it rather a problem of configuring your editor? – Bernard Sep 3 '14 at 17:54
  • @Bernard: no because the verbosity is not a just a typing problem (though it is that -- a missed end is annoying to find), it is also a reading problem – Lyndon White Sep 4 '14 at 0:11

Have a look for example at the easylistpackage. It simplifies the process by defining one active character whose number of occurences defines the level of this specific list item.


§ First level
§§ Second level
§§§ Third level
§§§ Again third level
§§§§ Now fourth level
§ First level again

easylist example


enter image description here





Simple ways to make lists less verbosely in \LaTeX:

  \li{Redefine the markup commands to match HTML.}
       \li{This means turning the list environments into commands.}
       \li{This is actually less verbose than real HTML.}
       \li{You do have to keep track of the end braces and (I think) comment out the newlines.}
   \li{Define commands to insert horizontal space and bullets manually, as shown below.}

\info{0} This is level 0.
    \info{1} This is level 1.
        \info{2} And this level 2.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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