summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-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}}