On 10/04/2016 06:40 PM, racoon wrote:
I used to insert section labels right after the heading:
1. Some heading[sec:Some-heading]
This is actually how it is done in the User Guide as well. However,
this produces the following source:
\section{Some heading\label{sec:Some-heading}}
But it actually leads to problems when I tried to have uppercase
section headings with:
\usepackage{sectsty}
\sectionfont{\MakeUppercase}
I guess the error occurs for the same reason as
\MakeUppercase{\label{sec:Some-heading}} generates an error.
So I looked around and saw that often the label is inserted *after*
the section:
\section{Some heading}\label{sec:Some-heading}
But I am not sure how to achieve this with LyX. So instead I did this:
1. Some heading
[sec:Some-heading]
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?
Daniel
Hi Daniel,
I am not quite sure what you mean.
But this is how I insert a section:
I type : 'New Section' as a name
With the cursor somewhere inside/before/behind that name I select: 'Section'
And I get: '3.8 Section Extra' in the appropriate format
Selecting 'Section*' would do the same without numbering
Michael