Allow enumerate environment to be inserted inside an environment I define

ehud.behar at posteo.net ehud.behar at posteo.net
Wed Nov 5 13:17:04 UTC 2025


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?

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