[texhax] Chapter heading
wei qin
qin_2004 at yahoo.com
Fri Jul 23 04:25:10 CEST 2004
Thanks, Herbert. I found out that after deleting the code from the class file, the heading works perfectly. The code is apparently useless and shadows the heading definition in report.cls.
Wei
Herbert Gintis <hgintis at comcast.net> wrote:
You have to redefine "chaptermark", which now says to print nothing! I don't know what you did, but in the report.cls file, chaptermark is chock full of neat stuff.
You should find report.cls (usually where latex.ltx is), and fix it up.
Herb Gintis
At 01:26 PM 7/22/2004 -0700, wei qin wrote:
Hi,
While I was typesetting my thesis, some mysterious changes occured to the headings. It was "Chapter 1: introduction", and now it becomes simply "Introduction". I couldn't figure out the difference. The style file that I used defines the headings with the following code.
\LoadClass[12pt,letterpaper,onecolumn]{report}[1996/10/31]
%% PAGE HEADINGS
\if at twoside
\def\ps at plain{%
\def\@evenhead{}\def\@oddhead{}%
\def\@evenfoot{%
\null\hfil\rmfamily\thepage\quad{\slshape\leftmark}\hfil\null}%
\def\@oddfoot{%
\null\hfil{\slshape\rightmark}\quad\rmfamily\thepage\hfil\null}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\def\ps at headings{%
\def\@evenfoot{}\def\@oddfoot{}%
\def\@evenhead{%
\rmfamily\thepage\quad{\slshape\leftmark}\hfil\null}%
\def\@oddhead{%
\null\hfil{\slshape\rightmark}\quad\rmfamily\thepage}%
\def\chaptermark##1{\markboth {##1}{}}%
\def\sectionmark##1{\markright %
{\ifnum \c at secnumdepth >\z@ \thesection\ \fi ##1}}%
}
\else
\def\ps at plain{%
\def\@evenhead{}\def\@oddhead{}\def\@evenfoot{}%
\def\@oddfoot{%
\null\hfil{\slshape\rightmark}\quad\rmfamily\thepage\hfil\null}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\def\ps at headings{%
\def\@evenfoot{}\def\@oddfoot{}\def\@evenhead{}%
\def\@oddhead{%
\null\hfil{\slshape\rightmark}\quad\rmfamily\thepage}%
\def\chaptermark##1{\markright {##1}{}}%
}
\fi
The change happens to both twoside and oneside cases. Please point out to me what may cause the change and how to go back to the old heading style. Thanks in advance.
Wei
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
Mailing list archives: http://tug.org/pipermail/texhax/
More links: http://tug.org/begin.html
Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org
Herbert Gintis
External Faculty, Santa Fe Institute
Emeritus Professor, University of Massachusetts
15 Forbes Avenue, Northampton, MA 01060
413-586-7756 (Home Office) 206-984-9873 (Fax)
Recent papers are posted on my web site.
Get Game Theory Evolving (Princeton, 2000) at Amazon.com
Look for Moral Sentiments and Material Interests (MIT Press, 2004)
Look for Unequal Chances (Princeton UP, 2004)
Quote of the week:
The philosophers kick up the dust and then complain they cannot see.
Bishop Berkeley, A Treatise Concerning Human Knowledge
_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
Mailing list archives: http://tug.org/pipermail/texhax/
More links: http://tug.org/begin.html
Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org
---------------------------------
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20040722/f5c88a19/attachment-0001.htm
More information about the texhax
mailing list