summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/wallpaper
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2006-10-17 16:34:12 +0000
committerNorbert Preining <preining@logic.at>2006-10-17 16:34:12 +0000
commitabf72be1c8d2ecea135ae14dcbdff593a8496321 (patch)
tree71605216e95bfbf1fa94e61d578748fa1c6b5d15 /Master/texmf-dist/tex/latex/wallpaper
parent8fcfd0c5c69266dcf07ee68b4eaa8e5c8541aeec (diff)
tpm-ctan-check: add varindex, wallpaper, warpcol, vector
update these packages create a file Build/PROBLEMS which collects problematic packages git-svn-id: svn://tug.org/texlive/trunk@2342 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/wallpaper')
-rw-r--r--Master/texmf-dist/tex/latex/wallpaper/wallpaper.sty113
1 files changed, 107 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/wallpaper/wallpaper.sty b/Master/texmf-dist/tex/latex/wallpaper/wallpaper.sty
index c0b79c586b7..c64e8c63880 100644
--- a/Master/texmf-dist/tex/latex/wallpaper/wallpaper.sty
+++ b/Master/texmf-dist/tex/latex/wallpaper/wallpaper.sty
@@ -1,16 +1,26 @@
%%
-%% This is file `wallpaper.sty' v 1.00
+%% This is file `wallpaper.sty' v 1.10
%%
%% Author Michael H.F. Wilkinson
-%% December 22, 2004
+%% April 21, 2006
%%
-%% Create background, either centered or tiled
+%% Create background, either centered, tiled, or in any corner
%% relies heavily on eso-pic.sty, corrects for changes in \hoffset
%% by classes such as sciposter.cls
%% Problems, bugs and comments to
%% michael@cs.rug.nl
-
-\ProvidesPackage{wallpaper}[2004/12/22, v1.00 easy wallpaper formatting (MHFW)]
+%% version 1.10, 2006/04/21:
+%% - Commands added for corner wallpapers
+%%
+%% version 1.01, 2005/01/18:
+%% - \providecommand{\LenToUnit} included to be compatible
+%% with earlier versions of eso-pic.sty
+%%
+%% version 1.00, 2004/12/22:
+%% - first release
+%%
+%%
+\ProvidesPackage{wallpaper}[2005/01/18, v1.01 easy wallpaper formatting (MHFW)]
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\RequirePackage{ifthen}
@@ -18,6 +28,9 @@
\RequirePackage{eso-pic}
\RequirePackage{graphicx}
+\providecommand{\LenToUnit}[1]{#1\@gobble}
+
+
\newlength{\wpXoffset}
\setlength{\wpXoffset}{-\hoffset}
\newlength{\wpYoffset}
@@ -29,6 +42,93 @@
\newlength{\tileX}
\newlength{\tileY}
+\newcommand{\LLCornerWallPaper}[2]{%
+\AddToShipoutPicture{%
+ \AtPageLowerLeft{%
+ \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ }
+ }
+}
+
+\newcommand{\ThisLLCornerWallPaper}[2]{%
+\AddToShipoutPicture*{%
+ \AtPageLowerLeft{%
+ \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ }
+ }
+}
+
+\newcommand{\ULCornerWallPaper}[2]{%
+ \AddToShipoutPicture{%
+ \AtPageLowerLeft{%
+ \parbox[b][\paperheight]{#1\paperwidth}{%
+ \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ \vfill%
+ }
+ }
+ }
+}
+
+\newcommand{\ThisULCornerWallPaper}[2]{%
+ \AddToShipoutPicture*{%
+ \AtPageLowerLeft{%
+ \parbox[b][\paperheight]{#1\paperwidth}{%
+ \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ \vfill%
+ }
+ }
+ }
+}
+
+\newcommand{\LRCornerWallPaper}[2]{%
+ \AddToShipoutPicture{%
+ \AtPageLowerLeft{%
+ \parbox[b]{\paperwidth}{%
+ \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ }
+ }
+ }
+}
+
+\newcommand{\ThisLRCornerWallPaper}[2]{%
+ \AddToShipoutPicture*{%
+ \AtPageLowerLeft{%
+ \parbox[b]{\paperwidth}{%
+ \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ }
+ }
+ }
+}
+
+\newcommand{\URCornerWallPaper}[2]{%
+ \AddToShipoutPicture{%
+ \AtPageLowerLeft{%
+ \parbox[b][\paperheight]{\paperwidth}{%
+ \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ \vfill%
+ }
+ }
+ }
+}
+\newcommand{\ThisURCornerWallPaper}[2]{%
+ \AddToShipoutPicture*{%
+ \AtPageLowerLeft{%
+ \parbox[b][\paperheight]{\paperwidth}{%
+ \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
+ keepaspectratio]{#2}%
+ \vfill%
+ }
+ }
+ }
+}
+
\newcommand{\CenterWallPaper}[2]{%
\AddToShipoutPicture{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
\parbox[b][\paperheight]{\paperwidth}{%
@@ -37,7 +137,8 @@
\includegraphics[width=#1\paperwidth,height=#1\paperheight,%
keepaspectratio]{#2}%
\vfill
- }}}
+ }}
+ }
}
\newcommand{\ThisCenterWallPaper}[2]{%