Re: Fwd: No first line in double enumeration

2020-11-28 Thread Richard Kimberly Heck

On 11/28/20 12:32 PM, José Abílio Matos wrote:


On Thursday, November 26, 2020 4:37:08 PM WET Richard Kimberly Heck wrote:

> OK, I see the problem. Two solutions:

>

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


Why not to add a protected space? Ctrl+Space.


That produces

\begin{enumeration}
\item ~
\begin{enumeration}


whereas he wanted:

\begin{enumeration}
\item
\begin{enumeration}

Riki



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: No first line in double enumeration

2020-11-28 Thread José Abílio Matos
On Thursday, November 26, 2020 4:37:08 PM WET Richard Kimberly Heck wrote:
> OK, I see the problem. Two solutions:
> 
> 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.

Why not to add a protected space? Ctrl+Space.

It will avoid for the first paragraph to collapse.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fwd: No first line in double enumeration

2020-11-26 Thread Hal Kierstead


> 
> 
> 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 
>> Subject: Re: No first line in double enumeration
>> Date: November 26, 2020 at 4:51:43 AM MST
>> To: lyx-users@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@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 .

Hal


> 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: No first line in double enumeration

2020-11-26 Thread Richard Kimberly Heck
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 mailto:nos...@lisse.na>>
>>> *Subject: **Re: No first line in double enumeration*
>>> *Date: *November 26, 2020 at 4:51:43 AM MST
>>> *To: *lyx-users@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@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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: No first line in double enumeration

2020-11-26 Thread Dr Eberhard W Lisse
That is a feature :-)-O

el
On 2020-11-26 17:22 , 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 mailto:nos...@lisse.na>>
>>> *Subject: **Re: No first line in double enumeration*
>>> *Date: *November 26, 2020 at 4:51:43 AM MST
>>> *To: *lyx-users@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@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 .
> 
> Hal
> 
> 
>>
> 


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users