I use the wallpaper package to put a PDF document in the background of my document.
I want the user to be able to select in the preamble which PDF should be use as background image like this:
\output{print} or \output{screen} I thought I can write the command like this:
\newcommand{\output}[1]{ \ifstrequal{#1}{print}{ \ULCornerWallPaper{1}{backgroundPrint.pdf} }{ \ULCornerWallPaper{1}{background.pdf} } } But this does not work. I have found out that this, however, works:
\newcommand{\print}{ \ULCornerWallPaper{1}{backgroundPrint.pdf} } \newcommand{\screen}{ \ULCornerWallPaper{1}{background.pdf} } which works nicely, but I really want to know what the problem is with my initial approach.
I have also tried the approach described here but without success.
I'm not much into LaTeX programming so any help is highly appreciated.
\documentclass{...}and ending with\end{document}. What “does not work”? What happens? Error messages? Different output than expected? Have you tried another macro name instead of\outputwhich may already be defined (though this would come up in an error message, as well)?