I can't seem to be able to align our logo and page number in the footer. I have the code below:
\pagestyle{fancy} % enable fancy page style
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\fancyhf{} % clear header and footer
\fancyhead[L]{\leftmark} % leftmark shows the chapter, rightmark shows the section.
\fancyfoot[C]{\thepage}
\fancyfoot[R]{ % right
\includegraphics[scale=0.5]{general_images/logo.png}
}
How can I align the page number and the logo? Any ideas?
Best Answer
With
\includegraphics
, the base line for alignment is at the bottom. You could use\raisebox
to raise or to lower the image. Thecalc
package can help in calculating if required. For example for top alignmentor with more calculation
or for middle alignment instead