Allow enumerate environment to be inserted inside an environment I define

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Nov 5 14:19:34 UTC 2025


Le 05/11/2025 à 14:17, ehud.behar at posteo.net a écrit :
> Indeed.But I can't insert the enumerate environment without any 
> character typed before. At the moment I type an empty ERT and then the 
> insert content for the enumerate environment. Any solution for that?

A possibility could be to define boxed as a flex inset:

InsetLayout Flex:Boxed
...
End

JMarc

> 
> On 05.11.2025 02:36 AM, Richard Kimberly Heck wrote:
>> On 11/4/25 5:29 PM, ehud.behar at posteo.net wrote:
>>> I created this Boxed environment in my LyX document:
>>>
>>> ```
>>> Style Boxed
>>> LatexName Boxed
>>> LatexType Environment
>>> #KeepEmpty 0
>>> ParSep 1.4
>>> RightDelim <br/>
>>> ParbreakIsNewline 1
>>> PassThru 0
>>>
>>> Preamble
>>> %Define the Boxed environment
>>> EndPreamble
>>> End
>>> ```
>>>
>>> I now want to insert enumerated items within it, so to get the LaTeX 
>>> code
>>> ```
>>> \begin{Boxed}
>>> \begin{enumerate}
>>> \item my first item%
>>>
>>> \item the second item%
>>>
>>> \end{enumerate}
>>> \end{Boxed}
>>> ```
>>>
>>>  But LyX doesn't allow that. Any help?
>>
>> Increase depth: Create the enumerate, then do Edit> Increase List Depth.
>>
>> Riki
>>
>>
>>
>> -- 
>> ----------------------------
>> Richard Kimberly (Riki) Heck
>> Professor of Philosophy and Professor of Linguistics
>> Brown University
>>
>> Pronouns: they/them/their
>> Website:  http://rkheck.frege.org/



More information about the lyx-users mailing list