Fwd: No first line in double enumeration

Richard Kimberly Heck rikiheck at lyx.org
Thu Nov 26 16:37:08 UTC 2020


On 11/26/20 10:22 AM, Hal Kierstead wrote:
>
>
>>
>>
>> On 2020-11-25 21:22 , Hal Kierstead wrote:
>>>> All -
>>>>
>>>> Is there a way to enter the following code in LyX without ERT:
>>>>
>>>> \begin{enumerate}
>>>> \item 
>>>> \begin{enumerate}
>>>> \item a
>>>> \item b
>>>> \end{enumerate}
>>>> \item 2
>>>> \end{enumerate}
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Hal
>>>>
>>>
>>> Begin forwarded message:
>>>
>>> *From: *Dr Eberhard W Lisse <nospam at lisse.NA <mailto:nospam at lisse.NA>>
>>> *Subject: **Re: No first line in double enumeration*
>>> *Date: *November 26, 2020 at 4:51:43 AM MST
>>> *To: *lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>
>>>
>>> RTFM,
>>>
>>> the TAB button is your friend.
>>>
>>>
>>> el
>
>> To add a bit more: This is what "Increase List Depth" does. Find it on
>> the edit menu.
>
>> Riki-- 
>> lyx-users mailing list
>> lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>
> Thanks for the suggestions, but unfortunately they do not address my
> issue. I want the secondary enumeration to start on the first line of
> the primary enumeration. It works in LaTex.
>
> I tried the tab button first. The problem is that LyX does not like
> empty lines. I can use a hard space for the first item, but then I get
> an empty line of output that I do not want. If I erase the hard space
> in LyX and then preview, I get what I want, but as soon as I move the
> cursor to I new paragraph, LyX replaces the empty line with \item a .

OK, I see the problem. Two solutions:

 1. The simplest is to add an empty ERT box to the first item. This will
    prevent LyX from collapsing the empty element and adds nothing to
    the output.
 2. Local Layout:

        Format 66
        Style Enumerate
        KeepEmpty 1
        End

The "KeepEmpty" layout tag instructs LyX not to delete empty lines.

Riki


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201126/3131596a/attachment-0001.html>


More information about the lyx-users mailing list