Re: fancyheader problem

2005-05-09 Thread Paul A. Rubin
Gunnar wrote:
I'm trying to get fancyheaders in a book,
with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?


Did you check Two-sided document under Layout-Document-Paper? 
Without that, LyX includes the oneside option (at least in articles, not 
sure about books), which kills the header alternation.

-- Paul


Re: fancyheader problem

2005-05-09 Thread Gunnar
 Did you check Two-sided document under Layout-Document-Paper?
No.
 Without that, LyX includes the oneside option (at least in articles, not
 sure about books), which kills the header alternation.
Thank you very much. Problem solved!


Re: fancyheader problem

2005-05-09 Thread Paul A. Rubin
Gunnar wrote:
I'm trying to get fancyheaders in a book,
with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?


Did you check Two-sided document under Layout-Document-Paper? 
Without that, LyX includes the oneside option (at least in articles, not 
sure about books), which kills the header alternation.

-- Paul


Re: fancyheader problem

2005-05-09 Thread Gunnar
 Did you check Two-sided document under Layout-Document-Paper?
No.
 Without that, LyX includes the oneside option (at least in articles, not
 sure about books), which kills the header alternation.
Thank you very much. Problem solved!


Re: fancyheader problem

2005-05-09 Thread Paul A. Rubin
Gunnar wrote:
I'm trying to get fancyheaders in a book,
with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?


Did you check "Two-sided document" under Layout->Document->Paper? 
Without that, LyX includes the oneside option (at least in articles, not 
sure about books), which kills the header alternation.

-- Paul


Re: fancyheader problem

2005-05-09 Thread Gunnar
> Did you check "Two-sided document" under Layout->Document->Paper?
No.
> Without that, LyX includes the oneside option (at least in articles, not
> sure about books), which kills the header alternation.
Thank you very much. Problem solved!


Re: fancyheader problem

2005-05-08 Thread Rich Shepard
On Sun, 8 May 2005, Gunnar wrote:
This is the fancy stuff in the exported latex file
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr}
\pagestyle{fancy}
Gunnar,
  Is the double use intentional? It should be there only once. You can also
use:
\usepackage{fancyhdr}
\pagestyle{fance}
\fancyhead{} % clear header fields
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
  These are correct.
\cfoot{}
  Don't think you need to explicitly clear the center footer; I haven't.
  A recommendation made to me early last year that I'll pass on to you is to
buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains the
answers to most of the questions we post here. A great resource.
  If removing the second calls to the package and pagestyle, and the explicit
clearing of the headers, does not fix your problem then you've exceeded my
knowledge and you'll need to wait for one of the experts to help you out.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-08 Thread Gunnar
Is the double use intentional? It should be there only once. You can
 also use:
 \usepackage{fancyhdr}
 \pagestyle{fance}
 \fancyhead{} % clear header fields
The double use was added when the single use didn't work (by adding both to 
preamble and selecting fancy pagestyle.
  \cfoot{}
Don't think you need to explicitly clear the center footer; I haven't.
I had to get rid of the pagenumbers placed below. But the number is still 
there on the first page of each chapter.

A recommendation made to me early last year that I'll pass on to you is
 to buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains
 the answers to most of the questions we post here. A great resource.
Sounds like a good book. I'll put it on my books to buy-list.

Thanks for replying, but the problem remains.


Re: fancyheader problem

2005-05-08 Thread Ekkehart Schlicht
I use 

\makeatletter
%clear headers for empty pages
[EMAIL PROTECTED] [EMAIL PROTECTED]
 \hbox{}
   \thispagestyle{empty}
 \newpage
 [EMAIL PROTECTED]
\makeatother
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{ #1}}
\fancyhf{}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\thesection}
\fancyhead[CE]{\tiny\MakeUppercase{{\leftmark}}}
\fancyhead[CO]{\tiny\MakeUppercase{{\rightmark}}}
\fancyhead[LO]{\thesection}
\fancyhead[RO]{\thepage}
Maybe this works for you?
Ekkehart



Re: fancyheader problem

2005-05-08 Thread Rich Shepard
On Sun, 8 May 2005, Gunnar wrote:
This is the fancy stuff in the exported latex file
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr}
\pagestyle{fancy}
Gunnar,
  Is the double use intentional? It should be there only once. You can also
use:
\usepackage{fancyhdr}
\pagestyle{fance}
\fancyhead{} % clear header fields
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
  These are correct.
\cfoot{}
  Don't think you need to explicitly clear the center footer; I haven't.
  A recommendation made to me early last year that I'll pass on to you is to
buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains the
answers to most of the questions we post here. A great resource.
  If removing the second calls to the package and pagestyle, and the explicit
clearing of the headers, does not fix your problem then you've exceeded my
knowledge and you'll need to wait for one of the experts to help you out.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-08 Thread Gunnar
Is the double use intentional? It should be there only once. You can
 also use:
 \usepackage{fancyhdr}
 \pagestyle{fance}
 \fancyhead{} % clear header fields
The double use was added when the single use didn't work (by adding both to 
preamble and selecting fancy pagestyle.
  \cfoot{}
Don't think you need to explicitly clear the center footer; I haven't.
I had to get rid of the pagenumbers placed below. But the number is still 
there on the first page of each chapter.

A recommendation made to me early last year that I'll pass on to you is
 to buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains
 the answers to most of the questions we post here. A great resource.
Sounds like a good book. I'll put it on my books to buy-list.

Thanks for replying, but the problem remains.


Re: fancyheader problem

2005-05-08 Thread Ekkehart Schlicht
I use 

\makeatletter
%clear headers for empty pages
[EMAIL PROTECTED] [EMAIL PROTECTED]
 \hbox{}
   \thispagestyle{empty}
 \newpage
 [EMAIL PROTECTED]
\makeatother
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{ #1}}
\fancyhf{}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\thesection}
\fancyhead[CE]{\tiny\MakeUppercase{{\leftmark}}}
\fancyhead[CO]{\tiny\MakeUppercase{{\rightmark}}}
\fancyhead[LO]{\thesection}
\fancyhead[RO]{\thepage}
Maybe this works for you?
Ekkehart



Re: fancyheader problem

2005-05-08 Thread Rich Shepard
On Sun, 8 May 2005, Gunnar wrote:
This is the fancy stuff in the exported latex file
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr}
\pagestyle{fancy}
Gunnar,
  Is the double use intentional? It should be there only once. You can also
use:
\usepackage{fancyhdr}
\pagestyle{fance}
\fancyhead{} % clear header fields
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
  These are correct.
\cfoot{}
  Don't think you need to explicitly clear the center footer; I haven't.
  A recommendation made to me early last year that I'll pass on to you is to
buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains the
answers to most of the questions we post here. A great resource.
  If removing the second calls to the package and pagestyle, and the explicit
clearing of the headers, does not fix your problem then you've exceeded my
knowledge and you'll need to wait for one of the experts to help you out.
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-08 Thread Gunnar
>Is the double use intentional? It should be there only once. You can
> also use:
> \usepackage{fancyhdr}
> \pagestyle{fance}
> \fancyhead{} % clear header fields
The double use was added when the single use didn't work (by adding both to 
preamble and selecting "fancy" pagestyle.
> > \cfoot{}
>Don't think you need to explicitly clear the center footer; I haven't.
I had to get rid of the pagenumbers placed below. But the number is still 
there on the first page of each chapter.

>A recommendation made to me early last year that I'll pass on to you is
> to buy a copy of The LaTeX Companion, Second Edition (TLC2). It contains
> the answers to most of the questions we post here. A great resource.
Sounds like a good book. I'll put it on my "books to buy"-list.

Thanks for replying, but the problem remains.


Re: fancyheader problem

2005-05-08 Thread Ekkehart Schlicht
I use 

\makeatletter
%clear headers for empty pages
[EMAIL PROTECTED] [EMAIL PROTECTED]
 \hbox{}
   \thispagestyle{empty}
 \newpage
 [EMAIL PROTECTED]
\makeatother
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{ #1}}
\fancyhf{}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\thesection}
\fancyhead[CE]{\tiny\MakeUppercase{{\leftmark}}}
\fancyhead[CO]{\tiny\MakeUppercase{{\rightmark}}}
\fancyhead[LO]{\thesection}
\fancyhead[RO]{\thepage}
Maybe this works for you?
Ekkehart



fancyheader problem

2005-05-07 Thread Gunnar
I'm trying to get fancyheaders in a book,
with this preamble

\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}

I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?



Re: fancyheader problem

2005-05-07 Thread Rich Shepard
On Sat, 7 May 2005, Gunnar wrote:
I'm trying to get fancyheaders in a book, with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
  Did you tell LaTeX to load the package, too?
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-07 Thread Gunnar
Did you tell LaTeX to load the package, too?
This is the fancy stuff in the exported latex file


\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr} 
\pagestyle{fancy}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\cfoot{}


fancyheader problem

2005-05-07 Thread Gunnar
I'm trying to get fancyheaders in a book,
with this preamble

\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}

I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?



Re: fancyheader problem

2005-05-07 Thread Rich Shepard
On Sat, 7 May 2005, Gunnar wrote:
I'm trying to get fancyheaders in a book, with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
  Did you tell LaTeX to load the package, too?
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-07 Thread Gunnar
Did you tell LaTeX to load the package, too?
This is the fancy stuff in the exported latex file


\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr} 
\pagestyle{fancy}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\cfoot{}


fancyheader problem

2005-05-07 Thread Gunnar
I'm trying to get fancyheaders in a book,
with this preamble

\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}

I get the SAME kind of headers on both odd and even pages. The page number is 
in the righthand corner, and the sectionnumber+name is in the lefthand 
corner. That is what I want for the odd pages, but for the even pages I want 
the page number to the left, and section the right. 
What's wrong?



Re: fancyheader problem

2005-05-07 Thread Rich Shepard
On Sat, 7 May 2005, Gunnar wrote:
I'm trying to get fancyheaders in a book, with this preamble
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO,RE]{\rightmark}
  Did you tell LaTeX to load the package, too?
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
   Voice: 503-667-4517   Fax: 503-667-8863


Re: fancyheader problem

2005-05-07 Thread Gunnar
>Did you tell LaTeX to load the package, too?
This is the fancy stuff in the exported latex file


\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fancyhdr} 
\pagestyle{fancy}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\cfoot{}