Tuukka Toivonen wrote:
>
> On Mon, 30 Jul 2001, Herbert Voss wrote:
>
> > Tuukka Toivonen wrote:
> > >
> > > > \uppercase{ blah } in tex red or define your oen uppercase-button
> > > > in lyx menu
> > >
> > > Thanks. Works, but not for a style such as sections, where I try to do
> > > \sectionfont{ \centering \large \bf \pagebreak \uppercase }
> >
> > \let\mySection\section
> > \renewcommand\section[1]{%
> > \mySection{\uppercase{#1}}%
> > }
>
> Seems to cause trouble with Table of Contents. It says:
> Something is wrong--maybe a missing \item
> ...{section}{\numberline {1} \uppercase{*}}{1}
than write this in preamble
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries\uppercase}%
}
>
> By the way, why your lines have all "%" at end? When I copy from Pine
> terminal window and paste to LyX, the lines are concatenated and the
> result is funny:
> \let\mySection\section \renewcommand\section[1]{% \mySection{\uppercase{#1}}% }
I know, but it's better to write it in more than one line,
especially when searching for errors. on the other hand
latex sometimes don't allow a linebreak in the commands
and the % ignores following chars and the linebreak
Herbert
--
http://www.educat.hu-berlin.de/~voss/lyx/