Hi LyX gurus,I've been playing with LyX lately. It has much improved since the last time I looked at it, 6 years ago. It really looks as a nice alternative to writing painful plain LaTeX by hand.
I can't figure out if I missed some workaround in the documentation or if it is an "undocumented feature" (i.e. a bug). When I write using LyX 1.5.5 on OSX 10.15.3:
Some text followed by an itemized list:
* Some item.
* Another item.
Then some text that follows.
LyX generates the following LaTeX code:
Some text followed by an itemized list:
\begin{itemize}
\item Some item.
\item Another item.
\end{itemize}
Then some text that follows.
Why does LyX generate a blank line between "list:" and
"\begin{itemize}"? I have not been able to prevent LyX from doing so. To
get the itemized list to be considered as part of the preceding
paragraph, I only figured out the following ugly workarounds:
1. don't use LyX lists at all; instead, write all of
"\[begin|item|end]" commands as embedded TeX (ERT), or
2. use the verbatim package to add multi-line comments using ERT:
"... list:[[ \begin{comment}]]
* [[\end{comment} \begin{itemize} \item]] Some item.
* Another Item.
Then..."
Of course, neither is satisfactory. This is quite annoying, as lists are
rather common in my texts. Have I missed something? How hard would it be
for me to change whatever template LyX uses to generate the list header
(I know programming, but I am not a LyX/TeX/LaTeX expert)?
EtienneP.S. Note that LyX seems quite inconsistent in putting a blank line before the item list, but not after. As it is quite easy to add a blank line using ERT, maybe LyX shouldn't add a blank line by default?
-- Etienne M. Gagnon, Ph.D. SableCC: http://sablecc.org SableVM: http://sablevm.org
signature.asc
Description: OpenPGP digital signature
