0

I have tried the following to try to have the text on the right side on the header exactly at the same height of the center of the image in the left side of the same header:

\fancyhead[L]{\includegraphics[width=7cm]{MontajeLogo}}
\rhead{\textbf{University name}}

And I also tried using tabular like the following:

\fancyhead[L]{
\begin{tabular}{ccc}
\includegraphics[width=7cm]{MontajeLogo} & & University name \\
\end{tabular}}

But it does not work. Any idea?

4
  • 2
    Welcome to TeX.SE! Please make your code snippets -- as usual here -- compilable. Then we can copy the code and test it on our computer ...
    – Mensch
    Aug 29, 2020 at 18:12
  • @PaulRoberts -- did the answer suit your requirement
    – js bibra
    Aug 30, 2020 at 7:29
  • Sure! Thank you @jsbibra Sep 28, 2020 at 17:15
  • @PaulRoberts -- would you like to accept the answer
    – js bibra
    Sep 28, 2020 at 23:47

1 Answer 1

1

enter image description here

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{stackengine}
\setstackEOL{\\}
\headheight=60pt
\rhead{%
        \Centerstack[l]{Foo bar \\
                        Baz lorem \\
                        ipsum dolor
        }
    }
\chead{}
\lhead{This should be vertically aligned (middle) \raisebox{-.4\height}
{\includegraphics[scale=0.016]{DD.jpg}}}

\pagestyle{fancy}


\begin{document}
    Test
\end{document} 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .