4

In standard LaTeX, one can have paragraphs inside lists. For example

\begin{enumerate}
    \item Some text here.

        Second paragraph in this list item

    \item Second list item.
\end{enumerate}

produces

Text

Is it possible to achieve the same thing when using LyX? Pressing Enter while writing a list produces a new item of the list. How can I produce a new paragraph under the same item?

3
  • If you do "ctrl + <return>", does that do what you want?
    – scottkosty
    Commented Oct 11, 2022 at 11:43
  • 1
    @scottkosty Not really. It introduces a new line (\\ in the latex export), so the spacing is too small. Doing it twice results in an empty line, which is too much spacing. Commented Oct 11, 2022 at 12:05
  • Ah indeed. You need to nest Standard inside the inset. I wrote an answer with the steps.
    – scottkosty
    Commented Oct 11, 2022 at 12:15

2 Answers 2

5

You need to "nest" a "Standard" paragraph inside the item. Here are the steps:

  1. Start an itemize.
  2. Write "Some text here.".
  3. Press Return. (This will create a new item, but the next two steps will adjust it)
  4. Change the layout to "Standard".
  5. Press Tab. (This will nest it under the previous layout).
  6. Press Return.
  7. Write "Second list item."
1
  • Perfect solution. Note the Tab action may be disabled if a "display" mode math formula has been separated from the preceding line by a line return. Removing the line return will re-enable the command. Screenshot. I don't understand the reason, but it works.
    – mins
    Commented Apr 8, 2023 at 20:33
3

One way to do this is to insert the TeX command \par in LyX, and continue writing on the same line. This is not "native LyX" though...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .