2

Is there an alternative to the enumerate environment in LaTeX where I can define a nested list with a minimal syntax like that of Markdown or something similar, e.g.:

\begin{minimallist}
- Fruit
     - Apple
     - Orange
-Vegetable
     - Carrot
     - Tomato
\end{minimallist}

Instead of:

\begin{enumerate}
\item Fruit
    \begin{enumerate}
    \item Apple
    \item Orange
    \end{enumerate}
\item Vegetable
    \begin{enumerate}
    \item Carrot
    \item Tomato
    \end{enumerate}
\end{enumerate}

I don't mind the wordiness of the latter when I'm writing, but it's noticeably less readable for large nested lists, at least for me.

Alan Turing
  • 389
  • 4
  • 10

1 Answers1

1

Is this along the lines of what you're looking for?

\documentclass{article}
\usepackage{enumitem}
\newcommand{\bmyl}{\begin{enumerate}}
\newcommand{\cit}{\item}
\newcommand{\emyl}{\end{enumerate}}
\pagestyle{empty}
\begin{document}

\bmyl
\cit Fruit
    \bmyl
    \cit Apple
    \cit Orange
    \emyl
\cit Vegetable
    \bmyl
    \cit Carrot
    \cit Tomato
    \emyl
\emyl

\end{document}
A.Ellett
  • 50,533
  • This is not what I was after. The duplicate answer link answers it beautifully, but this answer is valuable as well especially in other contexts. – Alan Turing Mar 02 '13 at 15:48