# Custom header of the first page latex

I'm trying to create a article template for a congress in my college. They send to me a template in word and now I'm trying to make it in latex. My first page has to be similar a this model Create custom header with LaTeX, but I need in the first page another line above the figures and strings between the figures, like this:

....................................

         text1


|Figure1| text2 |Figure2|

         text3


.....................................

where the dots represent a line.

I tried to mix the code I mentioned above to another I found here and didn't work. Here is the code:

\documentclass{article}

\usepackage{lipsum}

\usepackage{ifthen}

\usepackage{fancyhdr}
\pagestyle{fancy}

\includegraphics[width=2cm]{example-image} \hfill
\parbox[b]{5cm}{\centering Latex World Learning\\
very neat\\ no irritating eyes} \hfill
\includegraphics[width=2cm]{example-image}}}{second page}}

\lfoot{From: K. Smith}
\cfoot{To: Jean A. Cory}
\rfoot{\thepage}
\renewcommand{\footrulewidth}{0pt}

\begin{document}

\lipsum

\end{document}


For the rest of the article, I need just to put the name of the event aligned to the right, on the top of the page

• If i understand this correct, this is about creating a title, not a header. Treating this as a title, will lead to a much simpler solution. – Johannes_B May 28 '17 at 10:45

You have to load the graphicx package. Do not set \fancyhead[L]{...} inside the argument of \rhead. It defines the contents of the left header of all following pages. Additionally you have to enlarge the height of the header.

\documentclass{article}
\usepackage{lipsum}
\usepackage{ifthen}

]{geometry}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\ifthenelse{\value{page}=1}{%
\includegraphics[width=2cm]{example-image} \hfill
\parbox[b]{5cm}{\centering Latex World Learning\\
very neat\\
no irritating eyes}\hfill
\includegraphics[width=2cm]{example-image}%
}{second page}%
}

\fancyfoot[L]{From: K. Smith}
\fancyfoot[C]{To: Jean A. Cory}
\fancyfoot[R]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\begin{document}
\lipsum
\lipsum
\end{document}


If there should be a line below the header, remove \renewcommand{\headrulewidth}{0pt}. An additional line above the header can be added in \fancyhead[R]{...}, e.g.:

\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{ifthen}

]{geometry}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\ifthenelse{\value{page}=1}{%
\includegraphics[width=2cm]{example-image} \hfill
\parbox[b]{5cm}{\centering Latex World Learning\\
very neat\\
no irritating eyes}\hfill
\includegraphics[width=2cm]{example-image}%
}{second page}%
}

\fancyfoot[L]{From: K. Smith}
\fancyfoot[C]{To: Jean A. Cory}
\fancyfoot[R]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\begin{document}
\lipsum
\lipsum
\end{document}


• Thank you @esdd. Now I understood, but I have one more doubt. How can I set another headrule? With the command \renewcommand{\headrulewidth}{0pt} I can just put a line below my header and I need to put another line, above it. Thanks again – Túlio Alves May 26 '17 at 10:31
• See my updated answer. – esdd May 28 '17 at 10:28

You can declare other fancypagestyles by using:

\fancypagestyle{otherfancy}{\fancyhf{}

and use command \thispagestyle{otherfancy} to active it in only this page.