On 04.10.2016 20:02, Richard Heck wrote:
On 10/04/2016 12:40 PM, racoon wrote:
Where the label is just inserted in an extra default paragraph. Apart
from looking a bit odd, it seems to work and not to create extra
spacing or so. So is this the "saver" way to insert section labels in
LyX?

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.

I just noticed that LyX in a sense supports neither my (in an extra line) nor your (at the beginning of the text). This is because LyX does not add the "sec:" to the label and also automatically inserts the beginning of the text rather than the heading.

Maybe LyX could check whether the label is referring to the section or not. Or more easily to implement, I guess, check whether the label is inserted at the beginning of a default paragraph right after the \subsection. This would make both of our suggestions supported.

Daniel

Reply via email to