我需要在整页上放置背景图像,并且我有几个组元素,有时一页上有两个组
我在半个页面上只看到一张图片,而在下一页上,组元素开始
我希望你能理解我的问题
\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}