Romuald POTEAU wrote:
>
> Dear Lyx users,
> I am writing a document for students, using the book textclass. A
> chapter is systematically composed of various sections with definitions,
> theorems, lemma... the last section of each chapter contains exercises
> in order to check the new knowledge met in the previous sections.
> For example, in chapter 6, the section 6.10 is named "problems", and
> each exercise is defined as a subsection (6.10.1, 6.10.2,...):
> 6.10 Problems
> 6.10.1. Theme of exercise 1
> 6.10.2. Theme of exercise 2
> .....
>
> Is there a way to automatically modify the heading and the numbetring of
> the subsection in order to get :
> 6.10 Problems
> Exercise 6.1. Theme of exercise 1
> Exercise 6.2. Theme of exercise 2
i hope, i understand well, that you need the subsections only
for your exercises:
write in latex preamble:
\renewcommand\thesubsection{\thechapter.\arabic{subsection}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\bfseries Exercise }}
lyx always shows the old numbering of the subsections. if you
find this layout useful, than a modification of the lyx-layout
makes sense. than you have more than wysiwym ... ;-)
Herbert
--
[EMAIL PROTECTED]
http://perce.de/lyx/