I'm trying to create a cover page with a background image filling the entire page. On top of that in the lower third of the page should be a transparent rectangle going from side to side and on top of that, I would like to write title, author and date. I'm using tikz but having some difficulty. My code and cover page currently look like this:
\documentclass[a4paper]{article}
\usepackage{tikz}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center)
{\includegraphics[height=\paperheight]{example-image}};
\draw[fill=white,opacity=0.4] (-5,-24) rectangle (30,-18);
\node [scale=3.5] at (5,-20) {\sffamily\selectfont\textbf{Molecular Magnetism}};
\node [scale=2] at (5,-22) {\sffamily\selectfont\textbf{John Doe}};
\end{tikzpicture}
\end{document}
My problems are:
- The transparent white box goes over the edges.
- The title and author should both be left-aligned roughly with the big 'I' of 'Image'.
I would easily be able to solve both problems, if I knew how to
- make coordinates in tikz go from (0,0) at the bottom left corner of the image to (1,1) at the top right corner, and
- how to give tikz coordinates not with respect to the center of a node but to the bottom left corner.
Since I am using ShareLaTeX, the onimage
package is not an option. Are there other ways to achieve this?