I need to put a background image on full page and I have several group elements, sometimes two groups on one page
I only get one Image on half of the page and on the next page the group elements start
I hope you can understand what my problem is
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[textwidth=15cm,centering]{geometry}
\usepackage[x11names]{xcolor}
\usepackage{graphicx}
\usepackage{background}
% colorize text
\newcommand*\ColText[1]{\textcolor{Goldenrod3}{#1}}
% a tabular* for each food group
\newenvironment{Group}[1]
{\noindent\begin{tabular*}{\textwidth}{@{}p{0.9\linewidth}@{\extracolsep{\fill}}r@{}}
{\fontsize{30}{35}\selectfont\ColText{#1}}\\[0.8em]}
{\end{tabular*}}
% to format each entry
\newcommand*\Entry[2]{%
\sffamily#1 & #2}
% to format each subentry
\newcommand*\Expl[1]{%
\hspace*{1em}\footnotesize #1}
\begin{document}
\backgroundsetup{
scale=1,
angle=0,
opacity=.4,
contents={\includegraphics[width=\paperwidth,height=\paperheight]{exaple-image}}
}
\begin{Group}{group1}
\Entry{entry1}\\
\Entry{entry2}\\
\end{Group}
\vfill
\begin{Group}{group2}
\Entry{entry1}\\
\Expl{expl1}\\
\Entry{entry2}\\
\Expl{expl2}\\
\end{Group}
\end{document}
\end{document}
and provide the defintions for theGroup
environment and the\Entry
command (or add the package that provides this environment) or, if this is meant to be a placeholder, use environments or commands that are available per default (such asitemize
).mwe
package includes example images, so you can use those to replace images we don't have. Providing us with code we can compile to reproduce the problem is essential to getting useful answers.\usepackage{xcolor}
. Should be removed, otherwise it will produce an error. Plus your ownGroup
environment is still unknown if I run your code.shipout
from the kernel.