Herbert,

let me thank you first of all for your fast response that answered my
questions right down to the point.


> 
> it's better to use the environment
> \begin{appendix}
> ... bla bla bla ...
> \end{appendix}
> 
> than you can put other lists behind the appendix, like the
> index.


That's a useful hint. Thanks !


> \renewcommand*\appendix{\par\global\@altsecnumformattrue
>   \setcounter{chapter}{0}%
>   \setcounter{section}{0}%
>   \renewcommand*\@chapapp{\appendixname}%
>   \renewcommand*\thechapter{\appendixname\  \@Alph\c@chapter}}

This works brillantly. Unfortunately, I have a lot of equations and some
figures in the appendix. The effect of the above lines on these items
is, that they are now all labeled like: (Anhang A.1), and similarly for
figures:  Abbildung Anhang A.1, which looks a bit awkward.

It might be easier now to just have a general heading `Anhang' (or
`Anhaenge') for the appendix which also shows up in the TOC. After that
heading, the titles of the appendices could then just be given as:

A. title
.
.
B. title 
.
and so on.

(BTW, is \appendixname in the above code the variable or function that
contains `Anhang' for german language ?)

I realize that my problem seems to be more of a general LaTeX nature (or
Koma-Script nature) than actually a problem with LyX.

Sorry for the bandwidth used here !

> before the line \begin{appendix} write in your text as tex
> (red)
> 
> \addcontentsline{toc}{part}{Anhang}
> 
> for a right table of contents you need some additional
> horizontal space
> in fact
> of Anhang A ..., so put in latex preamble:
> 
> \newcommand*\l@chapter[2]{%
>   \ifnum \c@tocdepth >\m@ne
>    \addpenalty{-\@highpenalty}%
>    \vskip 1.0em \@plus\p@
>    \setlength\@tempdima{6em}%     <-- the important line
>    \begingroup
>      \parindent \z@ \rightskip \@pnumwidth
>      \parfillskip -\@pnumwidth
>      \leavevmode \sectfont
>      \advance\leftskip\@tempdima
>      \hskip -\leftskip
>      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
>      \penalty\@highpenalty
>    \endgroup
>   \fi}
> 
> there might be an easier solution, but i do not know a lot
> of pure tex-code.

Well you seem to know a lot of pure LaTeX-code anyway. :-) 

I have not tried this recommendation of yours at the moment, but I will
soon.

>
> hope, this helps
> 
> Herbert
>


Thank you again for your help !


Marco

Reply via email to