I want to create a list with the label LN
, e.g. L1
, L2
, L3
...
Sublists should have then the label L1a
, L1b
, L1c
(for the first item in the list).
I tried the following:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\textbf{L\arabic*}]
\item Foo
\begin{enumerate}
\item Bar
\item FooBar
\item BarFoo \ref{l}
\end{enumerate}
\item \label{l} FooBarBarFoo
\item raBooF \ref{l}
\end{enumerate}
\end{document}
This gives me almost the desired output but I get in the sublist the labels (a)
, (b)
, (c)
...
Looks like this:
However, how can I change the labels of the sublist to get L1a
, L1b
, L1c
?
\setlist[enumerate, 2]{label =\theenumi \alph*}
in the preamble.