Thanks Richard!

On 04.10.2016 20:02, Richard Heck wrote:
Yes, it can cause other problems too. The root cause is that \section is
a "moving argument". You really don't want to put anything else in
there. Though I'll confess I sometimes do.

Maybe worth changing that in the documentation files then.

You can also just put the label at the beginning of the text. If there's
no such text (if the first thing is a \subsection), then you can put it
on a blank line by itself. LaTeX will ignore the otherwise empty line.

Yes that seems a bit nicer.

Maybe LyX could automatically put labels after the \section{} when it is put in the same line. But I don't know whether this would have other undesired consequences.

Daniel

Reply via email to