Re: Chapter and Headers?
Mohammad Reza Danesh wrote: I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} i suppose that there's a recursion, but anyway, try the following: \renewenvironment{thebibliography}[1] {\chapter{\bibname % \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname} }% \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth change only the above two lines. it works for me. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
Herbert Voss [EMAIL PROTECTED] writes: Mohammad Reza Danesh wrote: I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} i suppose that there's a recursion, but anyway, try the following: This is also my guess. [snip] Make sure you don't use 8bit characters (ÄäÖöÜüß) and the like in your labels! Andre
Re: Chapter and Headers?
Mohammad Reza Danesh wrote: I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} i suppose that there's a recursion, but anyway, try the following: \renewenvironment{thebibliography}[1] {\chapter{\bibname % \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname} }% \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth change only the above two lines. it works for me. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
Herbert Voss [EMAIL PROTECTED] writes: Mohammad Reza Danesh wrote: I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} i suppose that there's a recursion, but anyway, try the following: This is also my guess. [snip] Make sure you don't use 8bit characters (ÄäÖöÜüß) and the like in your labels! Andre
Re: Chapter and Headers?
Mohammad Reza Danesh wrote: > > I used the following preamble in my book class document to add the > bibliography section to my TOC, and LyX returned the following error: > > "Tex capacity exceeded, sorry [input stack size=300]. > \begin{thebibliography}{10} i suppose that there's a recursion, but anyway, try the following: > \renewenvironment{thebibliography}[1] > {\chapter{\bibname % \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname} }% > \list{\@biblabel{\@arabic\c@enumiv}}% >{\settowidth\labelwidth{\@biblabel{#1}}% > \leftmargin\labelwidth change only the above two lines. it works for me. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
Herbert Voss <[EMAIL PROTECTED]> writes: > Mohammad Reza Danesh wrote: > > > > I used the following preamble in my book class document to add the > > bibliography section to my TOC, and LyX returned the following error: > > > > "Tex capacity exceeded, sorry [input stack size=300]. > > \begin{thebibliography}{10} > > i suppose that there's a recursion, but anyway, try the following: This is also my guess. [snip] Make sure you don't use 8bit characters (ÄäÖöÜüß) and the like in your labels! Andre
Re: Chapter and Headers?
Reiner Emmerling wrote: 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? i don't know if i realy understand your problem? but if you want to change the "table of figure"-name do a \renewcommand\figurename{your title} Second problem i have is regarding the numbering of the BibTeX generated references. I inserted the table of references with the lyx-feature 'Insert-ListTOC-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? write in latex preamble for komascript book-class (you should prefer this class!) \renewcommand\bib@heading{\chapter{\bibname}} for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
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 SizeLARGE 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-ListTOC-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
RE: Chapter and Headers?
I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} if you really absolutely need more capacity, you can ask a wizard to enlarge me." Anyone know how to solve this problem? Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Herbert Voss Sent: Tuesday, November 21, 2000 2:20 PM Cc: [EMAIL PROTECTED] Subject: Re: Chapter and Headers? ... for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
Reiner Emmerling wrote: 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? i don't know if i realy understand your problem? but if you want to change the "table of figure"-name do a \renewcommand\figurename{your title} Second problem i have is regarding the numbering of the BibTeX generated references. I inserted the table of references with the lyx-feature 'Insert-ListTOC-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? write in latex preamble for komascript book-class (you should prefer this class!) \renewcommand\bib@heading{\chapter{\bibname}} for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
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 SizeLARGE 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-ListTOC-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
RE: Chapter and Headers?
I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} if you really absolutely need more capacity, you can ask a wizard to enlarge me." Anyone know how to solve this problem? Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Herbert Voss Sent: Tuesday, November 21, 2000 2:20 PM Cc: [EMAIL PROTECTED] Subject: Re: Chapter and Headers? ... for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
Reiner Emmerling wrote: > > 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? i don't know if i realy understand your problem? but if you want to change the "table of figure"-name do a \renewcommand\figurename{your title} > 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>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? write in latex preamble for komascript book-class (you should prefer this class!) \renewcommand\bib@heading{\chapter{\bibname}} for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Chapter and Headers?
>>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 SizeLARGE 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>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
RE: Chapter and Headers?
I used the following preamble in my book class document to add the bibliography section to my TOC, and LyX returned the following error: "Tex capacity exceeded, sorry [input stack size=300]. \begin{thebibliography}{10} if you really absolutely need more capacity, you can ask a wizard to enlarge me." Anyone know how to solve this problem? Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Herbert Voss Sent: Tuesday, November 21, 2000 2:20 PM Cc: [EMAIL PROTECTED] Subject: Re: Chapter and Headers? ... for standard book-class (only the second line is new! chapter without star) \renewenvironment{thebibliography}[1] {\chapter{\bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\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} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/