>>From: "Reiner Emmerling" <[EMAIL PROTECTED]>
>>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>>Date: Tue, 21 Nov 2000 19:00:13 +0100
>>Subject: Chapter and Headers?
>>
>>Hi all,
>>i'm writing my thesis in book-class in lyx1.1.5fix2 and have two problems
>>regarding headers and titles of chapters.
>>First one is, that i get for a pre-chapter (chapter*-Format), which is located
>>between the table of figures and the real first chapter "introduction", a
>>header "table of figures" instead of the true header "title of pre-chapter".
>>How can i change the header for the prechapter?
Valid for all starred-like units (Intro, Credits, References,...):
force the running headers locally, e.g. for introduction of chapter style
\markboth{Introduction}{Introduction}
\thispagestyle{plain}
The second command avoids the running header on the top of the titlepage,
which is ugly.
You can make it a command to include the feedback in the TOC (here I
added a \textsc to make is smallcaps as elewher in my doc style):
\newcommand{\tocchap}[1]{\addcontentsline{toc}{chapter}{\protect\numberline
{}#1}\markboth{\textsc{#1}}{\textsc{#1}}\thispagestyle{plain}}
and why not, a command repaccing the starred version of the sectioning command:
\newcommand{\chapterstar}[1]{\chapter*{#1}\tocchap{#1}}
so all you've got to do in ERT is to type in
\chapterstar{Introduction}
If you hate ERT, one more step to make it part of the layout: insert
Style Chapterstar
Copystyle Chapter
LatexName chapterstar
LabelType Top_Environment
LabelString "Unnumbered chapter"
LabelFont
Series Bold
Size LARGE
EndFont
End
in the layout of your doc style, and you will get after Reconfigure
a nice Chpaterstar tag in the sectioning scrolling list.
It is thus logical to include the command above in the class file instaed of
the preamble.
For environments like bibliography, you have to redefine the
environment:
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname
\addcontentsline{toc}{chapter}{\protect\numberline{}\bibname}%
\@mkboth{\textsc{\bibname}}{\textsc{\bibname}}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
>>Second problem i have is regarding the numbering of the BibTeX generated
>>references. I inserted the table of references with the lyx-feature
>>'Insert->List&TOC->BibTeX Reference', but the automatically inserted reference
>>chapter with the title "References" had no chapter number. How can i add the
>>chapter number to the reference chapter?
Reference chapter is usually unnumbered, bu you just have to unstar chapter in
the above environment, I guess.
--
Jean-Pierre