The way to do this kind of thing is to redefine the chapter start
macro from the class file. Here's what that macro looks like in my
version of book.cls:
[EMAIL PROTECTED]
\thispagestyle{plain}%
[EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@schapter}
What's causing the page number to
I'm afraid that starts to get beyond my understanding of these class
files. I /believe/ the thing you need to do is to redefine the
\chaptermark macro, but this is a TeX construct, not a LaTeX one, and
I'm not absolutely sure how to do that. I'd try:
\let\chaptermark##1\empty
But I don't say
I hope I test your advice in the right way.
I changed the line
\chaptermark{#1}%
to
\let\chaptermark##1\empty
That didn't work. No I have one 1 on every chapter start page.
Then I changed the line to
\def\chaptermark#1{}%
That didn't work too. Now I have on every page the name of the first
Richard Heck wrote:
The idea was to put
\let\chaptermark##1\empty
or
\def\chaptermark#1{}%
in the preamble. If you just changed that line, then you redefined it
only after the first chaptermark was created. Hence the behavior you
are seeing.
If I put
\let\chaptermark##1\empty
in the
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the chapter or subchapter
Joachim Krieg wrote:
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the
Kamran SHAFQAT wrote:
Hi
well i am assuming that you want the name of chapter and
section/subsection on each page for that try adding these commands to
preamble
\renewcommand{\chaptermark}[1]{\markboth{{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{{\thesection.\ #1}}}
c. Can I change this?
You sound like a user who knows fancy. This is a little bit OT for
this thread but maybe you can give me a hint. How can I make a line
under the header to visual separate him from the text?
http://tug.org/TeXnik/mainFAQ.cgi?file=fancy/header
--
Charles de Miramon wrote:
c. Can I change this?
Yes, thanks for the hint.
You sound like a user who knows fancy. This is a little bit OT for
this thread but maybe you can give me a hint. How can I make a line
under the header to visual separate him from the text?
Kamran SHAFQAT wrote:
Hi,
that works! But I haven't on the first page of a chapter only the
chapter name, there is nothing (in the header. But that's okay for me.
Now I have one more problem. The page after my toc is a chapter*
without a number. The header of this page shows the name of my
toc.
The way to do this kind of thing is to redefine the chapter start
macro from the class file. Here's what that macro looks like in my
version of book.cls:
[EMAIL PROTECTED]
\thispagestyle{plain}%
[EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@schapter}
What's causing the page number to
I'm afraid that starts to get beyond my understanding of these class
files. I /believe/ the thing you need to do is to redefine the
\chaptermark macro, but this is a TeX construct, not a LaTeX one, and
I'm not absolutely sure how to do that. I'd try:
\let\chaptermark##1\empty
But I don't say
I hope I test your advice in the right way.
I changed the line
\chaptermark{#1}%
to
\let\chaptermark##1\empty
That didn't work. No I have one 1 on every chapter start page.
Then I changed the line to
\def\chaptermark#1{}%
That didn't work too. Now I have on every page the name of the first
Richard Heck wrote:
The idea was to put
\let\chaptermark##1\empty
or
\def\chaptermark#1{}%
in the preamble. If you just changed that line, then you redefined it
only after the first chaptermark was created. Hence the behavior you
are seeing.
If I put
\let\chaptermark##1\empty
in the
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the chapter or subchapter
Joachim Krieg wrote:
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the
Kamran SHAFQAT wrote:
Hi
well i am assuming that you want the name of chapter and
section/subsection on each page for that try adding these commands to
preamble
\renewcommand{\chaptermark}[1]{\markboth{{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{{\thesection.\ #1}}}
c. Can I change this?
You sound like a user who knows fancy. This is a little bit OT for
this thread but maybe you can give me a hint. How can I make a line
under the header to visual separate him from the text?
http://tug.org/TeXnik/mainFAQ.cgi?file=fancy/header
--
Charles de Miramon wrote:
c. Can I change this?
Yes, thanks for the hint.
You sound like a user who knows fancy. This is a little bit OT for
this thread but maybe you can give me a hint. How can I make a line
under the header to visual separate him from the text?
Kamran SHAFQAT wrote:
Hi,
that works! But I haven't on the first page of a chapter only the
chapter name, there is nothing (in the header. But that's okay for me.
Now I have one more problem. The page after my toc is a chapter*
without a number. The header of this page shows the name of my
toc.
The way to do this kind of thing is to redefine the "chapter start"
macro from the class file. Here's what that macro looks like in my
version of book.cls:
[EMAIL PROTECTED]
\thispagestyle{plain}%
[EMAIL PROTECTED]@
[EMAIL PROTECTED]
[EMAIL PROTECTED]@schapter}
What's causing the page number
I'm afraid that starts to get beyond my understanding of these class
files. I /believe/ the thing you need to do is to redefine the
\chaptermark macro, but this is a TeX construct, not a LaTeX one, and
I'm not absolutely sure how to do that. I'd try:
\let\chaptermark##1\empty
But I don't say
I hope I test your advice in the right way.
I changed the line
\chaptermark{#1}%
to
\let\chaptermark##1\empty
That didn't work. No I have one "1" on every chapter start page.
Then I changed the line to
\def\chaptermark#1{}%
That didn't work too. Now I have on every page the name of the
Richard Heck wrote:
> The idea was to put
>> \let\chaptermark##1\empty
> or
>> \def\chaptermark#1{}%
> in the preamble. If you just changed that line, then you redefined it
> only after the first "chaptermark" was created. Hence the behavior you
> are seeing.
If I put
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the chapter or subchapter
Joachim Krieg wrote:
I tried your idea. It works very good too. First I changed the
book.cls like Richard told it. Then I changed the style to fancy and
wrote your commands in the preamble.
I get the page numbers on all pages, on the first page of the chapter
too.
How can I add the name of the
Kamran SHAFQAT wrote:
> Hi
> well i am assuming that you want the name of chapter and
> section/subsection on each page for that try adding these commands to
> preamble
> \renewcommand{\chaptermark}[1]{\markboth{{\thechapter.\ #1}}{}}
> \renewcommand{\sectionmark}[1]{\markright{{\thesection.\
c. Can I change this?
>
>
> You sound like a user who knows fancy. This is a little bit OT for
> this thread but maybe you can give me a hint. How can I make a line
> under the header to visual separate him from the text?
>
http://tug.org/TeXnik/mainFAQ.cgi?file=fancy/header
--
Charles de Miramon wrote:
> c. Can I change this?
Yes, thanks for the hint.
>>
>>
>> You sound like a user who knows fancy. This is a little bit OT for
>> this thread but maybe you can give me a hint. How can I make a line
>> under the header to visual separate him from the text?
>>
>
Kamran SHAFQAT wrote:
>>Hi,
>>that works! But I haven't on the first page of a chapter only the
>>chapter name, there is nothing (in the header. But that's okay for me.
>>Now I have one more problem. The page after my toc is a chapter*
>>without a number. The header of this page shows the name of
30 matches
Mail list logo