TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
\fancyhf{} % clear header and footer
\fancyhead[L]{\leftmark} % leftmark shows the chapter, rightmark shows the section.
\fancyfoot[R]{ % right

How can I align the page number and the logo? Any ideas?

share|improve this question
Please provide a full minimal working example (MWE) that illustrates your problem. – N.N. Sep 29 '11 at 9:31
You want them aligned how? We can't see your logo image. How big is the logo? Should the bottom of the logo align with the baseline of the text? Should the top of the logo align with the baseline plus the ex height? Explain what you want. "align" is pretty vague... – Seamus Sep 29 '11 at 9:36
If I'm understanding your question correctly, there's another question asking about the same thing: tex.stackexchange.com/questions/2440/…. Please let us know if that solves your problem. If so, we'll probably close this question as a duplicate. – doncherry Sep 29 '11 at 15:27
@doncherry: Now I see your link--yes, very similar question. If the answer here (with calculation for different alignment) would be a bit more useful, we might mark the other existing question as duplicate instead. – Stefan Kottwitz Sep 29 '11 at 15:49
Thanks you can close this question if you like. – Dimitris Sep 30 '11 at 13:37

With \includegraphics, the base line for alignment is at the bottom. You could use \raisebox to raise or to lower the image. The calc package can help in calculating if required. For example for top alignment


or with more calculation


or for middle alignment instead

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.