Re: Fancyhdr

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Ricardo Berlasso wrote:


Yes. The "Fancy" option indeed adds that line to the preamble. You can
check what's on the "hidden" preamble by opening the "code pane" (View →
Code Preview Pane) and select the "Only Preamble" option.


Ricardo,

  That's interesting. When I looked at the .lyx code I saw only what I had
placed in the preamble, including the line %\usepackage{fancyhdr}, and none
of the other included packages seen in the source preview.

Thanks for the lesson,

Rich


Re: Fancyhdr

2017-12-23 Thread Ricardo Berlasso
2017-12-23 17:00 GMT+01:00 Rich Shepard :

>   When I select 'Fancy' in the page layout settings is it redundant to add
> \usepackage{fancyhdr} in the preamble?
>

Yes. The "Fancy" option indeed adds that line to the preamble. You can
check what's on the "hidden" preamble by opening the "code pane" (View →
Code Preview Pane) and select the "Only Preamble" option.

Regards,
Ricardo



>
> Rich
>


Fancyhdr

2017-12-23 Thread Rich Shepard

  When I select 'Fancy' in the page layout settings is it redundant to add
\usepackage{fancyhdr} in the preamble?

Rich


Re: Headings with package fancyhdr

2015-05-04 Thread Aline Gautrein
Hey Jürgen!

Thanks a lot! I switched to scrpage and used this comand in front of the
nomenclature entry:

\markboth{\MakeMarkcase{Nomenclature}}
{\MakeMarkcase{Nomenclature}}

Works fine :-)

2015-05-04 9:34 GMT+02:00 Jürgen Spitzmüller :

> 2015-05-04 9:22 GMT+02:00 Aline Gautrein:
>
>> 2. I used
>>
>> \usepackage{multicol}
>>
>> \@ifundefined{chapter}
>>
>> {\def\wilh@nomsection{section}}
>>
>> {\def\wilh@nomsection{chapter}}
>>
>> \def\thenomenclature{%
>>
>> \begin{multicols}{2}[%
>>
>> \csname\wilh@nomsection\endcsname*{\nomname}
>>
>> \if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi
>>
>> \nompreamble]
>>
>> \list{}{%
>>
>> \labelwidth\nom@tempdim
>>
>> \leftmargin\labelwidth
>>
>> \advance\leftmargin\labelsep
>>
>> \itemsep\nomitemsep
>>
>> \let\makelabel\nomlabel}%
>>
>> }
>>
>> \def\endthenomenclature{%
>>
>> \endlist
>>
>> \end{multicols}
>>
>> \nompostamble}
>>
>>
>> to get a two column nomenclature with the columns beginning below the
>> chapter title. Unfortunately "Nomenclature" is now not been recognized as
>> chapter title by the fancyhdr anymore.
>>
>>
>> Does anyone know what to do?
>>
>
>
> Try this instead:
>
> \usepackage{multicol}
>
> \def\thenomenclature{%
>
> \begin{multicols}{2}[%
>
> \addchap{\nomname}
>
> \nompreamble]
>
> \list{}{%
>
> \labelwidth\nom@tempdim
>
> \leftmargin\labelwidth
>
> \advance\leftmargin\labelsep
>
> \itemsep\nomitemsep
>
> \let\makelabel\nomlabel}%
>
> }
>
> \def\endthenomenclature{%
>
> \endlist
>
> \end{multicols}
>
> \nompostamble}
>
>
>
> Jürgen
>
>
>
>>
>> Thanks a lot!
>>
>>
>


Re: Headings with package fancyhdr

2015-05-04 Thread Jürgen Spitzmüller
2015-05-04 9:22 GMT+02:00 Aline Gautrein:

> 2. I used
>
> \usepackage{multicol}
>
> \@ifundefined{chapter}
>
> {\def\wilh@nomsection{section}}
>
> {\def\wilh@nomsection{chapter}}
>
> \def\thenomenclature{%
>
> \begin{multicols}{2}[%
>
> \csname\wilh@nomsection\endcsname*{\nomname}
>
> \if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi
>
> \nompreamble]
>
> \list{}{%
>
> \labelwidth\nom@tempdim
>
> \leftmargin\labelwidth
>
> \advance\leftmargin\labelsep
>
> \itemsep\nomitemsep
>
> \let\makelabel\nomlabel}%
>
> }
>
> \def\endthenomenclature{%
>
> \endlist
>
> \end{multicols}
>
> \nompostamble}
>
>
> to get a two column nomenclature with the columns beginning below the
> chapter title. Unfortunately "Nomenclature" is now not been recognized as
> chapter title by the fancyhdr anymore.
>
>
> Does anyone know what to do?
>


Try this instead:

\usepackage{multicol}

\def\thenomenclature{%

\begin{multicols}{2}[%

\addchap{\nomname}

\nompreamble]

\list{}{%

\labelwidth\nom@tempdim

\leftmargin\labelwidth

\advance\leftmargin\labelsep

\itemsep\nomitemsep

\let\makelabel\nomlabel}%

}

\def\endthenomenclature{%

\endlist

\end{multicols}

\nompostamble}



Jürgen



>
> Thanks a lot!
>
>


Headings with package fancyhdr

2015-05-04 Thread Aline Gautrein
Hey Lyx-Gurus,

I am using KOMAscript book and I inserted a footer and header with fancyhdr
(I know one could also use scrpage).
After some playing around, I finally managed to have the footer and headers
as intended, except for two problems.

1. The font of the headers of indices like "Contents", "List of Figures"
etc. is different from the rest of the document also I defined it the same
way. Here is my definition of header and footer:

\pagestyle{fancy}
% Kopfzeile
\fancyhead[LE]{\leftmark}
\fancyhead[RO]{\rightmark}
\fancyhead[C,RE,LO]{}
%Fußzeile
\fancyfoot[RO,LE]{\thepage}
\fancyfoot[RE,LO,CE,CO]{}


I placed it in front of all the indices.

2. I used

\usepackage{multicol}

\@ifundefined{chapter}

{\def\wilh@nomsection{section}}

{\def\wilh@nomsection{chapter}}

\def\thenomenclature{%

\begin{multicols}{2}[%

\csname\wilh@nomsection\endcsname*{\nomname}

\if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi

\nompreamble]

\list{}{%

\labelwidth\nom@tempdim

\leftmargin\labelwidth

\advance\leftmargin\labelsep

\itemsep\nomitemsep

\let\makelabel\nomlabel}%

}

\def\endthenomenclature{%

\endlist

\end{multicols}

\nompostamble}


to get a two column nomenclature with the columns beginning below the
chapter title. Unfortunately "Nomenclature" is now not been recognized as
chapter title by the fancyhdr anymore.


Does anyone know what to do?


Thanks a lot!


Re: Lyx mailing list: problem with fancyhdr

2010-07-28 Thread Charlie
On Wed, 28 Jul 2010 19:27:49 + Stefan Zorn
 shared this with is all on the Lyx users
list:

>>> Additionally I have a small question which I could not find in the
>>> forum: Occasionally (4 lines in 100 pages) a line overwrites the
>>> right margin. It seems that, this are lines with very long words.
>>> How can I manual force a line break in this case?  
>
>>Use Insert>Formatting>Hyphenation Point to insert a "soft hyphen" (as
>>WordPerfect used to call it). This will tell TeX that it is OK to
>>break the line there.  
>
>>rh   

Thought that might work for me Richard - but doesn't:

Using Debian Squeeze - LyX version 1.6.7 - book (KOMA-Script)

and in the preamble - \hyphenpenalty=1 - \widowpenalty=1000

So I have always done the hyphenating manually in the few instances
where it's not done for me, usually in email headers copied into LyX.

Be well,
Charlie
-- 
Registered Linux User:- 329524
***
Better not to begin. Once you begin, better to finish it.
---BUDDHIST SAYING

***
Debian, just the best way to create magic
___


Re: Lyx mailing list: problem with fancyhdr

2010-07-28 Thread Stefan Zorn
Hi all,

>> Additionally I have a small question which I could not find in the
>> forum: Occasionally (4 lines in 100 pages) a line overwrites the right
>> margin. It seems that, this are lines with very long words. How can I
>> manual force a line break in this case?

>Use Insert>Formatting>Hyphenation Point to insert a "soft hyphen" (as 
>WordPerfect used to call it). This will tell TeX that it is OK to break the 
>line there.

>rh

Problem solved thank you very much Richard!


>> Hi all,
>>
>> I have a problem wih the fancyhdr package. I use lyx version 1.6.5.
>> In order to add the title of the chapter in the top line and the
>> pagenumber at the bottom of the page (both for even numbered pages in
>> the right corner and for odd numbered pages in the left corner), I
>> used the header:
>>
>> \usepackage{fancyhdr}
>>
>> \pagestyle{fancy}
>>
>> \fancyhead{}  % clear all header fields
>> \fancyhead[LO,RE]{\leftmark}
>> \fancyfoot{}  % clear all footer fields
>> \fancyfoot[LO,RE]{\thepage}
>> \renewcommand{\headrulewidth}{0.4pt}
>>
>> It works perfectly fine. However, the first page of each chapter is
>> unchanged. I want to change the position of this pages to the left or
>> right position and no header. To this end I used in the header the
>> command:
>>
>> \pagestyle{fancyplain}
>> \fancyhead{}  % clear all header fields
>> \fancyfoot{}  % clear all footer fields
>> \fancyfoot[LO,RE]{\thepage}
>>
>> If I put this in the header in front of the \pagestyle{fancy}
>> commands, the first chapter page looks like the following ones but
>> without a line in the top.
>> If I put it in the header after the \pagestyle{fancy} commands, the
>> first chapter page looks as I intended (no header, the pagenumber
>> moved to the left/right corner). However, the other pages got only a
>> line in the header without the chaptername.
>>
>> What is wrong?

Maybe the question was a bit to complicated, so I try to ask easier:

I use the document class "report".
How would you define with the fancyhdr package or in an other way,
that in the first pages of the chapters the pagenumbers are printed
for even numbered pages in the lower right corner and for odd numbered
pages in the lower left corner?

Thank you very much for your help!

Kind regards!

Stefan


Re: Lyx mailing list: problem with fancyhdr

2010-07-25 Thread Richard Heck

On 07/25/2010 01:29 PM, Stefan Zorn wrote:

Additionally I have a small question which I could not find in the
forum: Occasionally (4 lines in 100 pages) a line overwrites the right
margin. It seems that, this are lines with very long words. How can I
manual force a line break in this case?

   
Use Insert>Formatting>Hyphenation Point to insert a "soft hyphen" (as 
WordPerfect used to call it). This will tell TeX that it is OK to break 
the line there.


rh



Lyx mailing list: problem with fancyhdr

2010-07-25 Thread Stefan Zorn
Hi all,

I have a problem wih the fancyhdr package. I use lyx version 1.6.5.
In order to add the title of the chapter in the top line and the
pagenumber at the bottom of the page (both for even numbered pages in
the right corner and for odd numbered pages in the left corner), I
used the header:

\usepackage{fancyhdr}

\pagestyle{fancy}

\fancyhead{}  % clear all header fields
\fancyhead[LO,RE]{\leftmark}
\fancyfoot{}  % clear all footer fields
\fancyfoot[LO,RE]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}

It works perfectly fine. However, the first page of each chapter is
unchanged. I want to change the position of this pages to the left or
right position and no header. To this end I used in the header the
command:

\pagestyle{fancyplain}
\fancyhead{}  % clear all header fields
\fancyfoot{}  % clear all footer fields
\fancyfoot[LO,RE]{\thepage}

If I put this in the header in front of the \pagestyle{fancy}
commands, the first chapter page looks like the following ones but
without a line in the top.
If I put it in the header after the \pagestyle{fancy} commands, the
first chapter page looks as I intended (no header, the pagenumber
moved to the left/right corner). However, the other pages got only a
line in the header without the chaptername.

What is wrong?

Additionally I have a small question which I could not find in the
forum: Occasionally (4 lines in 100 pages) a line overwrites the right
margin. It seems that, this are lines with very long words. How can I
manual force a line break in this case?

Thank you very much for your assistance!

Kind regards,

Stefan Zorn


RE: Using document title and author in fancyhdr

2010-03-14 Thread Helge Hafting



-Original Message-
From: Stefan [mailto:sal-...@gmx.net]
Sent: Sun 3/14/2010 9:50 AM
To: lyx-users@lists.lyx.org
Subject: Using document title and author in fancyhdr
 
>Hello,
>
>I am trying to use the title & author of the document as heading on 
>every page. I am using article style & fancyhdr package.
>
>I am using the command \lhead{\title} \rhead{\author} in the preamble, 
>but this leads to empty headings (probably because in the preamble 
>those are not filled yet). Is there any way to delay expansion of the 
>\title and \author macros until shipout time at which point they have 
>the right values?
>
>Alternatively, does anyone else know an elegant solution that allows 
>me to put the title and author of a document into heading? 
>Needs to be automatic - no good to explicitly having to put it there


If the problem is that you don't want to enter the author name two times,
put this in the preamble:

\newcommand{\myauthor}{Author name}
\newcommand{\mytitle}{Title text}

\lhead{\mytitle}
\rhead{\myauthor}

In the author field in the document, insert a tex-box and type
\myauthor
Similiar for the title, where you type \mytitle in a tex box.

Maybe not so elegant on screen, but yields perfectly good output.
If you make a document template, then you won't have to make those
tex boxes all the time. You just set author and title in the preamble,
that's it.

Helge Hafting


Using document title and author in fancyhdr

2010-03-14 Thread Stefan
Hello,

I am trying to use the title & author of the document as heading on 
every page. I am using article style & fancyhdr package.

I am using the command \lhead{\title} \rhead{\author} in the preamble, 
but this leads to empty headings (probably because in the preamble 
those are not filled yet). Is there any way to delay expansion of the 
\title and \author macros until shipout time at which point they have 
the right values?

Alternatively, does anyone else know an elegant solution that allows 
me to put the title and author of a document into heading? 
Needs to be automatic - no good to explicitly having to put it there

Thx a lot!



Re: a4wide and fancyhdr - change the line width

2009-11-11 Thread muhaha

Whow!!
Miraculously ~ 1 minute after the last post, as an act of dispair, I tried
the following

\renewcommand{\headwidth}{15cm}

and it worked =)

So if any of you is interested in how there you go...

-- 
View this message in context: 
http://n2.nabble.com/a4wide-and-fancyhdr-change-the-line-width-tp3986108p3986141.html
Sent from the LyX - Users mailing list archive at Nabble.com.


a4wide and fancyhdr - change the line width

2009-11-11 Thread muhaha

Hey folks,

Have been braking my teeth on this all day...
I am using a4wide package - it makes the are of the page taken by the text
wider then the regular article layout. In addition I need a header with a
line separating the header from the not-header :). Therefore I use the
fancyhdr package.

Unfortunately the line separating the header from the rest of the page is
shorter then the new width of the page (expanded by the a4wide package) and
it looks awful!

Maybe someone knows how can I control the length of the line added by
fancyhdr? 

Thanks a lot!
-- 
View this message in context: 
http://n2.nabble.com/a4wide-and-fancyhdr-change-the-line-width-tp3986108p3986108.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Fancyhdr trouble

2009-04-15 Thread Anders Host-Madsen
Did you select "two-sided document" in the page layout setting? In
that case it ought to work.



Re: Fancyhdr trouble

2009-04-15 Thread Andrew Rusk
I have and the problem remains. What could be the problem?

2009/4/16 Waluyo Adi Siswanto 

> On Thu, 2009-04-16 at 00:40 +0100, Andrew Rusk wrote:
> > I am having trouble with fancyhdr. I use the following in the preamble:
> >
> > \fancyhead{}
> >
> > \fancyfoot{}
> >
> > \fancyhf[HLE,HRO]{\thepage}
> >
> > \fancyhf[HLO,HRE]{Title}
> >
> > \renewcommand{\headrulewidth}{0pt}
> >
> > \renewcommand{\footrulewidth}{0pt}
> >
> >
> > But the page number always comes up on the right side, i.e. on both odd
> and
> > even pages while the title is always on the left. What am i doing wrong?
>
> Did you use "fancy" in Document > Settings > Page layout > Heading
> style ? then you can call  \usepackage{fancyhdr} in the preamble
>
> Regards
> was
>
>


Re: Fancyhdr trouble

2009-04-15 Thread Waluyo Adi Siswanto
On Thu, 2009-04-16 at 00:40 +0100, Andrew Rusk wrote:
> I am having trouble with fancyhdr. I use the following in the preamble:
> 
> \fancyhead{}
> 
> \fancyfoot{}
> 
> \fancyhf[HLE,HRO]{\thepage}
> 
> \fancyhf[HLO,HRE]{Title}
> 
> \renewcommand{\headrulewidth}{0pt}
> 
> \renewcommand{\footrulewidth}{0pt}
> 
> 
> But the page number always comes up on the right side, i.e. on both odd and
> even pages while the title is always on the left. What am i doing wrong?

Did you use "fancy" in Document > Settings > Page layout > Heading
style ? then you can call  \usepackage{fancyhdr} in the preamble

Regards 
was



Fancyhdr trouble

2009-04-15 Thread Andrew Rusk
I am having trouble with fancyhdr. I use the following in the preamble:

\fancyhead{}

\fancyfoot{}

\fancyhf[HLE,HRO]{\thepage}

\fancyhf[HLO,HRE]{Title}

\renewcommand{\headrulewidth}{0pt}

\renewcommand{\footrulewidth}{0pt}


But the page number always comes up on the right side, i.e. on both odd and
even pages while the title is always on the left. What am i doing wrong?


Fonts in fancyhdr

2009-01-12 Thread Ehud Kaplan

Adrian,
Here is how you control the font size in the header/footer using 
fancyhdr.  Note that you can do that for each portion of the header or 
footer independently.

Hope this helps--
E. Kaplan
==

\usepackage{fancyhdr}
\pagestyle{fancy}

\lhead{\scriptsize \textsf{Principal Investigator/Program Director
(Last, First, Middle)}} %left header
\chead{}%Leave the center of the header empty
\rhead{Adrian}%Display this text on the right of the header
\lfoot{\scriptsize \textsf{PHS 398 (Rev. 05/01)}} %Display this text on 
the left of the footer
\cfoot{Page \  \thepage} % Print the page number in the center 
of the footer

\rfoot{\scriptsize \textsf{Continuation Format Page}} %right footer
\renewcommand{\headrulewidth}{0.4pt} %print a rule below the header
\renewcommand{\footrulewidth}{0.4pt} %print a rule above the footer



Re: Defining a very special header (fancyhdr)

2008-08-13 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

Dear all,

first of all - thank you for taking the time reading my message and maybe 
thinking of a solution.


Being a Lyx/Latex novice I read the documentation (Lyx, fancyhdr) first and 
managed to write some text and to define some headers with the fancyhdr 
package. Now I have to mimic a word-like header, reading as follows:


picxxsome text - might be even long
picxxsome text - might be even long
picxx

pic is a logo,
the x'ses are indicating free space and
- hm - the rest is what's really giving me trouble.

I tried fancyhdr and succeeded in inserting the pic, but by no means I could 
get the text in it as shown above. The \chead parameter I used centered the 
multi-line text and the text appeared at the _bottom_ of the headerspace 
instead of showing up at the top. Chead in combination with \flushleft didn't 
work either. 


Did I miss something? Do you think this could be done at all?

Thank you for leading me in the right direction.



I'm not sure what's legal in a fancy header (and don't have time just 
now to experiment), but you might try putting the pic and the text in 
side-by-side parboxes (or minipages) inside the header, then 
experimenting with the vertical alignment options (which IMHO are not 
entirely intuitive, but that's a beef with LaTeX, not LyX).


HTH,
Paul



Defining a very special header (fancyhdr)

2008-08-13 Thread tun-info

Dear all,

first of all - thank you for taking the time reading my message and maybe 
thinking of a solution.

Being a Lyx/Latex novice I read the documentation (Lyx, fancyhdr) first and 
managed to write some text and to define some headers with the fancyhdr 
package. Now I have to mimic a word-like header, reading as follows:

picxxsome text - might be even long
picxxsome text - might be even long
picxx

pic is a logo,
the x'ses are indicating free space and
- hm - the rest is what's really giving me trouble.

I tried fancyhdr and succeeded in inserting the pic, but by no means I could 
get the text in it as shown above. The \chead parameter I used centered the 
multi-line text and the text appeared at the _bottom_ of the headerspace 
instead of showing up at the top. Chead in combination with \flushleft didn't 
work either. 

Did I miss something? Do you think this could be done at all?

Thank you for leading me in the right direction.

Regards,
Sigrid



Re: problems with fancyhdr

2007-07-11 Thread Jean-Michel Melkonian
Giuseppe Vitalone <[EMAIL PROTECTED]> writes:

> 
> Hi, I use \addcontentsline{toc}{chapter}{} to add to the index a
> Chapter*. It works fine, but I noticed that the headings are wrong. For
> example, after the TOC I have an "introduction", and I added it to TOC with
> the command \addcontentsline{toc}{chapter}{Introduzione}. In this way, the
> second page heading of Introduction doesn't report "Introdution", but
> "INDICE" (index)... how can I resolve? Here is my Latex preamble regarding
> fancyhdr:
> 

Hi,

I had the same problem and I'd like to know how to solve it too.
I know that if you change your Chapter* to Chapter it will work. Of course this 
is not what you want. 



problems with fancyhdr

2007-07-10 Thread Giuseppe Vitalone

Hi, I use \addcontentsline{toc}{chapter}{} to add to the index a
Chapter*. It works fine, but I noticed that the headings are wrong. For
example, after the TOC I have an "introduction", and I added it to TOC with
the command \addcontentsline{toc}{chapter}{Introduzione}. In this way, the
second page heading of Introduction doesn't report "Introdution", but
"INDICE" (index)... how can I resolve? Here is my Latex preamble regarding
fancyhdr:

\usepackage{fancyhdr}

\pagestyle{fancy}

% i comandi seguenti impediscono la scrittura in maiuscolo

% dei nomi dei capitoli e dei paragrafi nelle intestazioni

%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}

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

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\fancyhf{} % rimuove l'attuale contenuto dell'intestazione

% e del pi\`e di pagina

\fancyhead[LE,RO]{\bfseries\thepage}

\fancyhead[LO]{\bfseries\rightmark}

\fancyhead[RE]{\bfseries\leftmark}

\renewcommand{\headrulewidth}{0.5pt}

\renewcommand{\footrulewidth}{0pt}

\addtolength{\headheight}{0.5pt} % riserva spazio per la linea

\fancypagestyle{plain}{%

\fancyhead{} % ignora, nello stile plain, le intestazioni

\renewcommand{\headrulewidth}{0pt} % e la linea

}


Thanks, Giuseppe


Re: FancyHDR and Horizontal Line

2007-04-17 Thread Stephen Buonopane


I've used fancy header to create decorative lines at the top and  
bottom of pages in a new book, but when I insert Sections first  
thing on my new page (followed by a horizontal line) the white  
space between the header and the section is bigger than the white  
space between the section and the horizontal rule. Ideally, I would  
like to decrease the upper white space, but redefining through  
fancyhdr doesn't seem to be within my grasp.


**Example**

Header: 

Section: Section Title
H.Rule:  


The extra white space above Section is probably associated with the  
Section environment. So you might try redefining the section  
environment, or using a package like "titlesec" which makes it a bit  
easier. A more crude hack might be to add a negative vertical space  
above the section.


FancyHDR and Horizontal Line

2007-04-16 Thread Blanchette, Derek R
 
Good Afternoon,
 
I've used fancy header to create decorative lines at the top and bottom of 
pages in a new book, but when I insert Sections first thing on my new page 
(followed by a horizontal line) the white space between the header and the 
section is bigger than the white space between the section and the horizontal 
rule. Ideally, I would like to decrease the upper white space, but redefining 
through fancyhdr doesn't seem to be within my grasp.
 
**Example**
 
Header: 

Section: Section Title
H.Rule:  
 
 
 
Here is what I've put into the preamble:
\begin_preamble
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\fancyfoot[LO]{\bfseries BCM 262 - Introduction to Biological Chemistry}
\fancyfoot[LE,RO]{Page \thepage}
\renewcommand{\footrulewidth}{0.4pt}
\end_preamble
 
 
 
Also, if anyone has any suggestions for spicing up the design of a lab manual, 
I'd love to hear it.


Re: Help with fancyhdr

2007-04-13 Thread LB

Sorry for this
It was some other problem with page numbering not related to the header.

Everything appears to work well now

Thank you
Leo


Hello

This is what I have done:
1. Everything before \appendix I left they way it was
2. I copied the LaTeX code that created fancy headers just after \appendix
3. I added \makeatletter just before this LaTeX code, changed \chaptername 
with [EMAIL PROTECTED], and added \makeatother right after the LaTeX code


The headers work exactly the way I wanted them to. But the page numbering 
restarted with Appendix A.
Is there something else I need to add to keep the sequential page 
numbering.


Thank you
Leo



It looks like in book.cls, anyway, you can replace \chaptername with 
[EMAIL PROTECTED] You will need to surround the code with

   \makeatletter
   YOUR CODE HERE
   \makeatother
I think. You may also run into a problem if you have chapters after your 
appendix. If you do have a problem, just put: 
[EMAIL PROTECTED] in ERT before your next chapter. That'll 
need the same surrounding, too.


rh

LB wrote:

Hello

There is one problem with this solution that I just noticed.  The header 
in Appendix A would say Chapter A.  Is there a way to modify the coder 
to correct this?


Thank you
Leo



LB wrote:

Hello

I have more of a latex question but I'm hoping that somebody would
know the answer.

I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
class.

I'm writing a large document with a few chapters, sections and
appendices. What I would like is to have a chapter name, section name
or appendix name appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1"
then on the top of the pages in this chapter I'd like to see "1 Title
of chapter 1". As soon the reader reaches "Section 1.1 Title of
section 1.1" the header would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create
appendix I have in ERT \appendix and then all subsequent chapters
become appendices.

I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%

What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.

\markboth{\chaptername
\ \thechapter.\ #1}{}}

So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
   \markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put
chapter names nor appendix names in the header.  How can I modify this
to include chapter names in the headers?

Thank you very much
Leo




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
















Re: Help with fancyhdr

2007-04-13 Thread LB

Hello

This is what I have done:
1. Everything before \appendix I left they way it was
2. I copied the LaTeX code that created fancy headers just after \appendix
3. I added \makeatletter just before this LaTeX code, changed \chaptername 
with [EMAIL PROTECTED], and added \makeatother right after the LaTeX code


The headers work exactly the way I wanted them to. But the page numbering 
restarted with Appendix A.

Is there something else I need to add to keep the sequential page numbering.

Thank you
Leo



It looks like in book.cls, anyway, you can replace \chaptername with 
[EMAIL PROTECTED] You will need to surround the code with

   \makeatletter
   YOUR CODE HERE
   \makeatother
I think. You may also run into a problem if you have chapters after your 
appendix. If you do have a problem, just put: 
[EMAIL PROTECTED] in ERT before your next chapter. That'll 
need the same surrounding, too.


rh

LB wrote:

Hello

There is one problem with this solution that I just noticed.  The header 
in Appendix A would say Chapter A.  Is there a way to modify the coder to 
correct this?


Thank you
Leo



LB wrote:

Hello

I have more of a latex question but I'm hoping that somebody would
know the answer.

I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
class.

I'm writing a large document with a few chapters, sections and
appendices. What I would like is to have a chapter name, section name
or appendix name appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1"
then on the top of the pages in this chapter I'd like to see "1 Title
of chapter 1". As soon the reader reaches "Section 1.1 Title of
section 1.1" the header would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create
appendix I have in ERT \appendix and then all subsequent chapters
become appendices.

I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%

What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.

\markboth{\chaptername
\ \thechapter.\ #1}{}}

So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
   \markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put
chapter names nor appendix names in the header.  How can I modify this
to include chapter names in the headers?

Thank you very much
Leo




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto














Re: Help with fancyhdr

2007-04-12 Thread Richard Heck


It looks like in book.cls, anyway, you can replace \chaptername with 
[EMAIL PROTECTED] You will need to surround the code with

   \makeatletter
   YOUR CODE HERE
   \makeatother
I think. You may also run into a problem if you have chapters after your 
appendix. If you do have a problem, just put: 
[EMAIL PROTECTED] in ERT before your next chapter. That'll 
need the same surrounding, too.


rh

LB wrote:

Hello

There is one problem with this solution that I just noticed.  The 
header in Appendix A would say Chapter A.  Is there a way to modify 
the coder to correct this?


Thank you
Leo



LB wrote:

Hello

I have more of a latex question but I'm hoping that somebody would
know the answer.

I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
class.

I'm writing a large document with a few chapters, sections and
appendices. What I would like is to have a chapter name, section name
or appendix name appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1"
then on the top of the pages in this chapter I'd like to see "1 Title
of chapter 1". As soon the reader reaches "Section 1.1 Title of
section 1.1" the header would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create
appendix I have in ERT \appendix and then all subsequent chapters
become appendices.

I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%

What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.

\markboth{\chaptername
\ \thechapter.\ #1}{}}

So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
   \markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put
chapter names nor appendix names in the header.  How can I modify this
to include chapter names in the headers?

Thank you very much
Leo




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto









Re: Help with fancyhdr

2007-04-12 Thread LB

Hello

There is one problem with this solution that I just noticed.  The header in 
Appendix A would say Chapter A.  Is there a way to modify the coder to 
correct this?


Thank you
Leo



LB wrote:

Hello

I have more of a latex question but I'm hoping that somebody would
know the answer.

I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
class.

I'm writing a large document with a few chapters, sections and
appendices. What I would like is to have a chapter name, section name
or appendix name appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1"
then on the top of the pages in this chapter I'd like to see "1 Title
of chapter 1". As soon the reader reaches "Section 1.1 Title of
section 1.1" the header would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create
appendix I have in ERT \appendix and then all subsequent chapters
become appendices.

I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%

What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.

\markboth{\chaptername
\ \thechapter.\ #1}{}}

So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
   \markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put
chapter names nor appendix names in the header.  How can I modify this
to include chapter names in the headers?

Thank you very much
Leo




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto







Re: Help with fancyhdr

2007-04-11 Thread LB

Thank you Richard. That worked well.

Leo




LB wrote:

Hello

I have more of a latex question but I'm hoping that somebody would
know the answer.

I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
class.

I'm writing a large document with a few chapters, sections and
appendices. What I would like is to have a chapter name, section name
or appendix name appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1"
then on the top of the pages in this chapter I'd like to see "1 Title
of chapter 1". As soon the reader reaches "Section 1.1 Title of
section 1.1" the header would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create
appendix I have in ERT \appendix and then all subsequent chapters
become appendices.

I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%

What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.

\markboth{\chaptername
\ \thechapter.\ #1}{}}

So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
   \markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put
chapter names nor appendix names in the header.  How can I modify this
to include chapter names in the headers?

Thank you very much
Leo




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto






Re: Help with fancyhdr

2007-04-11 Thread Richard Heck
LB wrote:
> Hello
>
> I have more of a latex question but I'm hoping that somebody would
> know the answer.
>
> I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book
> class.
>
> I'm writing a large document with a few chapters, sections and
> appendices. What I would like is to have a chapter name, section name
> or appendix name appear on the top of the page.
> For example if the current page is from "Chapter 1 Title of chapter 1"
> then on the top of the pages in this chapter I'd like to see "1 Title
> of chapter 1". As soon the reader reaches "Section 1.1 Title of
> section 1.1" the header would change to "1.1 Title of section 1.1"
> I'd like appendices to be handled like chapters. BTW to create
> appendix I have in ERT \appendix and then all subsequent chapters
> become appendices.
>
> I found the following code:
>
> \setlength{\headheight}{15pt}
> \pagestyle{fancy}
> \renewcommand{\chaptermark}[1]{%
What follows marks only the left-hand (odd) pages, and does nothing if
you're using single-sided.
> \markboth{\chaptername
> \ \thechapter.\ #1}{}}
So you probably want either:*
*\markboth{\chaptername\ \thechapter.\ #1}{\chaptername\
\thechapter.\ #1}}
if you're doing double-sided, or:
\markright{\chaptername\ \thechapter.\ #1}
if you're not.

Richard
**
> \fancyhf{}
> \fancyhead[LE,RO]{\thepage}
> \fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
> \fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
> \fancypagestyle{plain}{ %
> \fancyhf{} % remove everything
> \renewcommand{\headrulewidth}{0pt} % remove lines as well
> \renewcommand{\footrulewidth}{0pt}}
>
> which does put the section names in the header but it does not put
> chapter names nor appendix names in the header.  How can I modify this
> to include chapter names in the headers?
>
> Thank you very much
> Leo
>


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Help with fancyhdr

2007-04-11 Thread LB

Hello

I have more of a latex question but I'm hoping that somebody would know the 
answer.


I'm using Lyx 1.4.3 on Windows XP. The document I'm writing is in Book 
class.


I'm writing a large document with a few chapters, sections and appendices. 
What I would like is to have a chapter name, section name or appendix name 
appear on the top of the page.
For example if the current page is from "Chapter 1 Title of chapter 1" then 
on the top of the pages in this chapter I'd like to see "1 Title of chapter 
1". As soon the reader reaches "Section 1.1 Title of section 1.1" the header 
would change to "1.1 Title of section 1.1"
I'd like appendices to be handled like chapters. BTW to create appendix I 
have in ERT \appendix and then all subsequent chapters become appendices.


I found the following code:

\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\chaptername
\ \thechapter.\ #1}{}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{\nouppercase{\leftmark}}}
\fancyhead[LO]{\textit{\nouppercase{\rightmark}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}

which does put the section names in the header but it does not put chapter 
names nor appendix names in the header.  How can I modify this to include 
chapter names in the headers?


Thank you very much
Leo 





Re: fancyhdr font size

2007-02-07 Thread Bob Lounsbury

On 2/7/07, Helge Hafting <[EMAIL PROTECTED]> wrote:


Bob Lounsbury wrote:
> On 2/3/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote:
>>
>> Bob Lounsbury wrote:
>> > Wow, that is definitely smaller than small! I assume there is nothing
>> > in-between \small and \tiny? Thanks for the tip.
>>
>> \footnotesize
>>
>> Cf.
>> http://www.giss.nasa.gov/tools/latex/ltx-178.html
>>
>> Jürgen
>>
>
> Thank you for that! I knew of the sizing above \normalsize, but not
> below.
> The \scriptsize is exactly what I was looking for.
Note that LyX already support lots of font sizes, so an easy way to
find them all is:
1. Make a test document.  Edit text styles, use every size there is.
 Now you can see the different sizew with a test print or view->PDF.
2. Export to latex, that way you find the sizing commands too.

This approach works for many other tex adjustments as well.
Note that the userguide already has examples of all font sizes,
you could simply paste that into your test document. (Wading through
a latex export for the entire userguide could take some time. :-)

Helge Hafting



Great tip! Didn't think of exporting to latex. Thanks.

Bob


Re: fancyhdr font size

2007-02-07 Thread Helge Hafting

Bob Lounsbury wrote:

On 2/3/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote:


Bob Lounsbury wrote:
> Wow, that is definitely smaller than small! I assume there is nothing
> in-between \small and \tiny? Thanks for the tip.

\footnotesize

Cf.
http://www.giss.nasa.gov/tools/latex/ltx-178.html

Jürgen



Thank you for that! I knew of the sizing above \normalsize, but not 
below.

The \scriptsize is exactly what I was looking for.

Note that LyX already support lots of font sizes, so an easy way to
find them all is:
1. Make a test document.  Edit text styles, use every size there is.
Now you can see the different sizew with a test print or view->PDF.
2. Export to latex, that way you find the sizing commands too.

This approach works for many other tex adjustments as well.
Note that the userguide already has examples of all font sizes,
you could simply paste that into your test document. (Wading through
a latex export for the entire userguide could take some time. :-)

Helge Hafting



Re: fancyhdr font size

2007-02-03 Thread Bob Lounsbury

On 2/3/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote:


Bob Lounsbury wrote:
> Wow, that is definitely smaller than small! I assume there is nothing
> in-between \small and \tiny? Thanks for the tip.

\footnotesize

Cf.
http://www.giss.nasa.gov/tools/latex/ltx-178.html

Jürgen



Thank you for that! I knew of the sizing above \normalsize, but not below.
The \scriptsize is exactly what I was looking for.

Thanks again,
Bob


Re: fancyhdr font size

2007-02-03 Thread Jürgen Spitzmüller
Bob Lounsbury wrote:
> Wow, that is definitely smaller than small! I assume there is nothing
> in-between \small and \tiny? Thanks for the tip.

\footnotesize

Cf.
http://www.giss.nasa.gov/tools/latex/ltx-178.html

Jürgen


Re: fancyhdr font size

2007-02-03 Thread Bob Lounsbury

On 2/3/07, Susanne Gütter <[EMAIL PROTECTED]> wrote:


Am Freitag, 2. Februar 2007 22:03 schrieb Bob Lounsbury:
> Is there any way to control this?
>
> I've put '\lhead{\small{foo}}' into the preamble, but I would like the
> header font to be smaller. So, is there a command lower than '\small'?
I've
> tried '\smaller' but LyX doesn't like that. Or another way to accomplish
> this.
>
> Thanks,
> Bob Lounsbury

Hi,

\tiny is smaller than small ;-)

Susanne



Wow, that is definitely smaller than small! I assume there is nothing
in-between \small and \tiny? Thanks for the tip.

Bob


Re: fancyhdr font size

2007-02-03 Thread Susanne Gütter
Am Freitag, 2. Februar 2007 22:03 schrieb Bob Lounsbury:
> Is there any way to control this?
>
> I've put '\lhead{\small{foo}}' into the preamble, but I would like the
> header font to be smaller. So, is there a command lower than '\small'? I've
> tried '\smaller' but LyX doesn't like that. Or another way to accomplish
> this.
>
> Thanks,
> Bob Lounsbury

Hi,

\tiny is smaller than small ;-)

Susanne


fancyhdr font size

2007-02-02 Thread Bob Lounsbury

Is there any way to control this?

I've put '\lhead{\small{foo}}' into the preamble, but I would like the
header font to be smaller. So, is there a command lower than '\small'? I've
tried '\smaller' but LyX doesn't like that. Or another way to accomplish
this.

Thanks,
Bob Lounsbury


Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-27 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 23, Helge Hafting did say:

> 
> \jobname is your friend then. :-)
> 

Thank you!

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFu6APRZ/61mwhY94RAtLmAJwJKIiKWs9VAhPBkUBW2EoekYimMgCdE4EB
C1YcTF18fFDwt2RY3vP1OQQ=
=RzLh
-END PGP SIGNATURE-
-- 
|   ---   ___
|   <0>   <->  Joe (theWordy) Philbrook
|   ^   J(tWdy)P
|~\___/~ <<[EMAIL PROTECTED]>>



Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-23 Thread Helge Hafting

Joe(theWordy)Philbrook wrote:

Well for the simple file name "WhatEver.tex" is just as good as
"WhatEver.lyx"... And I suppose that if I really want a file's actual
pathname to print I could just manually insert it between the curly-braces
of something like \lhead{}. I'd just have to remember to update it if I
moved the file.
  


\jobname is your friend then. :-)

Helge Hafting


Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-15 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 15, Helge Hafting did say:

> Joe(theWordy)Philbrook wrote:
> > Wait let me guess, there is probably a latex command form for both the
> > simple filename and the pathname, right?   
> Unfortunately, you can only get the name of the latex file.
> Now, this is the same as the name of the lyx file, except
> that it ends in .tex instead of .lyx.  So it is still useful.

Well for the simple file name "WhatEver.tex" is just as good as
"WhatEver.lyx"... And I suppose that if I really want a file's actual
pathname to print I could just manually insert it between the curly-braces
of something like \lhead{}. I'd just have to remember to update it if I
moved the file.

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFq8fwRZ/61mwhY94RAowZAJ47LIezlLnjsyr8JYcP8CsbCT/g6ACfWIAP
92sq3NVD1ASpR5FMYKhAUwQ=
=5m2Q
-END PGP SIGNATURE-
-- 
|   ---   ___
|   <0>   <->  Joe (theWordy) Philbrook
|   ^   J(tWdy)P
|~\___/~ <<[EMAIL PROTECTED]>>



Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-15 Thread Helge Hafting

Joe(theWordy)Philbrook wrote:

That makes sense I guess. But all I want to do is to learn to use LyX
instead of Ooffice for most of my writing. I'm not really planing on
becoming a LaTeX expert. Still I suppose I might use google to find an
online manual I could look at for clues now and then.
  

No need to become an expert.  A manual will contain
the easy stuff too - feel free to skip the hard parts.
Often-used stuff, like page number, chapter number/name
and so on tends to be easy enough.  If you don't
find a handy list anywhere, make your own as you collect tips. :-)

Now, if you want some specific thing in your header, such as
date, filename, or the page number in roman numerals - just ask.



Actually I wanted the list of possibles to see if it gave me any ideas.
  

Well - anything goes.  Some things may be harder than
others, buit there are few limits on what you _can_ get somehow.
Anything you can refer to, anything that is automatically numbered
or named can be brought out in the headers if you wish.
That's why I suggest that you ask - if you miss something
your previous word processor could put in the header for you.

Speaking of which you just gave me one. At least I think you did .
When you say filename, do you mean the full pathname of the .lyx file 
such as "/home/jtwdyp/com/lyxSTUFF/ToJim.lyx" or just "ToJim.lyx"???


Wait let me guess, there is probably a latex command form for both the
simple filename and the pathname, right? 
  

Unfortunately, you can only get the name of the latex file.
Now, this is the same as the name of the lyx file, except
that it ends in .tex instead of .lyx.  So it is still useful.

The way lyx manages files means that the path only
is the path to the temporary directory lyx uses for
conversions and processing.  It is done this way
because latex makes tons of little files while running -
it is nice not having to clean up all of them in a careful
way.  The entire temporary directory is deleted when
you close lyx, which is easier to do.

Adding a filename reference to lyx might be useful - but it
can't happen until 1.6 as version 1.5 is in feature freeze
right now.

Helge Hafting


Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-11 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 11, Helge Hafting did say:

> Joe(theWordy)Philbrook wrote:
> > Still haven't found a useful "list" yet But ...

 - - - - - - - - -< s n i p >- - - - - - - - - -

> Well, I don't know any such lists.  The problem is, you can put
> just about any latex command in the header. (Well, a page
> break would be really stupid, but anything that produce
> a "small" amount of output would work in a header.) 
> There are thousands of latex commands, so it is hard to make
> a complete list.  That's why I suggested a latex manual,
> they list everything and you can pick what you want.
> Latex really is a programming language aimed at typesetting.
> There are a few good manuals. You can look up anything,
> from simple stuff like getting a page number or section name
> in the header, all the way to complicated stuff like
> programming an entire new latex add-on package.

That makes sense I guess. But all I want to do is to learn to use LyX
instead of Ooffice for most of my writing. I'm not really planing on
becoming a LaTeX expert. Still I suppose I might use google to find an
online manual I could look at for clues now and then.

> Now, if you want some specific thing in your header, such as
> date, filename, or the page number in roman numerals - just ask.

Actually I wanted the list of possibles to see if it gave me any ideas.
Speaking of which you just gave me one. At least I think you did .
When you say filename, do you mean the full pathname of the .lyx file 
such as "/home/jtwdyp/com/lyxSTUFF/ToJim.lyx" or just "ToJim.lyx"???

Wait let me guess, there is probably a latex command form for both the
simple filename and the pathname, right? 
 
 In any case. Thanks again for all the great help you so kindly gave me.
For even if I never learn any more of the underlying LaTeX, I now have
enough to make LyX as useful for personal correspondence as it already
was for more formal uses. This ensures that I'll use it enough to get
comfortable with it. 

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpsrhRZ/61mwhY94RAhXXAKCHK+4WlNNxIf0nSXK3+s6MI52AwACeNX3p
GzVkPe0dE13FWkroYSggyRk=
=ibgg
-END PGP SIGNATURE-
-- 
|   ---   ___
|   <0>   <->  Joe (theWordy) Philbrook
|   ^   J(tWdy)P
|~\___/~ <<[EMAIL PROTECTED]>>



Re: [update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-11 Thread Helge Hafting

Joe(theWordy)Philbrook wrote:

Still haven't found a useful "list" yet But it was during this search
that I tripped over instructions to use the TeX icon to insert ERTs 
so I'm glad I went there...


I'd still like to find a good index/list of values that can be inserted
to the header, footer (and/or I suspect inside the document body via
ERTs) But you've given me enough to make me sure that I can use lyx for
most of my writing needs. Now I can focus mostly on my writing,
confident that I'll like letting lyx take care of MOST of the
typesetting details...
  

Well, I don't know any such lists.  The problem is, you can put
just about any latex command in the header. (Well, a page
break would be really stupid, but anything that produce
a "small" amount of output would work in a header.) 


There are thousands of latex commands, so it is hard to make
a complete list.  That's why I suggested a latex manual,
they list everything and you can pick what you want.
Latex really is a programming language aimed at typesetting.
There are a few good manuals. You can look up anything,
from simple stuff like getting a page number or section name
in the header, all the way to complicated stuff like
programming an entire new latex add-on package.

Now, if you want some specific thing in your header, such as
date, filename, or the page number in roman numerals - just ask.


Helge Hafting


Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-10 Thread Joe(theWordy)Philbrook

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 10, Helge Hafting did say:


Are you changing the .lyx file directly with some kind of
text editor?  You are not supposed to do that!


- - - - - - - - -< s n i p >- - - - - - - - - -


Never mess with the .lyx file unless you know what you do.
Latex commands either go in boxes of their own (insert->tex code)
or sometimes in the document preamble which you find in
the document settings dialog.


Good deductive reasoning, and as I now know, very good advice...
Actually I said something to that effect in my "update" reply which I
sent before I caught up on downloading my mailboxes...

Thanks again!

  #
  ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
  ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
  ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
  #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
  # You can find my public gpg key at http://pgpkeys.mit.edu/ #
  #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpZtkRZ/61mwhY94RAtuiAKDJ5tKnvbPZy1BUPDOAcf2D2bh6ywCgh8iO
Wj+LZOfo08t7ecoArVmjIK0=
=Uu1U
-END PGP SIGNATURE-
--
|   ---   ___
|   <0>   <->  Joe (theWordy) Philbrook
|   ^   J(tWdy)P
|~\___/~ <<[EMAIL PROTECTED]>>

If I actually knew everything, then I'd know I was an idiot...



[update] Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-10 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

> Joe(theWordy)Philbrook wrote:
> > Question 1 of 3
> > 
> > Why is the header/footer suppressed on page 1? That is how can I get
> > headers and/or footers to output on the first page???

 - - - - - - - - -< s n i p >- - - - - - - - - -

> Usually, \thispagestyle{fancy} will do the trick though.
> Make sure you put this ERT somewhere on the page you want changed.

Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. 

 - - - - - - - - -< s n i p >- - - - - - - - - -

Ok, now I feel stupid: I'll confess I was trying to insert it to the 
filename.lyx file with vim... {Possible if I understood how, but...}
I strongly dislike controlling my software via the mouse so I never
noticed that the TeX icon had help text referring to the unfamiliar term
Evil Red Text. And so didn't yet understand the function of "M-i t" or
"C-l" key bindings.

Which I'll admit is a lot easier than using vim to put all this:

\begin_inset ERT
status Open

\layout Standard

\backslash 
thispagestyle{fancy}
\end_inset 

Just to get this ERT:

\thispagestyle{fancy}

 - - - - - - - - -< s n i p >- - - - - - - - - -

> > Question 3 of 3
> > 
> > Is there a list of {key words?} that can be used to insert values into
> > header/footers such as
> > 
> > /thepage   current output page number
> > /today Today's date
> > etc...

> Sure, any latex reference manual should do.  Also, search
> the web. The LyX homepage have some pointers.

So using the acronym you used above as a guide, I'm guessing I
might find what I'm looking for if I google:

latex ERT

Still haven't found a useful "list" yet But it was during this search
that I tripped over instructions to use the TeX icon to insert ERTs 
so I'm glad I went there...

I'd still like to find a good index/list of values that can be inserted
to the header, footer (and/or I suspect inside the document body via
ERTs) But you've given me enough to make me sure that I can use lyx for
most of my writing needs. Now I can focus mostly on my writing,
confident that I'll like letting lyx take care of MOST of the
typesetting details...

Thanks again Helge!

Joe

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpZOxRZ/61mwhY94RArQaAJ9JdXEpFeGHdB3IuGHZLvprHhW5EACfai/A
nYZ4OVP5vH65nJZQ8s+V7x4=
=j96d
-END PGP SIGNATURE-
-- 
|^^^   ^^^  
|   Guess I just didn't know.
|^  Joseph (the Wordy) Philbrook
|   ___ J(tWdy)P 
|<[EMAIL PROTECTED]>  
| 



Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-10 Thread Helge Hafting

Joe(theWordy)Philbrook wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

  

Joe(theWordy)Philbrook wrote:


Question 1 of 3

Why is the header/footer suppressed on page 1? That is how can I get
headers and/or footers to output on the first page???
  


  

Because you changed the "page style" for normal pages,
and the first page isn't normal in this case.



Yeah that figures...

  

Usually, the first page is either a chapter page (if
your document style support chapters) or a title
page. Lyx does not suppot changing the chapter/title
page styles directly.  You may use ERT
to set \chapterpagestyle to fancy if you wish.
Note that some document styles don't use
chapterpagestyle or titlepagestyle, they have other ways.

Usually, \thispagestyle{fancy} will do the trick though.
Make sure you put this ERT somewhere on the page you want changed.



Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. As it happens the document I used
to try to do this with says:
\textclass letter

But when I try to insert either chapterpagestyle or thispagestyle
by, for example, changing this:

\layout Opening

Dear Jim,
\layout Standard

Well Hello Jim.


To this:

\layout Opening

Dear Jim,
\layout Standard

\thispagestyle{fancy}

Well Hello Jim.


What I get on opening the doc with lyx is An error pop-up that says:

"Textclass Loading Error!"
  

Are you changing the .lyx file directly with some kind of
text editor?  You are not supposed to do that!

Open your working file with lyx.
Place the cursor somewhere on the first page.
Use the menu "Insert->Tex Code". (Or click the toolbar button
with the word TeX in red.)
You should get a little box with red borders. Inside this
box, type
\thispagestyle{fancy}
Then move the cursor out of the box so you don't type anything
else there.

Now try "view->DVI" or "view->pdf", see if you get the
page layout you want. I get a letter with a fancy first page.
I have attached an example file, but be warned that it
is made with a develpoment version of lyx.  That's all I have
right now.

"Encountered unknown token
When reading" [filename]

Since the only place in my document's control codes I see braces "{}"
I also tried:

\thispagestyle fancy

With the same results (sigh!)

Any other suggestions?
  

Never mess with the .lyx file unless you know what you do.
Latex commands either go in boxes of their own (insert->tex code)
or sometimes in the document preamble which you find in
the document settings dialog.

Helge Hafting


fancyletter.lyx
Description: application/lyx


Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-09 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It would appear that on Jan 8, Helge Hafting did say:

> Joe(theWordy)Philbrook wrote:
> > Question 1 of 3
> > 
> > Why is the header/footer suppressed on page 1? That is how can I get
> > headers and/or footers to output on the first page???

> Because you changed the "page style" for normal pages,
> and the first page isn't normal in this case.

Yeah that figures...

> Usually, the first page is either a chapter page (if
> your document style support chapters) or a title
> page. Lyx does not suppot changing the chapter/title
> page styles directly.  You may use ERT
> to set \chapterpagestyle to fancy if you wish.
> Note that some document styles don't use
> chapterpagestyle or titlepagestyle, they have other ways.
> 
> Usually, \thispagestyle{fancy} will do the trick though.
> Make sure you put this ERT somewhere on the page you want changed.

Thanks for the prompt reply and the informative suggestion. However I
get an error message when I try this. As it happens the document I used
to try to do this with says:
\textclass letter

But when I try to insert either chapterpagestyle or thispagestyle
by, for example, changing this:

\layout Opening

Dear Jim,
\layout Standard

Well Hello Jim.


To this:

\layout Opening

Dear Jim,
\layout Standard

\thispagestyle{fancy}

Well Hello Jim.


What I get on opening the doc with lyx is An error pop-up that says:

"Textclass Loading Error!"

"Encountered unknown token
When reading" [filename]

Since the only place in my document's control codes I see braces "{}"
I also tried:

\thispagestyle fancy

With the same results (sigh!)

Any other suggestions?

> > Question 2 of 3
> > 
> > Evidently "\rhead{Page \thepage}" yields: "Page $currentpage"
> > But how would I get "Page $currentpage of $pagecount"???
> > 
> > That is "page 1 of 3", "page 2 of 3", "Page 3 of 3" etc...

> Simple approach: put a label at the end of the document.
> Then, use a reference to that label for getting the last page number.
> There are also latex packages for doing this sort of thing, but no
> support in LyX. Try this in the preamble:
> \lhead{My pagenumber: \thepage{} of \pageref{last}}

\size huge
THANK YOU VERY MUCH!
\size default

This seams to work as long as I use the exact label name I put at the
end of the document in my case that's:
\lhead{My pagenumber: \thepage{} of \pageref{LastPage}}

> > Question 3 of 3
> > 
> > Is there a list of {key words?} that can be used to insert values into
> > header/footers such as
> > 
> > /thepage   current output page number
> > /today Today's date
> > etc...

> Sure, any latex reference manual should do.  Also, search
> the web. The LyX homepage have some pointers.

So using the acronym you used above as a guide, I'm guessing I
might find what I'm looking for if I google:

latex ERT

Worth a try anyway.

Thanks again!

   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFpChMRZ/61mwhY94RApo6AKCJtdqglzGj73037bNMqxhM0vv2GQCfcyS5
BqWyzhoSxjO+EDi/hBTultY=
=3nu9
-END PGP SIGNATURE-
-- 
|  ~^~   ~^~
|  Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ <<[EMAIL PROTECTED]>>



Re: fancyhdr! It's working. BUT 3 questions ...

2007-01-08 Thread Helge Hafting

Joe(theWordy)Philbrook wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm using lyx 1.3.7 on kubuntu linux (Dapper)

I started with the included letter template which I modified the margins
etc... for a NON business letter to my brother.

Then I used it to play with the fancy header example in the Extended
features manual. It took me a while to figure out that I couldn't use
\lhead{Section \thesection} in the letter if I wanted stable results...

Question 1 of 3

Why is the header/footer suppressed on page 1? That is how can I get
headers and/or footers to output on the first page???
  

Because you changed the "page style" for normal pages,
and the first page isn't normal in this case.

Usually, the first page is either a chapter page (if
your document style support chapters) or a title
page. Lyx does not suppot changing the chapter/title
page styles directly.  You may use ERT
to set \chapterpagestyle to fancy if you wish.
Note that some document styles don't use
chapterpagestyle or titlepagestyle, they have other ways.

Usually, \thispagestyle{fancy} will do the trick though.
Make sure you put this ERT somewhere on the page you want changed.



Question 2 of 3

Evidently "\rhead{Page \thepage}" yields: "Page $currentpage"
But how would I get "Page $currentpage of $pagecount"???

That is "page 1 of 3", "page 2 of 3", "Page 3 of 3" etc...
  

Simple approach: put a label at the end of the document.
Then, use a reference to that label for getting the last page number.
There are also latex packages for doing this sort of thing, but no
support in LyX. Try this in the preamble:
\lhead{My pagenumber: \thepage{} of \pageref{last}}


Question 3 of 3

Is there a list of {key words?} that can be used to insert values into
header/footers such as

/thepage   current output page number
/today Today's date
etc...
  

Sure, any latex reference manual should do.  Also, search
the web. The LyX homepage have some pointers.

Helge Hafting


fancyhdr! It's working. BUT 3 questions ...

2007-01-07 Thread Joe(theWordy)Philbrook
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm using lyx 1.3.7 on kubuntu linux (Dapper)

I started with the included letter template which I modified the margins
etc... for a NON business letter to my brother.

Then I used it to play with the fancy header example in the Extended
features manual. It took me a while to figure out that I couldn't use
\lhead{Section \thesection} in the letter if I wanted stable results...

Question 1 of 3

Why is the header/footer suppressed on page 1? That is how can I get
headers and/or footers to output on the first page???


Question 2 of 3

Evidently "\rhead{Page \thepage}" yields: "Page $currentpage"
But how would I get "Page $currentpage of $pagecount"???

That is "page 1 of 3", "page 2 of 3", "Page 3 of 3" etc...


Question 3 of 3

Is there a list of {key words?} that can be used to insert values into
header/footers such as

/thepage   current output page number
/today Today's date
etc...

Much thanks in advance.




   #
   ##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
   ##message_as_an_mime_encoded_attachment,just_ask_me_while__##
   ##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
   #gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
   # You can find my public gpg key at http://pgpkeys.mit.edu/ #
   #
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFoT5bRZ/61mwhY94RApZpAKC71TVT0ZcaPxT4lXs7tb5q06EUYwCdGydx
Nz+fagGzW57r6u3c4wVcvmg=
=x2r4
-END PGP SIGNATURE-
-- 
|  ~^~   ~^~
|  Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ <<[EMAIL PROTECTED]>>



Re: fancyhdr

2006-07-12 Thread Ingo Klöcker
On Wednesday 12 July 2006 21:04, Jeremy Johnson wrote:
> I have a fax cover sheet in .tex
> which I'd like to convert to .lyx
>
> I can't seem to get my headers/footers to
> appear though. (For my footer all I get is
> the numeral '1' centered).
>
>
> In my preamble I have the following:
>
> \usepackage{fancyhdr}
> \newcommand{\faxletterhead}{\noindent {\begin{tabular* .}
> \newcommand{\CONFIDENTIALITY}{This fax is intended for the ...}
>
> \fancyhf{}
> \fancyfoot[LO]{\CONFIDENTIALITY}
> \renewcommand{\footrulewidth}{0.5pt}
>
> \fancyhf[CO]{\faxletterhead}
> \addtolength{\headheight}{20pt}
> \renewcommand{\headrulewidth}{0.0pt}

You seem to have forgotten
\pagestyle{fancy}

Regards,
Ingo


pgpXkC71NBGZN.pgp
Description: PGP signature


fancyhdr

2006-07-12 Thread Jeremy Johnson
I have a fax cover sheet in .tex
which I'd like to convert to .lyx

I can't seem to get my headers/footers to
appear though. (For my footer all I get is
the numeral '1' centered).


In my preamble I have the following:

\usepackage{fancyhdr}
\newcommand{\faxletterhead}{\noindent {\begin{tabular* .}
\newcommand{\CONFIDENTIALITY}{This fax is intended for the ...}

\fancyhf{}
\fancyfoot[LO]{\CONFIDENTIALITY}
\renewcommand{\footrulewidth}{0.5pt}

\fancyhf[CO]{\faxletterhead}
\addtolength{\headheight}{20pt}
\renewcommand{\headrulewidth}{0.0pt}


Re: previous headers on blank page before new chapter and using fancyhdr?

2006-01-23 Thread Jeremy C. Reed
On Thu, 5 Jan 2006, Jeremy C. Reed wrote:

> My problem is that a header from a previous page is shown on a following page
> that is at the end of a chapter and is also blank. So my blank left even page
> has a header (showing the previous section name) and my right odd page is a
> different chapter. I'd prefer that it didn't have different information in
> this case.

For the archives...

I now have a blank page with only a centered page number at bottom with:


\makeatletter
[EMAIL PROTECTED] [EMAIL PROTECTED]
  \hbox{}
  \vspace{\fill}
  \thispagestyle{plain}
  \newpage
  [EMAIL PROTECTED]
\makeatother

I got idea from fancyhdr.dvi documentation.


 Jeremy C. Reed

 technical support & remote administration
 http://www.pugetsoundtechnology.com/


previous headers on blank page before new chapter and using fancyhdr?

2006-01-05 Thread Jeremy C. Reed
I am using lyx 1.3.6 (qt) with teTex 3.0. I am using koma-script book 
document class with "fancy" page style.


My problem is that a header from a previous page is shown on a following 
page that is at the end of a chapter and is also blank. So my blank left 
even page has a header (showing the previous section name) and my right 
odd page is a different chapter. I'd prefer that it didn't have different 
information in this case.


I now see this mentioned in fancyhdr.dvi (section 16 "Those blank pages"). 
How would I integrate this into LyX?


I am trying in my preamble:

[EMAIL PROTECTED] [EMAIL PROTECTED]
  \thispagestyle{empty}
  \newpage
  \fi\fi}

But now my even blank pages are missing (and my left pages have odd 
numbers).


Any examples would be appreciated so I don't see previous chapter 
information on my empty left page.


All blank would be fine or having the book name as the header with a rule 
at top with a page number at bottom would be good too.


 Jeremy C. Reed

 BSD News, BSD tutorials, BSD links
 http://www.bsdnewsletter.com/


Re: Fancyhdr doesn't work with Memoir

2005-12-25 Thread Marc Jeffrey Driftmeyer

Try,

\usepackage{fancyheadings}

in the Preamble.

Make sure you have the latest memoir class package.

http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/

- Marc

Steve Litt wrote:


Hi all,

Be aware that fancyhdr doesn't work with the Memoir document class. 
It gives an error about so and so already defined.


Memoir has its own functions that accomplish the same thing as 
fancyhdr. What I do is set my LyX document to "plain" page type in 
LyX, and then code how "plain" does headers. Here's my header code 
for my book:



\renewcommand{\partmark}[1]{\markboth{\footnotesize{}Part \thepart : 
#1}{}}

[EMAIL PROTECTED]
[EMAIL PROTECTED] [#1]{#2}\partmark{#1}}
\renewcommand{\chaptermark}[1]{\markright{\small{}#1}}
\renewcommand{\sectionmark}[1]{}

\makepagestyle{pgonly}
\makeoddfoot{pgonly}{}{\thepage}{}
\makeoddfoot{pgonly}{}{\thepage}{}
\makeevenfoot{pgonly}{}{}{}
\makeevenfoot{pgonly}{}{}{}

\aliaspagestyle{part}{pgonly}
\aliaspagestyle{chapter}{pgonly}

\makeevenhead{plain}{\leftmark}{}{\thepage}
\makeoddhead{plain}{\thepage}{}{\rightmark}
\makeevenfoot{plain}{}{}{}
\makeoddfoot{plain}{}{}{}

\makeevenhead{cleared}{}{}{}
\makeoddhead{cleared}{}{}{}
\makeevenfoot{cleared}{}{\thepage}{}
\makeoddfoot{cleared}{}{\thepage}{}
\makeheadrule{plain}{\textwidth}{1pt}


SteveT

Steve Litt
Author: 
  * Universal Troubleshooting Process courseware

  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com
 



--
Marc J. Driftmeyer
Email :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Web :: http://www.reanimality.com
Cell :: (509) 435-5212


Fancyhdr doesn't work with Memoir

2005-12-21 Thread Steve Litt
Hi all,

Be aware that fancyhdr doesn't work with the Memoir document class. 
It gives an error about so and so already defined.

Memoir has its own functions that accomplish the same thing as 
fancyhdr. What I do is set my LyX document to "plain" page type in 
LyX, and then code how "plain" does headers. Here's my header code 
for my book:


\renewcommand{\partmark}[1]{\markboth{\footnotesize{}Part \thepart : 
#1}{}}
[EMAIL PROTECTED]
[EMAIL PROTECTED] [#1]{#2}\partmark{#1}}
\renewcommand{\chaptermark}[1]{\markright{\small{}#1}}
\renewcommand{\sectionmark}[1]{}

\makepagestyle{pgonly}
\makeoddfoot{pgonly}{}{\thepage}{}
\makeoddfoot{pgonly}{}{\thepage}{}
\makeevenfoot{pgonly}{}{}{}
\makeevenfoot{pgonly}{}{}{}

\aliaspagestyle{part}{pgonly}
\aliaspagestyle{chapter}{pgonly}

\makeevenhead{plain}{\leftmark}{}{\thepage}
\makeoddhead{plain}{\thepage}{}{\rightmark}
\makeevenfoot{plain}{}{}{}
\makeoddfoot{plain}{}{}{}

\makeevenhead{cleared}{}{}{}
\makeoddhead{cleared}{}{}{}
\makeevenfoot{cleared}{}{\thepage}{}
\makeoddfoot{cleared}{}{\thepage}{}
\makeheadrule{plain}{\textwidth}{1pt}


SteveT

Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
   * Troubleshooters.Com
   * http://www.troubleshooters.com


Rv: problems with quotes and fancyhdr

2005-09-29 Thread Marcelo Acuÿfffff1a



Hi all,
I have two problems with quotes.
Too, I have problems with spellchekers from
version 1.3.6 of Lyx.
Please, see example.
Thanks.
Marcelo 

 
#LyX 1.3 created this file. For more info see http://www.lyx.org/\lyxformat 221\textclass scrbook\begin_preamble\usepackage[latin1]{inputenc}\date{}\usepackage[T1]{fontenc}\usepackage[flushmargin]{footmisc}\clubpenalty=\widowpenalty=\displaywidowpenalty=\usepackage{textcomp}\usepackage{fancyhdr}\pagestyle{fancy}\usepackage{dropping}\fancyhead{ }\fancyfoot{ }\renewcommand{\chaptermark}[1]{\markboth{#1}{}}\newcommand{\helv}{\fontfamily{helv}\fontseries{b}\fontsize{9}{11}\selectfont}\fancyhead[RE]{\small Problems with fancyhdr}\fancyhead[LE,RO]{\small \thepage}\fancyhead[LO]{\small \rightmark}\end_preamble\language spanish\inputencoding auto\fontscheme pslatex\graphics default\paperfontsize 12\spacing single \papersize Custom\paperpackage a4\use_geometry 1\use_amsmath 0\use_natbib 0\use_numerical_citations 0\paperorientation
 portrait\paperwidth 18.2cm\paperheight 25.7cm\secnumdepth 3\tocdepth 3\paragraph_separation indent\defskip medskip\quotes_language french\quotes_times 2\papercolumns 2\papersides 2\paperpagestyle fancy\layout AuthorMarcelo Acuña\layout TitleI have problems with quotes\newline and accents\layout Addchap*Prologue\layout Standard\emph on Hello everyone.What I´m about to show you isn´t a problem but I thought I should callyour attention to it.I marked this chapter* with \begin_inset Quotes fld\end_inset add chapter*\begin_inset Quotes frd\end_inset (a Koma script book option).And I Thought it was enough in order for it to show up in TOC.But it wasn´t and I had to enter an ERT with \begin_inset Quotes fld\end_inset \backslash addcontentsline \SpecialChar \ldots{}\begin_inset Quotes
 frd\end_inset .I don´t know if I mis understood the \begin_inset Quotes fld\end_inset add chapter*\begin_inset Quotes frd\end_inset function or if it simply doesn´t work.\layout Standard\added_space_top bigskip \emph on Folowing text in this chapter* is filler.\layout Standard\emph on Of the origin of the kingdom of the Tartars--of the quarter from whencethey came--and of their former subjection to Un-khan, a prince of the north,called also Prester John.\layout Standard\emph on To him these Tartars paid yearly the tenth part of the increase of theircattle.In time the tribe multiplied so exceedingly that Un-khan, that is to say,Prester John, becoming apprehensive of their strength, conceived the planof separating them into different bodies, who should take up their abodein distinct tracts of country.With this view also, whenever the occasion
 presented itself, such as arebellion in any of the provinces subject to him, he drafted three or fourhundred of these people, to be employed on the service of quelling it,and thus their power was gradually diminished.\layout Chapter*Introduction\begin_inset ERTstatus Open\layout Standard\backslash addcontentsline{toc}{chapter}{\backslash protect\backslash numberline{}Introduction}\end_inset \newline \SpecialChar ~\newline \SpecialChar ~\newline \layout Standard\begin_inset ERTstatus Open\layout Standard\backslash dropping{3}{I}\end_inset use Koma script book style with two columns and the fancyhdr package anddropping package.I use Suse Linux 9.3 and Lyx 1.3.6 (installed with lyx-1.3.6-1suse92_qt.i586.rpmfile).\layout Standard\added_space_top bigskip Folowing text in this chapter* is
 filler.\layout StandardOf the origin of the kingdom of the Tartars--of the quarter from whencethey came--and of their former subjection to Un-khan, a prince of the north,called also Prester John.\layout StandardTo him these Tartars paid yearly the tenth part of the increase of theircattle.In time the tribe multiplied so exceedingly that Un-khan, that is to say,Prester John, becoming apprehensive of their strength, conceived the planof separating them into different bodies, who should take up their abodein distinct tracts of country.With this view also, whenever the occasion presented itself, such as arebellion in any of the provinces subject to him, he drafted three or fourhundred of these people, to be employed on the service of quelling it,and thus their power was gradually diminished.\layout ChapterDescription of the severe problems\layout SectionHere are the two most severe problems I
 have\layout ItemizeProblems with spellchecker from version 1.3.6.\layout ItemizeProblems with fancyhdr and quotes.\layout StandardI have several problems even with version 1.3.5 with the accents but the spellchecker worked.Now it accepts all words with accented letters with differents characters,and, of course, it doesn´t find it in the dictionary.\layout StandardThe most several problem with fancyhdr started when I decided to use twocolumns.Then I decided not to use the quote paragraph style with long quotes becausea whole page with two thin columms doesn´t look good, and I opted for usingquote marks at beginning and end of the citation.\layout

problems with quotes and fancyhdr

2005-09-26 Thread Marcelo Acuÿfffff1a

Hi all,
I have two problems with quotes with
fancyhdr packages.
Please, see example.
Thanks.
Marcelo 
		 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
Abrí tu cuenta aquí#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrbook
\begin_preamble
\usepackage[latin1]{inputenc}
\date{}
\usepackage[T1]{fontenc}
\usepackage[flushmargin]{footmisc}
\clubpenalty=
\widowpenalty=
\displaywidowpenalty=
\usepackage{textcomp}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{dropping}
\fancyhead{ }
\fancyfoot{ }
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\newcommand{\helv}{\fontfamily{helv}\fontseries{b}\fontsize{9}{11}\selectfont}
\fancyhead[RE]{\small Problems with fancyhdr}
\fancyhead[LE,RO]{\small \thepage}
\fancyhead[LO]{\small \rightmark}
\end_preamble
\language spanish
\inputencoding auto
\fontscheme pslatex
\graphics default
\paperfontsize 12
\spacing single 
\papersize Custom
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 18.2cm
\paperheight 25.7cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 2
\papersides 2
\paperpagestyle fancy

\layout Author

Marcelo Acuña
\layout Title

I have problems with quotes
\newline 
and accents
\layout Addchap*

Prologue
\layout Standard


\emph on 
Hello everyone.
 What I´m about to show you isn´t a problem but I thought I should call
 your attention to it.
 I marked this chapter* with 
\begin_inset Quotes fld
\end_inset 

add chapter*
\begin_inset Quotes frd
\end_inset 

 (a Koma script book option).
 And I Thought it was enough in order for it to show up in TOC.
 But it wasn´t and I had to enter an ERT with 
\begin_inset Quotes fld
\end_inset 


\backslash 
addcontentsline \SpecialChar \ldots{}

\begin_inset Quotes frd
\end_inset 

.
 I don´t know if I mis understood the 
\begin_inset Quotes fld
\end_inset 

add chapter*
\begin_inset Quotes frd
\end_inset 

 function or if it simply doesn´t work.
\layout Standard
\added_space_top bigskip 

\emph on 
Folowing text in this chapter* is filler.
\layout Standard


\emph on 
Of the origin of the kingdom of the Tartars--of the quarter from whence
 they came--and of their former subjection to Un-khan, a prince of the north,
 called also Prester John.
 
\layout Standard


\emph on 
To him these Tartars paid yearly the tenth part of the increase of their
 cattle.
 In time the tribe multiplied so exceedingly that Un-khan, that is to say,
 Prester John, becoming apprehensive of their strength, conceived the plan
 of separating them into different bodies, who should take up their abode
 in distinct tracts of country.
 With this view also, whenever the occasion presented itself, such as a
 rebellion in any of the provinces subject to him, he drafted three or four
 hundred of these people, to be employed on the service of quelling it,
 and thus their power was gradually diminished.
\layout Chapter*

Introduction
\begin_inset ERT
status Open

\layout Standard

\backslash 
addcontentsline{toc}{chapter}{
\backslash 
protect
\backslash 
numberline{}Introduction}
\end_inset 


\newline 
\SpecialChar ~

\newline 
\SpecialChar ~

\newline 

\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
dropping{3}{I}
\end_inset 

 use Koma script book style with two columns and the fancyhdr package and
 dropping package.
 I use Suse Linux 9.3 and Lyx 1.3.6 (installed with 
lyx-1.3.6-1suse92_qt.i586.rpm
 file).
\layout Standard
\added_space_top bigskip 
Folowing text in this chapter* is filler.
\layout Standard

Of the origin of the kingdom of the Tartars--of the quarter from whence
 they came--and of their former subjection to Un-khan, a prince of the north,
 called also Prester John.
 
\layout Standard

To him these Tartars paid yearly the tenth part of the increase of their
 cattle.
 In time the tribe multiplied so exceedingly that Un-khan, that is to say,
 Prester John, becoming apprehensive of their strength, conceived the plan
 of separating them into different bodies, who should take up their abode
 in distinct tracts of country.
 With this view also, whenever the occasion presented itself, such as a
 rebellion in any of the provinces subject to him, he drafted three or four
 hundred of these people, to be employed on the service of quelling it,
 and thus their power was gradually diminished.
\layout Chapter

Description of the severe problems
\layout Section

Here are the two most severe problems I have
\layout Itemize

Problems with spellchecker from version 1.3.6.
\layout Itemize

Problems with fancyhdr and quotes.
\layout Standard

I have several problems even with version 1.3.5 with the accents but the 
spellchec
ker worked.
 Now it accepts all words with accented letters with differents characters,
 and, of course, it doesn´t find it in the dictionary.
\layout

problems with quotes and fancyhdr (bug?)

2005-08-11 Thread Marcelo Acuÿfffff1a
Hi all,
I have Lyx 1.3.6 (with 1.3.5 same problem) and Linux.
I writing a book with koma script style, two columns, 
fancyhdr package.
I make quotations by this way: I took paragraphs and 
put quotes at the begining of the paragraph and 
at the end of it.
If I make this with several paragraph and this span along
two pages a strange behavior took place in output (DVI):
quotes appears in the headers and footers, in headers
 one in the left, one in center and other in rigth, same 
in footer, only in page with this quotes.
title of book, author name, etc. no appears, 
quotes and page numbers appears.
When this bug appears other wanted thing appears:
at begin of paragraph an extra quotes appears.
What happens? How I can correct this?
 
e.g.:
"Blah blah blah blah.
"Blah blah.
"Blah blah blah".
Second and third quotes are put by Lyx (or Latex)
 
If I have fancyhdr quotes appears in header and footer.
 
Thanks
Marcelo Acuña
 



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

Re: Fancyhdr

2005-04-11 Thread Geoffrey Lloyd
And.(excuse me for reply to my own thread)
but it seems that the fancyhdr format is not used on Chapter title pages. 
This is fine for the header (it would look silly), but it also shifts my 
page numbers back to the middle of the footer - i assume the default for 
plainpage.

Any way to over ride this
Geoff
On Mon, 11 Apr 2005, Geoffrey Lloyd wrote:
Hi
Many thanks for the help so far, list and Steve.  I now have a further issue. 
In my fancy header preamble i set the header and also the page number as a 
footer.  However on one of my pages (the abstract) I only want the page 
number.  How can i force this page to not include the header, just the 
footer.

Geoff
On Mon, 11 Apr 2005, Steve Litt wrote:
On Monday 11 April 2005 06:18 am, Geoffrey Lloyd wrote:
Hi
I am tyring to use the fancy header package to put a header (no less!)
across the top of my thesis document.  However the layout I want I cant
seem to get.
I would like
Chapter # (fully aligned left)Chapter Title (fully aligned right)
It strikes me that these are controlled by the same label.  Is there any
way to split them up??
Geoff
Hi Geoff,
It's been a long time since I did this, but IIRC I did it. The 
documentation
is here:

http://www.troubleshooters.com/lpm/200210/200210.htm#_HeadersandFooters
Note that the chapter number is available as \thechapter, while the actual
chapter title is available, from a callback, as #1.
Read the abovereferenced URL and I think you'll be successful.
SteveT
Steve Litt
Author:
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com



Re: Fancyhdr

2005-04-11 Thread Geoffrey Lloyd
Hi
Many thanks for the help so far, list and Steve.  I now have a further 
issue.  In my fancy header preamble i set the header and also the page 
number as a footer.  However on one of my pages (the abstract) I only want 
the page number.  How can i force this page to not include the header, 
just the footer.

Geoff
On Mon, 11 Apr 2005, Steve Litt wrote:
On Monday 11 April 2005 06:18 am, Geoffrey Lloyd wrote:
Hi
I am tyring to use the fancy header package to put a header (no less!)
across the top of my thesis document.  However the layout I want I cant
seem to get.
I would like
Chapter # (fully aligned left)Chapter Title (fully aligned right)
It strikes me that these are controlled by the same label.  Is there any
way to split them up??
Geoff
Hi Geoff,
It's been a long time since I did this, but IIRC I did it. The documentation
is here:
http://www.troubleshooters.com/lpm/200210/200210.htm#_HeadersandFooters
Note that the chapter number is available as \thechapter, while the actual
chapter title is available, from a callback, as #1.
Read the abovereferenced URL and I think you'll be successful.
SteveT
Steve Litt
Author:
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com


Re: Fancyhdr

2005-04-11 Thread Steve Litt
On Monday 11 April 2005 06:18 am, Geoffrey Lloyd wrote:
> Hi
>
> I am tyring to use the fancy header package to put a header (no less!)
> across the top of my thesis document.  However the layout I want I cant
> seem to get.
>
> I would like
>
> Chapter # (fully aligned left)Chapter Title (fully aligned right)
>
> It strikes me that these are controlled by the same label.  Is there any
> way to split them up??
>
> Geoff

Hi Geoff,

It's been a long time since I did this, but IIRC I did it. The documentation 
is here:

http://www.troubleshooters.com/lpm/200210/200210.htm#_HeadersandFooters

Note that the chapter number is available as \thechapter, while the actual 
chapter title is available, from a callback, as #1.

Read the abovereferenced URL and I think you'll be successful.

SteveT

 
Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
   * Troubleshooters.Com
   * http://www.troubleshooters.com


Fancyhdr

2005-04-11 Thread Geoffrey Lloyd
Hi
I am tyring to use the fancy header package to put a header (no less!) 
across the top of my thesis document.  However the layout I want I cant 
seem to get.

I would like
Chapter # (fully aligned left)Chapter Title (fully aligned right)
It strikes me that these are controlled by the same label.  Is there any 
way to split them up??

Geoff


Re: fancyhdr

2004-07-18 Thread Herbert Voss
Hartmut Haase wrote:
I'm using fancyhdr with the following ERT-commands for the headers:
\fancyhead[LE,RO]{\sffamily \thepage}
\fancyhead[LO,RE]{\sffamily Brückle Nr. 100}
\chead{\sffamily\bfseries\LARGE Aus dem Pfarramt}
and similar. Is there a way to print the headers inverse, i. e. white letter 
on (dark)grey background?
\colorbox, described in every simple documentation ...
Herbert



fancyhdr

2004-07-18 Thread Hartmut Haase
I'm using fancyhdr with the following ERT-commands for the headers:

\fancyhead[LE,RO]{\sffamily \thepage}
\fancyhead[LO,RE]{\sffamily Brückle Nr. 100}

\chead{\sffamily\bfseries\LARGE Aus dem Pfarramt}

and similar. Is there a way to print the headers inverse, i. e. white letter 
on (dark)grey background?
-- 
Regards,
Hartmut 

Hungerhilfe: http://www.thehungersite.com

Das heutige Motto:
You will receive a legacy which will place you above want. 


fancyhdr and hebrew (again)

2003-10-22 Thread Amir Seginer
Hello,

I'm trying to use the fancyhdr package in a hebrew document, however I 
get a strange behavior: The left and right headers seem to switch places 
some times.(this is not because of odd/even numbered pages)

I could not find what triggers this switching. For example, in the 
attached file, this always happens on the last page, however I have a 
more complex file in which the headers switch and then switch back again.

Please note, that in the example file, I get hebrew giberish instead of 
the english text, when the headers are switched.

I also tried to define the headers in a right-to-left paragraph, but 
then I would get errors in the compilation.

Thanks for any help,

Amir.

P.S.

If you think this should be posted to a different news group, please 
tell me to which you suggest.
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass heb-article
\language hebrew
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\lang english

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
lhead{
\end_inset 

left1
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang english

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
rhead{
\end_inset 

right2
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang english

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
lfoot{
\end_inset 


\lang hebrew
ùîàì
\lang english

\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang english

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
rfoot{
\end_inset 


\lang hebrew
éîéï
\lang english

\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\lang english
first page
\layout Standard
\pagebreak_top 

\lang english
second page
\layout Standard
\pagebreak_top 

\lang english
third page
\the_end


fancyhdr-hebrew.ps.gz
Description: GNU Zip compressed data


Re: fancyhdr

2003-08-25 Thread Jean-Pierre.Chretien

>>From: [EMAIL PROTECTED] (Juergen Spitzmueller)
>>To: [EMAIL PROTECTED]
>>Subject: Re: fancyhdr
>>Date: Mon, 18 Aug 2003 16:13:34 +0200
>>X-Seen: false
>>X-ID: EY0L4aZegeO+SHNYhlB4DtYVS4URFBzSshM2Onot9oOAchDufPhk8-
>>
>>John Sheahan wrote:
>>> I'm using fancyhdr to include a logo (and other stuff, whixh works more
>>> often) in my document header/footer.  It works fine as long as I include
>>> a graphic _somewhere_ in the document body.
>>
>>Try
>>\usepackage{graphicx}
>>in the preamble.
>>
>>Juergen.

If you've not done this way already, you might also use
the savebox/usebox commands to avoid plain eps in headers/footers
(smaller ps output, no clash with verbatim inputs).

In preamble:
\newsavebox{\mylogo}
\savebox{\mylogo}{\includegraphics[opt_args]{mylogo.eps}}
Then
\usebox{\mylogo}
in the header/footer fields.

-- 
Jean-Pierre







Re: fancyhdr

2003-08-19 Thread John Sheahan
On Tue, 2003-08-19 at 00:13, Juergen Spitzmueller wrote:
> John Sheahan wrote:
> > I'm using fancyhdr to include a logo (and other stuff, whixh works more
> > often) in my document header/footer.  It works fine as long as I include
> > a graphic _somewhere_ in the document body.
> 
> Try
> \usepackage{graphicx}
> in the preamble.
> 

Thanks Juergen
\usepackage{graphicx}
after usepackage{fancyhdr} worked fine.  
john
. 

> Juergen.
-- 
John Sheahan <[EMAIL PROTECTED]>



Re: fancyhdr

2003-08-18 Thread Juergen Spitzmueller
John Sheahan wrote:
> I'm using fancyhdr to include a logo (and other stuff, whixh works more
> often) in my document header/footer.  It works fine as long as I include
> a graphic _somewhere_ in the document body.

Try
\usepackage{graphicx}
in the preamble.

Juergen.


fancyhdr

2003-08-18 Thread John Sheahan
Hi

(lyx 1.3.2 qt frontend linux redhat 9)

I'm using fancyhdr to include a logo (and other stuff, whixh works more
often) in my document header/footer.  It works fine as long as I include
a graphic _somewhere_ in the document body.

Otherwise I get 
Undefined control sequence.
 \end{labeling}and 
Undefined control sequence.
 \end{document}
error boxes in the doc when trying to view or export.  Any clues as to
what is wrong here?

regards, john




-- 
John Sheahan <[EMAIL PROTECTED]>



Re: fancyhdr and Hebrew - almost solved

2003-06-14 Thread Dekel Tsur
On Mon, Jun 09, 2003 at 12:06:39PM +0300, Amir Seginer wrote:
> OK, I have solved half of my problems. I can now write hebrew properly 
> in the headers and footers: just put the commands 
> \selectlanguage{hebrew} and \inputencoding{cp1255} within the \lhead 
> command (see attached file).
> 
> However, Latex sometime exchanges the left and right headers, depending 
> somehow on what I right within the body of the document. I've attached a 
> small example of the problem (again, see attached file).

Choose a Hebrew language for the document (in the document dialog).
Then, the \lhead/\rhead will work correctly (although \lhead will set the
RIGHT header, and \rhead the LEFT one).
You also don't need to use \selectlanguage{hebrew}\inputencoding{cp1255}
inside the \lhead command.


fancyhdr and Hebrew - almost solved

2003-06-09 Thread Amir Seginer
OK, I have solved half of my problems. I can now write hebrew properly 
in the headers and footers: just put the commands 
\selectlanguage{hebrew} and \inputencoding{cp1255} within the \lhead 
command (see attached file).

However, Latex sometime exchanges the left and right headers, depending 
somehow on what I right within the body of the document. I've attached a 
small example of the problem (again, see attached file).

Thanks for any help,

Amir.




package fancyhdr and Hebrew

2003-06-08 Thread Amir Seginer
Hello,

I'm trying to put Hebrew headers into a  document using fancyhdr.sty. I 
have two problems:

1) How do I control whether the language of the header is in Hebrew or 
English (see attached files).

2) I don't seem to find a relatively simple method of writing hebrew in 
the \lhead{} (and its like) commands in the preample. The hebrew I got 
in the first example is just a misprint of "test" (I'd rather not try 
all combinations of keybord keys which give the desired hebrew letters).

Thanks for any help,

Amir.

P.S.

If there is another solution that would be fine too.




Re: 1st page of chapter header with fancyhdr in Report koma-script doc class

2003-02-12 Thread Matej Cepl
[EMAIL PROTECTED] wrote:
> Thanks to Remzi and Matej for your responses. Your solution
> required me to define a new pagestyle "myfancy" and to
> duplicate this by redefining the plain pagestyle. Thus I deduce
> that the first page of a chapter is by default in the plain
> style? Is there also a way to influence the vertical space that
> also seems to be default above the chapter number and name? I'd
> like the first page of the chapter to be like a regular page.
> Without "vertical indentation! ;)

I have problems with the German documentation for the koma-script
classes (apparently the English documentation was omitted from my
tetex; weird :-(), but it seems to me that parameter
smallheadings to the class (i.e., put it into
Layout/Document/Layout/Options) could help. If not then try to
play with this

  \AtBeginDocument{%
  \def\chapterheadstartvskip{\vspace*{1.8\baselineskip}}
  \def\chapterheadendvskip{\vspace{1.35\baselineskip
plus 0.09\baselineskip minus .15\baselineskip}}%
  }

(which is default for smallheadings).

Matej

-- 
Matej Cepl,
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Opinions founded on prejudice are always sustained with the
greatest violence.
-- Hebrew Proverb




RE: 1st page of chapter header with fancyhdr in Report koma-script doc class

2003-02-12 Thread Robert.R.Koehler
Remzi wrote:
>http://www.educat.hu-berlin.de/~voss/lyx/fancy/pagenumsfancyh.lyx

Thanks to Remzi and Matej for your responses. Your solution required
me to define a new pagestyle "myfancy" and to duplicate this by redefining
the plain pagestyle. Thus I deduce that the first page of a chapter is
by default in the plain style? Is there also a way to influence the vertical
space that also seems to be default above the chapter number and name? I'd
like the first page of the chapter to be like a regular page. Without "vertical
indentation! ;)

Rob


Re: 1st page of chapter header with fancyhdr in Report koma-script doc class

2003-02-10 Thread Matej Cepl
[EMAIL PROTECTED] wrote:
> I can't seem to find this in either the documentation nor in
> the mail archives, does somebody know how to make lyx put the
> header which I have defined appear on the 1st page of a chapter

Try to put ERT \thispagestyle{something} to the text of the first
page (where something is either plain, fancy, or heading; try all
of them).

Have a nice day

   Matej

-- 
Matej Cepl,
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
As with the Christian religion, the worst advertisement for
Socialism is its adherents.
-- George Orwell




RE: 1st page of chapter header with fancyhdr in Report koma-script doc class

2003-02-10 Thread Remzi Seker
http://www.educat.hu-berlin.de/~voss/lyx/fancy/pagenumsfancyh.lyx

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 9:14 AM
To: [EMAIL PROTECTED]
Subject: 1st page of chapter header with fancyhdr in Report koma-script
doc class


Hi,

I can't seem to find this in either the documentation nor in the mail
archives, 
does somebody know
how to make lyx put the header which I have defined appear on the 1st
page of a 
chapter in
the Report (koma-script) class? It appears on other pages, just not on
the 
first page. I just want
the first page of a chapter to be exactly like any other in my document.
The 
chapter number and
chapter title seem to be pushed further down the page too, is there also
a way 
to deal with this?

Thanks in advance.
Rob




1st page of chapter header with fancyhdr in Report koma-script doc class

2003-02-10 Thread Robert.R.Koehler
Hi,

I can't seem to find this in either the documentation nor in the mail archives, 
does somebody know
how to make lyx put the header which I have defined appear on the 1st page of a 
chapter in
the Report (koma-script) class? It appears on other pages, just not on the 
first page. I just want
the first page of a chapter to be exactly like any other in my document. The 
chapter number and
chapter title seem to be pushed further down the page too, is there also a way 
to deal with this?

Thanks in advance.
Rob


Re: fancyhdr

2003-01-24 Thread Dekel Tsur
On Wed, Jan 22, 2003 at 02:32:45PM +0100, [EMAIL PROTECTED] wrote:
> does anyone know whether the fancyhdr package when invoked can be overriden by 
> other
> latex commands to allow the header/footer to be formated by you? I was playing 
> with
> using Herbert Voss's trick to get a table into a header via fancyhdr, but I 
> seem to lose control
> over the table. Is fancyhdr necessary to put figs and tables into a 
> header/footer or can this be done 
> by other means?

You can do it manually (see the fancyhdr documentation), but it easier to use
fancyhdr.



fancyhdr

2003-01-22 Thread Robert.R.Koehler
Hi,

does anyone know whether the fancyhdr package when invoked can be overriden by 
other
latex commands to allow the header/footer to be formated by you? I was playing 
with
using Herbert Voss's trick to get a table into a header via fancyhdr, but I 
seem to lose control
over the table. Is fancyhdr necessary to put figs and tables into a 
header/footer or can this be done 
by other means?

thanks in advance.
Rob


Re: fancyhdr

2002-12-18 Thread Dekel Tsur
On Tue, Dec 17, 2002 at 09:18:54AM +1100, John Sheahan wrote:
> 
> regarding pdflatex - habit. When I last looked I liked the
> fonts better than pdf export.  And worked  with xpdf [pre]viewing.
>  (pdf export had the same issue as pdflatex file types BTW.)

It is easy to configre dvips to make Export->PDF have the same fonts
as Export->PDF(pdflatex).
See Extended.lyx



Re: fancyhdr

2002-12-16 Thread John Sheahan
On Mon, Dec 16, 2002 at 06:16:06PM +0200, Dekel Tsur wrote:
> > I find if I include it as an eps file, I can run view->dvi
> > as a jpg or png  I can run view -> pdf(pdflatex)
> > 
> > But I cannot find a format that works both ways.
> 
> Create both JPG and EPS files
> (if you use convert, use 'convert file.jpg eps2:file.eps')
> and then write \includegraphics{file}, namely you should omit the suffix.
> BTW, why do you want to use pdflatex ? You get similar results with view->pdf

Thanks Dekel. No explicit format works fine.

regarding pdflatex - habit. When I last looked I liked the
fonts better than pdf export.  And worked  with xpdf [pre]viewing.
 (pdf export had the same issue as pdflatex file types BTW.)

I guess with better font support in xpdf2.0 that may no longer be an
issue. Must look again.
john




Re: fancyhdr

2002-12-16 Thread Dekel Tsur
On Mon, Dec 16, 2002 at 07:30:05PM +1100, John Sheahan wrote:
> I am using fancyhdr on lyx 1.2.1 (and 1.2.2cvs) to put a 
> graphic in the header.
> 
> the original graphic is a jpg. I've mapped it to a few 
> formats with 'convert'.
> 
> I find if I include it as an eps file, I can run view->dvi
> as a jpg or png  I can run view -> pdf(pdflatex)
> 
> But I cannot find a format that works both ways.

Create both JPG and EPS files
(if you use convert, use 'convert file.jpg eps2:file.eps')
and then write \includegraphics{file}, namely you should omit the suffix.
BTW, why do you want to use pdflatex ? You get similar results with view->pdf



fancyhdr

2002-12-16 Thread John Sheahan
Hi

I am using fancyhdr on lyx 1.2.1 (and 1.2.2cvs) to put a 
graphic in the header.

the original graphic is a jpg. I've mapped it to a few 
formats with 'convert'.

I find if I include it as an eps file, I can run view->dvi
as a jpg or png  I can run view -> pdf(pdflatex)

But I cannot find a format that works both ways.


eps files in the document body are viewable or exportable either way.

Am I doing something silly here?

john




Re: problem with fancyhdr

2002-04-16 Thread Nirmal Govind


What kind of document are you using? If you use a twosided document tex

will indent certain pages (the even ones?) and your margin will seem
to
sit too far on the left. Changing the document to a one-sided one might

do the trick.
Michael 
I'm using a one-sided format.. the problem was with the specification of
the widths in the preamble using the textwidth command I think...
Herbert's suggestion of doing those settings using the geometry package
works well..
Thanks,
nirmal


Re: problem with fancyhdr

2002-04-16 Thread Nirmal Govind


do not use these commands, use layout->document->paper->use
geometry
and enter here the lengths
Herbert
That did it.. thanks Herbert..
nirmal



Re: problem with fancyhdr

2002-04-16 Thread Michael Abshoff



On Tue, 16 Apr 2002, Herbert Voss wrote:

> Nirmal Govind wrote:
> 
> > 
> > I'm using the fancy pagestyle to include headers in my document. When I 
> > change the textwidth to 6in, and use a right-header (\rhead{}), the 
> > header doesn't seem to get right aligned with the new textwidth and it 
> > still right aligns itself with the old textwidth. My Latex preamble has 
> > the following:
> > 
> > \textwidth 6in
> > \textheight 9in
> > \oddsidemargin 0.1in
> > \evensidemargin 0.1in
> 
> 
> do not use these commands, use layout->document->paper->use geometry
> and enter here the lengths
> 
> Herbert
> 
> 

What kind of document are you using? If you use a twosided document tex 
will indent certain pages (the even ones?) and your margin will seem to
sit too far on the left. Changing the document to a one-sided one might 
do the trick.

Michael 




Re: problem with fancyhdr

2002-04-16 Thread Herbert Voss

Nirmal Govind wrote:

> 
> I'm using the fancy pagestyle to include headers in my document. When I 
> change the textwidth to 6in, and use a right-header (\rhead{}), the 
> header doesn't seem to get right aligned with the new textwidth and it 
> still right aligns itself with the old textwidth. My Latex preamble has 
> the following:
> 
> \textwidth 6in
> \textheight 9in
> \oddsidemargin 0.1in
> \evensidemargin 0.1in


do not use these commands, use layout->document->paper->use geometry
and enter here the lengths

Herbert


-- 
http://www.lyx.org/help/




problem with fancyhdr

2002-04-16 Thread Nirmal Govind

Hi,

I'm using the fancy pagestyle to include headers in my document. When I 
change the textwidth to 6in, and use a right-header (\rhead{}), the header 
doesn't seem to get right aligned with the new textwidth and it still right 
aligns itself with the old textwidth. My Latex preamble has the following:

\textwidth 6in
\textheight 9in
\oddsidemargin 0.1in
\evensidemargin 0.1in

and I select the "fancy" option for pagestyle from Layout->Document. In 
addition, on the first page, I say:

\thispagestyle{fancy}
\rhead{header_text}

so that the first page which has the title will also have a header. My 
output looks something like:

header_text
A long title which takes up two lines on the first
page like this

Any idea what's causing this?

Thanks,
nirmal 




Re: fancyhdr versus koma-script

2001-04-24 Thread Detlev Humann




  
  >> Hi!
  >> I'm writing in book-koma-script-style and I´d like to use 
  fancyhdr, too.
  >> Unfortunately it is obviously impossible to use the 
  koma-script-command \headfont while working with fancyhdr (no effects to the 
  header-style). 
  >> Is there any other possibility to change the font (fonttype, 
  -size) using koma-script and fancyhdr together? 
  >> I haven´t found anything in the documentation, neither of 
  koma-script nor of fancyhdr.
  >> Thanks in advance! 
  >> Detlev
   
  > Does putting a font command in one of \fancyhead{} or \fancyfoot{} not 
  do what
  > you need? For instance, the docs tell you to do \fancyhead{\bfseries 
  blahblah}.
  > It seems to me you could use any other font selection command just as 
  well.
   
  Christopher is right! I made the mistake to try
  \fancyhead{\nouppercase\bfseries{\rightmark}} which doesn´t work (and my 
  several other crude attempts didn´t either)
  but of course 
  \fancyhead{\nouppercase{\bfseries\rightmark}} works!
  So nobody has to care about the lost \headfont-command using koma-script 
  and fancyhdr. 
  Mea culpa! I think I´ve got to take a LaTeX-course for (Lyx-)dummies 
;-)
  Thanks, Christopher!
  Detlev


Re: fancyhdr versus koma-script

2001-04-23 Thread Christopher Jones

Does putting a font command in one of \fancyhead{} or \fancyfoot{} not do what
you need? For instance, the docs tell you to do \fancyhead{\bfseries blahblah}.
It seems to me you could use any other font selection command just as well.

On Mon, 23 Apr 2001, you wrote:
> 
> Hi!
> I'm writing in book-koma-script-style and I´d like to use fancyhdr, too.
> Unfortunately it is obviously impossible to use the koma-script-command \headfont 
>while working with fancyhdr (no effects to the header-style). 
> Is there any other possibility to change the font (fonttype, -size) using 
>koma-script and fancyhdr together? 
> I haven´t found anything in the documentation, neither of koma-script nor of 
>fancyhdr.
> Thanks in advance! 
> Detlev
> 


Content-Type: text/html; name="unnamed"
Content-Transfer-Encoding: quoted-printable
Content-Description: 




fancyhdr versus koma-script

2001-04-23 Thread Detlev Humann



Hi!
I'm writing in book-koma-script-style and I´d 
like to use fancyhdr, too.
Unfortunately it is obviously impossible to use the 
koma-script-command \headfont while working with fancyhdr (no effects to 
the header-style). 
Is there any other possibility to change the 
font (fonttype, -size) using koma-script and fancyhdr together? 
I haven´t found anything in the documentation, 
neither of koma-script nor of fancyhdr.
Thanks in advance! 
Detlev


fancyhdr and TOC

2000-12-08 Thread Hanel, Oliver

Hi,
i use the fancyhdr option with my document (koma-script article). Everything
is fine, but on the page with the table of contents i get "table of
contents" in the left and right corner of the header. I would like to change
it, so that "table of contents" only appears in the left corner. Can anyone
give me a hint on how to achieve this with lyx, please?
Thanks,
 Oliver

> --
> Oliver Hanel
> mailto: [EMAIL PROTECTED]
> 
> 
> 



Re: fancyhdr - different headers and footers

2000-11-07 Thread Jean-Pierre.Chretien


>>Date: Tue, 7 Nov 2000 11:37:40 +0100
>>From: Jan Goebel <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: fancyhdr - different headers and footers
>>Mail-Followup-To: Jan Goebel <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
>>User-Agent: Mutt/1.2.5i
>>
>>Hello ,
>>
>>if you use the fancyhdr packages you have the following
>>latex-commands:
>>
>>\lhead{} \lfoot{}
>>\chead{} \cfoot{}
>>\rhead{} \rfoot{}
>>
>>So, if you want to change you header and footer just type the
>>latex commands (in red) on the particular page.
>>For the default header in fancyhdr please look in the package
>>description, i don't know it :(
>>
>>jan

There exists a native mechanism in the package to deal differently
with «plain» pages and «fancy» pages, which uses the fancyplain command.
I'm afraid that going into the doc is the only way to really understand it.

As an example, here is a modification of the running headers mechnism
which skips these in plain pages:

\usepackage{fancyplain}
instead of \usepackage{fancy}

then

\lhead[\fancyplain{\rm\thepage}{\rm\thepage}]{\fancyplain{}{\it\rightmark}}

puts the running header (rightark) italicised in the left location 
of the header for odd pages (compulsory argument enclosed in {}), 
but for plain pages where it is empty, and the page number in any
case for even pages (optional argument in []).

The fact that a page is «plain» can be part of the class description
(chapter title pages, bibliography title page,...) or local with 
\thispagestyle{plain}

-- 
Jean-Pierre





Re: fancyhdr - different headers and footers

2000-11-07 Thread Jan Goebel

Hello ,

if you use the fancyhdr packages you have the following
latex-commands:

\lhead{} \lfoot{}
\chead{} \cfoot{}
\rhead{} \rfoot{}

So, if you want to change you header and footer just type the
latex commands (in red) on the particular page.
For the default header in fancyhdr please look in the package
description, i don't know it :(

jan



On Tue, 07 Nov 2000, [EMAIL PROTECTED] wrote:

> Hi there,
> I need to have a different header and footer for the first page. Does
> anyone know a solution
> 

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



fancyhdr - different headers and footers

2000-11-07 Thread Haase . Hartmut

Hi there,
I need to have a different header and footer for the first page. Does
anyone know a solution





Re: fancyhdr - multiple lines

2000-11-06 Thread Adrian Ball

[EMAIL PROTECTED] wrote:
> 
> Hi there,
> I have created a header with 4 lines. That's o. k. so far, but text from
> all pages exept the chapter pages reach into the header zone (~ 0.5 cm).
> Does anyone know how to avoid this?
> Regards,
> Hartmut Haase

Put

\addtolength{\headheight}{40pt}

in the latex preamble (obviously you will want to alter the 40pt value to
suit your needs).

HTH,
Adrian.
-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



fancyhdr - multiple lines

2000-11-06 Thread Haase . Hartmut

Hi there,
I have created a header with 4 lines. That's o. k. so far, but text from
all pages exept the chapter pages reach into the header zone (~ 0.5 cm).
Does anyone know how to avoid this?
Regards,
Hartmut Haase




Help with fancyhdr style and foot notes!

1999-01-17 Thread José Ángel



    

    
Hello everybody!
 
    I 
am trying to increase the separation between the last line of text in a page and 
the line above the footnotes. To my perception, they are very close each other. 
I've printed and read carefully the dvi documentation, fancyhdr.dvi. It seems 
that the only "distance" you can change is \footruleskip. The documentation 
states that the only way of doing this is by redefining \footrule. Please, could 
anybody who knows a little bit of Latex tell me how to do 
so?
 
    
Thanks in advance
 
   Jose 
Angel Jimenez
   
Telecommunication Engineer
    
ETSTI - UP Madrid (Spain)


  1   2   >