On Wed, Aug 01, 2001 at 02:45:13PM +0300, Tuukka Toivonen wrote:
> On Wed, 1 Aug 2001, Dekel Tsur wrote:
> 
> > Another solution for uppercase sections is the following:
> > 
> > \let\oldsection\section
> > \renewcommand{\section}[1]{\oldsection{\uppercase{#1}}}
> 
> Thank you, it almost works. However, it corrupts "section*" style.
> When I previously had "abstract" in "section*" style, after this I get
>       1. *
>       Abstract
> And the same for TOC.

I'm assuming you don't use the optional argument to \section ((((((which
isn\t supported by lyx).

let\oldsection\section
\newcommand{\mysection}[1]{\oldsection{\uppercase{#1}}}
\def\section{\@ifstar{\oldsection}{\mysection}}}

If you put the above code in the body of the document, you need to put 
\makeatletter before the last line, and \makeatother after it.

Reply via email to