I work on a Latex book template, and at the moment, I try to include a wide image on the top of a page, and another one on its bottom. The images should ignore the margin, and text should not overlap the images.
My first try result in something like this:
Code: \documentclass[10pt,a4paper,twocolumn,openany]{book}
\usepackage[english]{babel}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{lipsum}
\newcommand*{\rpgarttop}[1]{%
\begin{figure*}[!t]%
\begin{tikzpicture}[remember picture,overlay]
\node[inner sep=0pt, anchor=north] at (current page.north) {\includegraphics[width=\paperwidth]{#1}};
\end{tikzpicture}
%%%%%%%%%%%%%%%%%%
% need to get the image dimension here
%\rule{image width}{image height}
%%%%%%%%%%%%%%%%%%
\end{figure*}%
}
\newcommand*{\rpgartbottom}[1]{%
\begin{figure*}[!t]%
\begin{tikzpicture}[remember picture,overlay]
\node[inner sep=0pt, anchor=south] at (current page.south) {\includegraphics[width=\paperwidth]{#1}};
\end{tikzpicture}
\end{figure*}%
}
\begin{document}
\rpgarttop{art-top}
\rpgartbottom{art-bottom}
\section{Section 1}
\lipsum[1-15]
\end{document}
As you can see, the margin are ignored, but the text overlap the images.
If one of you have any idea to solve this issue, it will be super nice !
Also, here is a link to the entire project : https://github.com/Krozark/RPG-LaTeX-Template
Edit 1 : Add comment for image dimension


overlaymeans it takes no space. So the text just starts where it normally would and ends where it normally would. You need to adjust your top margin and height of the text block. (Usinggeometrywould be the easiest way. Then you can just set thetopandbottommargins as you need.) – cfr Jun 28 '18 at 01:26