I have the following in my preamble:
% Set toplevel section style
\renewcommand\section{
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\centering\large\bfseries\uppercase}%
}
to change the section style. I got the snipped once from this list.
However, now I noticed that cross-references to sections don't
work, they show up as question marks. subsections are fine, though.
Any cure?
(I attached example file. Should I compress attachments with
gzip/bzip2, or send them at all unless requested?)
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
% Set toplevel section style
\renewcommand\section{
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\centering\large\bfseries\uppercase}%
}
\end_preamble
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Section
section one
\begin_inset LatexCommand \label{one}
\end_inset
\layout Standard
Section one reference:
\begin_inset LatexCommand \ref{one}
\end_inset
, and then subsection one reference:
\begin_inset LatexCommand \ref{subone}
\end_inset
.
The first one doesn't work!
\layout Subsection
subsection one
\begin_inset LatexCommand \label{subone}
\end_inset
\layout Standard
blabalaaablabalaaa
\the_end