[Tex/LaTex] custom header using fancyhdr

fancyhdrheader-footer

I am looking to create a layout as follows in LaTeX. I tried using fancyhdr but I am unable to get it right.

\lhead{\includegraphics[height=0.75in]{translogo}} 
\chead{\parbox{5cm}{INTEROFFICE   MEMORANDUM \\ Document Name \\}}
\rhead{\parbox{5cm}{ \today \\ \\ TOP \\ Confidential document \\}}

This is what it should look like:

___________________________________________________________________________
|        |          INTEROFFICE MEMO                      | DATE          | 
|LOGO    |           DOCUMENT NAME                        | Number        |
|        |                                                |               |
___________________________________________________________________________

blah ...............
\lipsum

____________________________________________________________________________

Best Answer

Here's a solution that uses fancyhdr combined with the geometry package, and using the optional arguments of the parbox command.

screenshot

\documentclass{article}

\usepackage[left=2cm,right=2cm,
                        headheight=2in,bottom=2cm]{geometry}
\usepackage[demo]{graphicx}
\usepackage{fancyhdr}
\usepackage{lipsum}


\lhead{\parbox[b][.75in][t]{2cm}{\includegraphics[height=0.75in]{translogo}}} 
\chead{\parbox[b][.75in][t]{5cm}{INTEROFFICE   MEMO \\ Document Name}}
\rhead{\parbox[b][.75in][t]{4cm}{ \today \\ \\ TOP \\ Confidential document}}

\begin{document}

\pagestyle{fancy}

\lipsum
\end{document}

You can use a simple \fbox to get a box around each element

\lhead{\fbox{\parbox[b][.75in][t]{4cm}{\includegraphics[height=0.75in,width=4cm]{translogo}}}} 
\chead{\fbox{\parbox[b][.75in][t]{5cm}{INTEROFFICE   MEMO \\ Document Name}}}
\rhead{\fbox{\parbox[b][.75in][t]{4cm}{ \today \\ \\ TOP \\ Confidential document}}}

enter image description here

Related Question