0

Having this "simple" problem, but can't find any solution to it. Probably a duplicate, but didn't find it either.

Suppose I'm writing a list about numbers:

1. One is the first positive integer
2. Here are examples of things that come in pairs of two:
    - eyes
    - arms
    - legs
   btw, 2 is the first prime.
3. IDK what to say about three here. hello.

but this always refuses to render properly. In LyX the only manipulation I can achieve is:

  1. One is the first positive integer
  2. Here are examples of things that come in pairs of two:
    • eyes
    • arms
    • legs
  3. btw, 2 is the first prime.
  4. IDK what to say about three here. hello.

as in, it inserts an extra list entry where I wanted to go back to talking about 2. Funnily, on this website it renders like this:

  1. One is the first positive integer
  2. Here are examples of things that come in pairs of two:
    • eyes
    • arms
    • legs btw, two is the first prime.
  3. IDK what to say about three here. hello.

which is somehow even worse, and also the reason I had to use a block comment there.

Unsurprisingly, this is not much different when using numbered/bullet lists. The only solution I found was with the enumItem package and it wasn't clean at all:

Surround the whole list in another context, stylised so it appears the same as text inside the list. Get to the point where you want to exit into the previous nest level, and exit to the outside context instead. Type whatever goes after the inner list, then start a new enumeration that resumes the previous one. I want to believe this is the wrong way, but I didn't find a single example of the "right" way anywhere online.

4

0

Browse other questions tagged .