4

I tried to create the following in LyX. But it does not give what I want.

1 (a) text
      OR
  (b) text

2 (a) (i) text (ii) text OR (b) text

LyX does allow only to produce as shown below

1 Text
  (a) text

enter image description here

The working code in LaTeX:

\documentclass[12pt]{article}
\begin{document}
\begin{enumerate}
\item 
\begin{enumerate}
\item Text
\end{enumerate}
\end{enumerate}
\end{document} 
user202729
  • 7,143
sandu
  • 7,950
  • Could you show a minimal (non)working example? – Bernard Jul 19 '14 at 10:18
  • @bernard I have added the image from LyX – sandu Jul 19 '14 at 12:26
  • I meant the LaTeX code (a minimal example). – Bernard Jul 19 '14 at 12:33
  • @Bernard I have added the working latex code. It does not come in LyX. – sandu Jul 19 '14 at 13:10
  • But the image does not correspond to you code: in your code there's no Text right after the first item. Another question isn't clear to me: what is the status of the OR conjunction in your specifications? I mean, e.g. should the first OR be at the first level enumeration or at the second level? – Bernard Jul 19 '14 at 13:27
  • LyX image is non-working image. I am unable to produce 1. (a) in lyx. This is my problem. – sandu Jul 19 '14 at 13:37
  • I have problem with LyX. It does not allow me to nest enumerate items. – sandu Jul 19 '14 at 13:46

2 Answers2

7

I think you need to trick LyX a bit to do this, as it doesn't appear to allow you to add a new list item if the previous one is empty. A workaround is to add an empty ERT box in the first list item, then outside the ERT hit enter followed by tab to create the sublist.

Here is how it appears in LyX and PDF with the default document settings. Those empty boxes are ERTs added with Ctrl + L.

enter image description here

Torbjørn T.
  • 206,688
0

If you stumble across this thread and don't know how to make a nested enumerated list at all. You have to click on this symbol, which is about in the middle of Lyx's toolbar. enter image description here

Johannes
  • 199