Adding a background image
We can add background graphics such as watermarks, pre-designed letterheads, or photos to any LaTeX document. In this recipe, we will walk you through the steps to achieve this.
How to do it...
We will utilize the background package written by Gonzalo Medina for this task. In this recipe, you can use any LaTeX document. We will start with the article class and add some dummy text. You may also use a document example from another recipe for this or access this one at https://latex-cookbook.net/chapter-07.
We will insert some commands into our document preamble, which means between \documentclass{…} and \begin{document}. It takes just two steps:
- Loading the background package
- Setting up the background using the \backgroundsetup command with options
Here we go:
- Load the background package:
\usepackage{background}
- Set up the background. Optionally, specify the scaling factor, rotation angle, and opacity. Provide the...