a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
The sequence is the TOC followed by a tex code box containing: \mainmatter \pagenumbering{roman} Then a few short chapter*(s) That are not part of the numbered chapters. And it is not desired for them to be labeled as "contents" in the output (pdf) Then there is another tex code box containing: \pagenumbering{arabic} And finally Chapter 1... How can I stop "output" from inserting the word "contents" into the the page header of the "chapter*{s} without relocating them to before the TOC, nor after chapter 1??? If it matters: I use whichever version of lyx is available from the repository of whichever linux system I'm currently using. At the moment that includes: lyx 1.6.2 on Kubuntu 9.4 (Jaunty) lyx 1.6.3 on Sabayon Linux 4.2 lyx 1.5.5 on elive 1.9.51 (lenny)
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
> The sequence is the TOC followed by a > tex code box containing: > \mainmatter > \pagenumbering{roman} > > Then a few short chapter*(s) That are not part of the > numbered chapters. > And it is not desired for them to be labeled as "contents" > in the output > [...] > > How can I stop "output" from inserting the word "contents" > into the > the page header of the "chapter*{s} without relocating them > to > before the TOC, nor after chapter 1??? Yes, is a bug. It would be necessary to inform it, but I do not know where that becomes. I put the TOC at the end of the book and I do not have that problem ;-) When I put it at the beginning of the book, I solved it using titlesec and redefining header. Regards Marcelo Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
> The sequence is the TOC followed by a > tex code box containing: > \mainmatter > \pagenumbering{roman} > > Then a few short chapter*(s) That are not part of the > numbered chapters. > And it is not desired for them to be labeled as "contents" > in the output > And finally Chapter 1... > > How can I stop "output" from inserting the word "contents" > into the > the page header of the "chapter*{s} without relocating them > to before the TOC, nor after chapter 1??? I believe that the unique form to avoid the bug is to redefine the header of the page by means of an ERT after the TOC. Marcelo Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
It would appear that on Feb 18, Marcelo Acuña did say: > I believe that the unique form to avoid the bug is to redefine the > header of the page by means of an ERT after the TOC. Sounds likely. Now all I gotta do is find my notes on custom headers... Not today though. My brain is kaput... Thanks! -- | ~^~ ~^~ | <*> <*> Joe (theWordy) Philbrook | ^ J(tWdy)P | \___/ <>
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
Joe(theWordy)Philbrook wrote: The sequence is the TOC followed by a tex code box containing: \mainmatter \pagenumbering{roman} Then a few short chapter*(s) That are not part of the numbered chapters. And it is not desired for them to be labeled as "contents" in the output (pdf) Then there is another tex code box containing: \pagenumbering{arabic} And finally Chapter 1... How can I stop "output" from inserting the word "contents" into the the page header of the "chapter*{s} without relocating them to before the TOC, nor after chapter 1??? This works for document class "book": Immediately after the TOC (before your chapter*), an ERT box with \pagestyle{plain} This gets rid of the running header you didn't want. You will still get "contents" on TOC pages, if your TOC spans more than one page. The first normal text in the first chapter should start with an ERT box with: \pagestyle{headings} in order to reinstate the running headers that you probably want for your numbered chapters. The page styles: empty - nothing, not even a page number plain - a page number, nothing more headings - page number and running header (with the chapter name, usually) myheadings- user defined by using more ERT (\markright or \markboth whenever you want the running headers to change) fancy - Even more user defined. Maybe you want a logo in the heading, a colored page number, anything goes but more ERT is needed. Note that the \pagestyle command is only necessary if you want running headers in the normal chapters but not elsewhere. If you don't want any running headers at all, just turn them off in document settings, page style set to "plain". No need for ERT then. To style a single page differently: \thispagestyle{plain} in an ERT box anywhere on that page. Helge Hafting
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
It would appear that on Feb 23, Helge Hafting did say: > This works for document class "book": > > Immediately after the TOC (before your chapter*), an ERT box with > \pagestyle{plain} > This gets rid of the running header you didn't want. You will still > get "contents" on TOC pages, if your TOC spans more than one page. > > The first normal text in the first chapter should start with an ERT box with: > \pagestyle{headings} > in order to reinstate the running headers that you probably want for your > numbered chapters. -snipped. . . .. . . .. .stuff Thanks Helge, that was even better than my old notes. I'm betting that most of the details I'd need if'n I chose to get "fancy" with those headings could be found by googleing (or since I don't like google tracking me scroogleing) some of the keywords in your reply. That would likely lead to LaTeX solutions which for me would simply be wrapped in ERT boxes... But as it is, You already gave me the exact solution I wanted for the current project. Thanks! -- | ~^~ ~^~ | <*> <*> Joe (theWordy) Philbrook | ^ J(tWdy)P | \___/ <>
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
It would appear that on Feb 23, Helge Hafting did say: > Joe(theWordy)Philbrook wrote: > > The sequence is the TOC followed by a tex code box containing: > > \mainmatter > > \pagenumbering{roman} > > > > Then a few short chapter*(s) That are not part of the numbered chapters. > > And it is not desired for them to be labeled as "contents" in the output > > (pdf) > > > > Then there is another tex code box containing: > > \pagenumbering{arabic} > > > > And finally Chapter 1... > > > > How can I stop "output" from inserting the word "contents" into the > > the page header of the "chapter*{s} without relocating them to > > before the TOC, nor after chapter 1??? > > This works for document class "book": > > Immediately after the TOC (before your chapter*), an ERT box with > \pagestyle{plain} > This gets rid of the running header you didn't want. You will still > get "contents" on TOC pages, if your TOC spans more than one page. > > The first normal text in the first chapter should start with an ERT box with: > \pagestyle{headings} > in order to reinstate the running headers that you probably want for your > numbered chapters. > > The page styles: > empty - nothing, not even a page number > plain - a page number, nothing more > headings - page number and running header (with the chapter name, > usually) > myheadings- user defined by using more ERT (\markright or \markboth > whenever you want the running headers to change) > fancy - Even more user defined. Maybe you want a logo in the > heading, a colored page number, anything goes but > more ERT is needed. > > Note that the \pagestyle command is only necessary if you want running > headers in the normal chapters but not elsewhere. If you don't want > any running headers at all, just turn them off in document settings, > page style set to "plain". No need for ERT then. > > To style a single page differently: \thispagestyle{plain} in an ERT box > anywhere on that page. Like I said previously Helge, the insertion of "\pagestyle{plain}" & "\pagestyle{headings}" in the places you described worked for what I wanted for the current project. But I spent some time trying to figure out how to use \pagestyle{myheadings} with somewhat less success. I found that By using \pagestyle{myheadings} instead of \pagestyle{plain} I could then get "SOME" control over the headers of my "chapter*" with \markboth{header text}{other header text} One problem was that it wouldn't print on the 1st page of a chapter* But that was only a minor aggravation. The real problem was that the "\pagestyle{headings}" I'd inserted just before the first normal text of the first normal chapter, no longer caused it to resume the default headers that I'd normally get for the chapters. But kept on using the page header(s) I'd set with "\markboth{header text}{other header text}" What would I have to do to get the normal headers to resume after setting up a chapter* to use "\pagestyle{myheadings}" ??? And if you could be so kind as to point me at a good {example rich} how-to that covers doing something similar to a "document class book" with \pagestyle{fancy} I'd be grateful. Cause I failed to get that working at all... Sorry to be such a pest. -- | ~^~ ~^~ |Joe (theWordy) Philbrook | ^J(tWdy)P |\___/ <>