Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I change \rightmark?

589 views
Skip to first unread message

Laurent Duperval

unread,
Sep 1, 1994, 5:26:59 PM9/1/94
to
Hi,

I want to change my \rightmark so it reads

2. INTRODUCTION

instead of

CHAPTER 2. INTRODUCTION

I've tried various things but none work. Any ideas?

--
Laurent Duperval, B. Sc. | The opinions expressed herein are my own and
| do not represent those of this establishment
dupe...@iro.umontreal.ca | That's because they don't have enough $$$
dupe...@jsp.umontreal.ca | to afford them. Noone does.

GOEBEL'S LAW OF USELESS DIFFICULTY:
Just because it's hard
Doesn't mean it's worth the effort.

Piet van Oostrum

unread,
Sep 5, 1994, 6:23:25 AM9/5/94
to
>>>>> dupe...@IRO.UMontreal.CA (Laurent Duperval) (LD) writes:

LD> I want to change my \rightmark so it reads

LD> 2. INTRODUCTION

LD> instead of

LD> CHAPTER 2. INTRODUCTION

This \rightmark is generated in the standard LaTeX classes by the
\chaptermark command, so you must redefine it. e.g.

\renewcommand\chaptermark[1]{\markboth {\uppercase{\thechapter.\ #1}}{}}
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University, (*`Pete')
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806 Telefax: +31 30 513791 Internet: pi...@cs.ruu.nl
PGP public key by finger or WWW http://www.cs.ruu.nl/~piet

Laurent Duperval

unread,
Sep 6, 1994, 9:49:02 AM9/6/94
to
Piet van Oostrum (pi...@cs.ruu.nl) wrote:
-> This \rightmark is generated in the standard LaTeX classes by the
-> \chaptermark command, so you must redefine it. e.g.

-> \renewcommand\chaptermark[1]{\markboth {\uppercase{\thechapter.\ #1}}{}}

I've tried this macro an another variation (taken from the LaTeX Companion),
I've tried to modify the report class definition of \rightmark, to no avail.
*Sigh* I'm beginning to think this might be an oversight from the 2e
development team.

Has anyone managed to do this with LaTeX2e? If so, can you send me the set of
macros you used to do so? Maybe I'm missing something obvious.

--
Laurent Duperval, B. Sc. | These opinions are up for sale. We will start
| the bidding at $1,000,000... Do I hear $500,000?
dupe...@iro.umontreal.ca | $100,000 for an authentic opinion of mine........
dupe...@jsp.umontreal.ca | $10? $5? I'll pay you $1 if you take them... $5?

GOEBEL'S LAW OF PRODUCT INTRODUCTIONS:
A future product release date does NOT say when a product will be
introduced. All it says it that you don't have a chance in HELL of
seeing it before that time.

Piet van Oostrum

unread,
Sep 8, 1994, 5:26:58 AM9/8/94
to
>>>>> dupe...@IRO.UMontreal.CA (Laurent Duperval) (LD) writes:

LD> Piet van Oostrum (pi...@cs.ruu.nl) wrote:
-> This \rightmark is generated in the standard LaTeX classes by the
-> \chaptermark command, so you must redefine it. e.g.

-> \renewcommand\chaptermark[1]{\markboth {\uppercase{\thechapter.\ #1}}{}}

LD> I've tried this macro an another variation (taken from the LaTeX Companion),
LD> I've tried to modify the report class definition of \rightmark, to no avail.
LD> *Sigh* I'm beginning to think this might be an oversight from the 2e
LD> development team.

LD> Has anyone managed to do this with LaTeX2e? If so, can you send me the
LD> set of macros you used to do so? Maybe I'm missing something obvious.

It works for me. Just the line above in your document suffices. No changes
to the class files.

Or do you want something else to happen?

Laurent Duperval

unread,
Sep 8, 1994, 11:08:14 AM9/8/94
to
Piet van Oostrum (pi...@cs.ruu.nl) wrote:
-> >>>>> dupe...@IRO.UMontreal.CA (Laurent Duperval) (LD) writes:

-> LD> I want to change my \rightmark so it reads

-> LD> 2. INTRODUCTION

-> LD> instead of

-> LD> CHAPTER 2. INTRODUCTION

-> This \rightmark is generated in the standard LaTeX classes by the
-> \chaptermark command, so you must redefine it. e.g.

-> \renewcommand\chaptermark[1]{\markboth {\uppercase{\thechapter.\ #1}}{}}

The above information was correct but didn't work for me. Piet later sent me
the correct way to do this:


From pi...@cs.ruu.nl Thu Sep 8 10:53:40 1994
Return-Path: <pi...@cs.ruu.nl>
From: pi...@cs.ruu.nl
Date: Thu, 8 Sep 1994 16:53:14 +0200
To: dupe...@IRO.UMontreal.CA
Subject: Re: How do I change \rightmark?, Re: How do I change \rightmark?

I found your problem:

If you say \pagestyle{headings} then \chaptermark get its default value
(this is also true for \pagestyle{fancy}, but only on the first call).

So you must do the \renewcommand\chaptermark after the \pagestyle command.

If you are using \pagestyle{headings} and not twoside, you must use
\markright in the \chaptermark:

\renewcommand\chaptermark[1]{\markright {\uppercase{\thechapter.\ #1}}}

and if you are using twoside you must use \markboth:

\renewcommand\chaptermark[1]{\markboth {\uppercase{\thechapter.\ #1}}{}}

--
Piet van Oostrum <pi...@cs.ruu.nl>


--
Laurent Duperval, B. Sc. | The opinions expressed herein are my own and
| do not represent those of this establishment
dupe...@iro.umontreal.ca | That's because they don't have enough $$$
dupe...@jsp.umontreal.ca | to afford them. Noone does.

"Si tu te cognes la tête contre un vase et que cela résonne, ne t'empresses
pas à conclure que c'est le vase qui est creux".
-Anonymous

0 new messages