Hi,
I have a nested itemized list that looks like this (I'm using numbers
instead of the actual text):
\begin{itemize}
\item 1
\begin{itemize}
\item 1.1
\item 1.2
\end{itemize}
\item 2
\begin{itemize}
\item 2.1
\item 2.2
\end{itemize}
\end{itemize}
I decided to replace the first itemized list with lyxlists and it worked
fine when done using the button in the toolbar, but I need to change the
value of the labelwidth, so I used copy/paste to copy the latex source of
the lyxlist generated by LyX into a block of TeX code.
It worked fine the first time, so I moved on and replaced the next nested
itemized list and got these errors:
"Environment lyxlist undefined"
"\begin{itemize} on input line XXX ended by \end{lyxlist}"
I checked the latex source code, but couldn't spot any errors:
\begin{itemize}
\item 1
\begin{lyxlist}{labelwidth}
\item [{1.1}]
\item [{1.2}]
\end{lyxlist}
\item 2
\begin{itemize}
\item 2.1
\item 2.2
\end{itemize}
\end{itemize}
So I reverted my changes to find out what was wrong and noticed that it
only works when the lyxlist is followed by an empty line, which is
automatically removed when the cursor is moved to another line.
Here's what it looks like with the empty line:
\begin{itemize}
\item 1
\begin{lyxlist}{labelwidth}
\item [{1.1}]
\item [{1.2}]
\end{lyxlist}
\begin{lyxlist}{00.00.0000}
\item
\end{lyxlist}
\item 2
\begin{itemize}
\item 2.1
\item 2.2
\end{itemize}
\end{itemize}
Thanks in advance.
Fabio.