summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/background
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-03-05 23:18:10 +0000
committerKarl Berry <karl@freefriends.org>2014-03-05 23:18:10 +0000
commit78421b8cf188c4dab7c54d40b422386364441fcd (patch)
tree111fbde500b346f39cc4bf9586e8a0c1358c1170 /Master/texmf-dist/tex/latex/background
parente92a34caec5eab0a4c9409d6f0b8372d43dd0684 (diff)
background (4mar14)
git-svn-id: svn://tug.org/texlive/trunk@33100 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/background')
-rw-r--r--Master/texmf-dist/tex/latex/background/background.sty32
1 files changed, 22 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/background/background.sty b/Master/texmf-dist/tex/latex/background/background.sty
index e746a4e3311..0a20dd46926 100644
--- a/Master/texmf-dist/tex/latex/background/background.sty
+++ b/Master/texmf-dist/tex/latex/background/background.sty
@@ -6,7 +6,7 @@
%%
%% background.dtx (with options: `package')
%%
-%% Copyright (C) 2009-2012 Gonzalo Medina (gmedinaar@unal.edu.co)
+%% Copyright (C) 2009, 2012, 2014 Gonzalo Medina (gmedinaar@unal.edu.co)
%%
%% --------------------------------------------------------------------------
%%
@@ -34,11 +34,12 @@
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{background}[2012/08/06 v2.0 background material]
+\ProvidesPackage{background}[2014/03/04 v2.1 background material]
\@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}}
\@ifpackageloaded{tikz}{}{\RequirePackage{tikz}}
-\@ifpackageloaded{everypar}{}{\RequirePackage{everypage}}
+\@ifpackageloaded{everypage}{}{\RequirePackage{everypage}}
\@ifpackageloaded{afterpage}{}{\RequirePackage{afterpage}}
\DeclareOptionX[BG]<background>{contents}{%
\def\Background@Contents{#1}}
@@ -54,6 +55,8 @@
\def\Background@Position{#1}}
\DeclareOptionX[BG]<background>{anchor}{%
\def\Background@Anchor{#1}}
+\DeclareOptionX[BG]<background>{nodeanchor}{%
+ \def\Background@NodeAnchor{#1}}
\DeclareOptionX[BG]<background>{hshift}{%
\def\Background@HShift{#1}}
\DeclareOptionX[BG]<background>{vshift}{%
@@ -121,7 +124,7 @@
\ExecuteOptions{all,center}
-\DeclareOptionX*{\PackageWarning{background}{‘ \CurrentOption’ ignored}}
+\DeclareOptionX*{\PackageWarningNoLine{background}{Option '\CurrentOption' ignored}}
\ExecuteOptionsX[BG]<background>{%
firstpage=false,
@@ -132,8 +135,9 @@
scale=10,%
position=current page.center,%
anchor={},%
- hshift=0,%
- vshift=0%
+ nodeanchor={center},%
+ hshift=0pt,%
+ vshift=0pt%
}
\ProcessOptionsX[BG]<background>
@@ -143,10 +147,18 @@
\newcommand\bg@material{%
\begin{tikzpicture}[remember picture,overlay,scale=\Background@Scale]
- \node [rotate=\Background@Angle,scale=\Background@Scale,
- opacity=\Background@Opacity,%
- xshift=\Background@HShift,yshift=\Background@VShift,color=\Background@Color]
- at (\Background@Position) [\Background@Anchor] {\Background@Contents};
+ \node[
+ rotate=\Background@Angle,
+ scale=\Background@Scale,
+ opacity=\Background@Opacity,
+ anchor=\Background@NodeAnchor,
+ xshift=\Background@HShift,
+ yshift=\Background@VShift,
+ color=\Background@Color,
+ inner sep=0pt
+ ]
+ at (\Background@Position) [\Background@Anchor]
+ {\Background@Contents};
\end{tikzpicture}}%
\newcommand\BgThispage{\AddThispageHook{\bg@material}}