Use any letterhead in LaTeX

Posted by Fabrice on Monday, April 22, 2019 Translation: fr

It sometimes appears that I have to write some official documents from some entities, especially for admin stuff. However, those letterheads are often provided in some proprietary format with which I do my best to make as few interactions as possible. Especially, I feel more comfortable editing some LaTeX instead of writing it in libreoffice (for instance).

Thus, thanks to Nicolas Trotignon who found a simple workaround, here is a small trick to do it. As a preliminary, you have to obtain a pdf version of the letterhead (to do so, I'm using online office 365 as it works in Linux, yes, shame on me).

Once this is done, the core of this method is to use the wallpaper package to embed the letterhead as a background image, and then play with margins to make it look nice.

Here follows a minimal example with the corresponding output. Replace background.pdf with your (empty) letterhead of course. This can also be adapted to other classes, such as letter.cls.

% Design and encoding stuff
% The main trick
% margin
% blabla
Hello, World!
% …

tags: LaTeX