Nevermind that, I just found out that I can change the label width of a
lyxlist using the paragaph settings.
I still don't know why I couldn't use lyxlist using a block of TeX code,
but this is no longer an issue for me.


Cheers,

Fabio.


On Fri, Jun 1, 2012 at 1:25 PM, Fabio Sobral <flsob...@gmail.com> wrote:

> 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.
>

Reply via email to