I try to align things in my header&footer. Here's what I have:
\documentclass{extarticle}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{geometry}
\usepackage{graphicx}
\geometry{a4paper}
\geometry{top=25mm}
\geometry{bottom=25mm}
\geometry{left=20mm}
\geometry{right=20mm}
\pagestyle{fancy}
\fancyhead[C]{}
\fancyhead[L]{\large Theme of my document}
\fancyhead[R]{\includegraphics[scale=0.1]{example-image-a}}
\fancyfoot[L]{\includegraphics[scale=0.07]{example-image-a}}
\fancyfoot[R]{\large\thepage}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\begin{document}
\lipsum[1-2]
\end{document}
it gives me this for header:
and this for footer:
But I want to align the header this way (center of text on the same level as the center of the picture)
And I want to slightly move down picture in the footer so that it can be aligned for eg like this:
How do I do this? I tried some hard-coding solutions like \vspace
and \rule
with 0 width, but it all did not work.
\geometry{a4paper} \geometry{top=25mm} \geometry{bottom=25mm} \geometry{left=20mm} \geometry{right=20mm}
set them all in the same call as comma separated values, then geometry will see all the settings and can do consistency checks