TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

LyX is great. I use it to write everyday documents. But it seems that its environment can only have one type; different types of environments can't be mixed. For example, you can't have itemize inside a proof. If you try, either you lose the itemize, or the itemize part become outside of the proof. Can I have itemize inside proofs? You need this when making case distinctions.

share|improve this question
up vote 8 down vote accepted

Lyx can perfectly nest environments: All you need to do is to increase the nesting depth (EditIncrease List Depth):

LyX Screenshot

share|improve this answer

Have you tried the cases environment?



\begin{proof}Here is the proof and the cases environment:
|x| =
x, & \text{if $x\ge 0$,} \\
-x, & \text{if $x<0$.}

I know that in LyX you can use every package you want and add the code too, so the example should be ok. If I misunderstood what you need, please provide an example of what you want to achieve.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.