# Placing image next to multiple line text in header

I am trying to recreate the following header created in Word using LaTeX

I have attempted to do so by using the fancyhdr package and creating a table as follows

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing
\begin{tabular}{l l}
\multirow{3}{*}{\includegraphics[scale=1]{template/header_left}} & {\huge Big text} \\
& Small text \\
\multicolumn{2}{l}{\includegraphics[scale=1]{template/horizontal}}
\end{tabular}}


However, the result looks like this:

these are the two images used to construct the header:

Image 1:

Image 2:

• Welcome to TeX.SE! Nov 1, 2021 at 13:32

The makecell package often comes handy for these kinds of constructs.

\documentclass{article}
\usepackage{lipsum}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing
\makecell[cl]{{\huge Big text} \\[2pt] ~Small text} \\[-9pt]

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


This uses \saveboxes and \parboxes to construct the header. Note that fancyhdr is sensitive about \headheight.

\documentclass[a4paper,11pt]{article}
\usepackage{xcolor}
\usepackage{graphicx}
\sbox1{\parbox[b]{0.5\textwidth}{{\huge Big text}\par Small texty \hrule height0pt}}% move baseline to bottom
\hspace{2pt}\raisebox{2pt}{\box1}% add 2pt gap to left and bottom
\color{red}\hrule height2pt}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing

\begin{document}
The content of my thesis goes here
\end{document}


Note that every line (box) has a top, bottom and baseline. LaTeX tries to space the baselines \baselineskip apart, but if two lines run together it instead adds \lineskip between the bottom of one and the top of the next. Tabular is even more complicated. However, \hrule does not obey these rules.

This is a version that is using colored rules instead of your graphics files.

\documentclass{article}

\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage[scaled]{helvet}
\usepackage[T1]{fontenc}
\renewcommand\familydefault{\sfdefault}

\usepackage[dvipsnames]{color}

\makeatletter
\let\old@rule\@rule
\def\@rule[#1]#2#3{\textcolor{rulecolor}{\old@rule[#1]{#2}{#3}}}
\makeatother

\definecolor{rulecolor}{named}{BrickRed}

\pagestyle{fancy}
\fancyhf{}
\rule{2em}{4em}\hspace{2pt}\rule{1em}{4em}\hspace{2pt}\rule{0.25em}{4em} \hspace{3pt}
\raisebox{5mm}[4mm][2mm]{
\begin{tabular}{l}
\huge Big Text \\
\textcolor[rgb]{0.8,0.8,0.8}{Small text}
\end{tabular}
}\vspace{-0.8em}
\rule{1.2\textwidth}{1em} \hspace{3pt}
}

\begin{document}

\noindent \lipsum

\end{document}


It will look like this. All lengths can be tailored.