This is how you type set a nested list in LaTeX:
\begin{itemize}
\item I have a house
\begin{itemize}
\item It has 4 walls
\item a roof,
\item two windows,
\item and a door
\begin{itemize}
\item with a handle
\item and a lock
\end{itemize}
\end{itemize}
\item I also have a car
\begin{itemize}
\item but I will not talk of it further
\end{itemize}
\end{itemize}
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).
-
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