I want to create a latex class to create documents for my company. There is an example style for a word document but it looks more complex as most headers/footers I have found till now to re-create in LaTeX (at least for me). The example looks like the attached picture. I tried to play with fancyhdr, but didn't succeed with the problems: inserting the logo in a way that does not screw up the rest of the footer, aligning the text left and right, text above and under the line...

enter image description here

  • Looks like I'm not able to upload the image... you can find it here
    – lovebug356
    Commented Mar 21, 2013 at 10:18
  • Welcome to TeX.sx!Please make sure that all images are uploaded using the official stackexchange interface, i.e. the image icon on top of the text field (shortcut: CTRL+G). This ensures that all images are always accessible and do not expire. As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again.
    – percusse
    Commented Mar 21, 2013 at 10:19
  • 1
    Please add a minimal working example (MWE) that shows what you have done with fancyhdr so far. Otherwise, your question may be interpreted as a typical "do-this-for-me-please-thanks".
    – jub0bs
    Commented Mar 21, 2013 at 12:27
  • just a suggested direction: create two minipages with the same height (that of the logo), flush the text content left and right in the other minipage, which is explicitly given the desired width, and use a vertical fill at top and bottom to center it. then just set them side by side in a single "line". Commented Mar 21, 2013 at 15:54

2 Answers 2


Here is my take at it. It is not well defined but sort of does what you are looking for.

enter image description here

            \sffamily \bfseries\hfill MyCompany, MyStreet 1\\
            Page \thepage\ of \pageref{LastPage}\hfill 1234 City, Country\\

  • This is what I was looking for. I missed parbox. Thx
    – lovebug356
    Commented Mar 21, 2013 at 20:35
  • @lovebug356 You are welcome. It would be nice if you provide a MWE. It helps us know what style you want to work with, geometry of the page, class of document etc.
    – azetina
    Commented Mar 21, 2013 at 21:55

Here's another possibility, using this time the background package; using this package you can place the structure at any desired location on the pages of your documents:

\usepackage{lipsum}% just to generate text for the example

  position=current page.south,
    Page \thepage\ of   \pageref{LastPage}}\hfill
    \raggedleft My Company, My street 1 \\ 1234 city, Country}\\





Am image of the first two pages:

enter image description here

And a zoom to the bottom of one of the pages:

enter image description here

CTAN lion draw­ing by Duane Bibby; thanks to www.ctan.org

You must log in to answer this question.

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