[texhax] letterhead

Steve Schwartz s.schwartz at imperial.ac.uk
Thu Apr 21 15:43:49 CEST 2011


Renato,

On Wed, 2011-04-20 at 22:17 +0100, Renato Pontefice wrote:
> I always have on first page the first and second page layout :-(

Yep, sorry, small error on my part. In your definition of firstpage you
need to issue a fancyhf{} to clear the R field:

Try this in your preamble: (I substituted text for your graphics)

\usepackage{fancyhdr}

\pagestyle{fancy}

\fancypagestyle{firstpage}{    % note opening bracket
  \fancyhf{}  %<<<<----- clear all fields
  \fancyhead[L]{\fbox{firstpage LOGO}\quad
\hrulefill}
  \fancyfoot[C]{\tiny street 1, 0100 rome\\ 
  \\xyzxyzxyz \fbox{LGOG2}}
}   % closing bracket

\fancyhf{}
\fancyhead[R]{\hrulefill header second page \fbox{LOGO}\quad }


HTH
Steve

PS The documentation for fancyhdr is pretty clear, and worth reading.

PPS I'd avoid blank lines in your definition of firstpage, etc. They
sometimes have strange effects.


-- 
+-------------------------------------------------------------------+
Professor Steven J Schwartz        Phone: +44-(0)20-7594-7660
Head, Space & Atmospheric Physics  Fax:   +44-(0)20-7594-7772
The Blackett Laboratory            E-mail: s.schwartz at imperial.ac.uk
Imperial College London            Office: Huxley 6M67A 
London SW7 2AZ, U.K.               Web: www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+



More information about the texhax mailing list