Discussion:
Unwanted number in page header for Chapter*
Manveru
2011-09-21 16:17:19 UTC
Permalink
Hi,

Not directly LyX related, but maybe someone will be able to help me.

I am using Chapter* environment for my Prologue and Epilogue in mwbook
class document. However for these chapters I see Chapter 0. Prologue
and Chapter 8. Epilogue for chapters I do not want to number. Is there
any method to remove "Chapter X." part from page header for these two
chapters only?

My fancyheader settings from preamble:
\fancyhead[RO,LE]{\nouppercase{\leftmark}}
\fancyhead[LO,RE]{\nouppercase{\rightmark}}

Thank you for any advice.
--
Manveru
jabber: ***@manveru.pl
     gg: 1624001
   http://www.manveru.pl
Julien Rioux
2011-09-21 16:44:17 UTC
Permalink
Post by Manveru
Hi,
Not directly LyX related, but maybe someone will be able to help me.
I am using Chapter* environment for my Prologue and Epilogue in mwbook
class document. However for these chapters I see Chapter 0. Prologue
and Chapter 8. Epilogue for chapters I do not want to number. Is there
any method to remove "Chapter X." part from page header for these two
chapters only?
\fancyhead[RO,LE]{\nouppercase{\leftmark}}
\fancyhead[LO,RE]{\nouppercase{\rightmark}}
Thank you for any advice.
Assuming your class is derived from book, \markboth{}{} in LaTeX code
just after the Chapter* will clear the leftmark and rightmark.
--
Julien
Manveru
2011-09-21 19:24:45 UTC
Permalink
Post by Manveru
Hi,
Not directly LyX related, but maybe someone will be able to help me.
I am using Chapter* environment for my Prologue and Epilogue in mwbook
class document. However for these chapters I see Chapter 0. Prologue
and Chapter 8. Epilogue for chapters I do not want to number. Is there
any method to remove "Chapter X." part from page header for these two
chapters only?
\fancyhead[RO,LE]{\nouppercase{\leftmark}}
\fancyhead[LO,RE]{\nouppercase{\rightmark}}
Thank you for any advice.
Assuming your class is derived from book, \markboth{}{} in LaTeX code just
after the Chapter* will clear the leftmark and rightmark.
Great, that did what I want.

However I think that document class should support it by itself to
clean that up for Chapter*.

Thanks for hyou help!
--
Manveru
jabber: ***@manveru.pl
     gg: 1624001
   http://www.manveru.pl
Julien Rioux
2011-09-21 21:32:43 UTC
Permalink
Post by Manveru
Great, that did what I want.
However I think that document class should support it by itself to
clean that up for Chapter*.
True, I have no idea why the latex class doesn't fix that up for you.
Post by Manveru
Thanks for hyou help!
You're welcome!
--
Julien
Steve Litt
2011-09-22 16:40:21 UTC
Permalink
Post by Manveru
Post by Julien Rioux
Post by Manveru
Hi,
Not directly LyX related, but maybe someone will be able to help me.
I am using Chapter* environment for my Prologue and Epilogue in
mwbook class document. However for these chapters I see Chapter
0. Prologue and Chapter 8. Epilogue for chapters I do not want
to number. Is there any method to remove "Chapter X." part from
page header for these two chapters only?
\fancyhead[RO,LE]{\nouppercase{\leftmark}}
\fancyhead[LO,RE]{\nouppercase{\rightmark}}
Thank you for any advice.
Assuming your class is derived from book, \markboth{}{} in LaTeX
code just after the Chapter* will clear the leftmark and
rightmark.
Great, that did what I want.
However I think that document class should support it by itself to
clean that up for Chapter*.
Thanks for hyou help!
My experience is that in the long run, using any of the * environments
is walking the trail of tears. Given that I usually have these outside
the book's "official" chapters, I usually make my own environment,
without a counter and with big print, and use that. I insert my own
home made environments with the proper TeX commands to include in the
table of contents and to make the new part into a section.

SteveT


Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt

Loading...