Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Kamran SHAFQAT
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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}}}

Re: Easy way to get the page number top right

2006-04-05 Thread Charles de Miramon
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 --

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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?

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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.

Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Kamran SHAFQAT
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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}}}

Re: Easy way to get the page number top right

2006-04-05 Thread Charles de Miramon
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 --

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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?

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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.

Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Richard Heck
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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

Re: Easy way to get the page number top right

2006-04-05 Thread Kamran SHAFQAT
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

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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.\

Re: Easy way to get the page number top right

2006-04-05 Thread Charles de Miramon
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 --

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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? >> >

Re: Easy way to get the page number top right

2006-04-05 Thread Joachim Krieg
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