[freeside-commits] branch FREESIDE_4_BRANCH updated. f458c57d91c7111c27fe84f5ef50336e7e82e23e
Mark Wells
mark at 420.am
Thu Jul 2 14:33:39 PDT 2015
The branch, FREESIDE_4_BRANCH has been updated
via f458c57d91c7111c27fe84f5ef50336e7e82e23e (commit)
from 715320db25c6382661abfddf20e785e2d535a226 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f458c57d91c7111c27fe84f5ef50336e7e82e23e
Author: Mark Wells <mark at freeside.biz>
Date: Thu Jul 2 14:23:32 2015 -0700
backport LaTeX 'background' package for deb7, #24665
diff --git a/Makefile b/Makefile
index cb93b9f..02ab78c 100644
--- a/Makefile
+++ b/Makefile
@@ -269,8 +269,8 @@ dev-perl-modules: perl-modules
ln -sf ${FREESIDE_PATH}/FS/blib/lib/FS ${PERL_INC_DEV_KLUDGE}/FS
install-texmf:
- install -D -o freeside -m 444 etc/longtable.sty \
- /usr/local/share/texmf/tex/latex/longtable.sty
+ install -D -o freeside -m 444 etc/*.sty \
+ /usr/local/share/texmf/tex/latex/
texhash /usr/local/share/texmf
install-init:
diff --git a/etc/background.sty b/etc/background.sty
new file mode 100644
index 0000000..0a20dd4
--- /dev/null
+++ b/etc/background.sty
@@ -0,0 +1,199 @@
+%%
+%% This is file `background.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% background.dtx (with options: `package')
+%%
+%% Copyright (C) 2009, 2012, 2014 Gonzalo Medina (gmedinaar at unal.edu.co)
+%%
+%% --------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2003/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% The Current Maintainer of this work is Gonzalo Medina.
+%%
+%% This work consists of the files background.ins, background.dtx,
+%% and the derived files background.sty and background.pdf.
+%%
+
+
+
+
+
+
+
+
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{background}[2014/03/04 v2.1 background material]
+\@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}}
+\@ifpackageloaded{tikz}{}{\RequirePackage{tikz}}
+\@ifpackageloaded{everypage}{}{\RequirePackage{everypage}}
+\@ifpackageloaded{afterpage}{}{\RequirePackage{afterpage}}
+\DeclareOptionX[BG]<background>{contents}{%
+ \def\Background at Contents{#1}}
+\DeclareOptionX[BG]<background>{color}{%
+ \def\Background at Color{#1}}
+\DeclareOptionX[BG]<background>{angle}{%
+ \def\Background at Angle{#1}}
+\DeclareOptionX[BG]<background>{opacity}{%
+ \def\Background at Opacity{#1}}
+\DeclareOptionX[BG]<background>{scale}{%
+ \def\Background at Scale{#1}}
+\DeclareOptionX[BG]<background>{position}{%
+ \def\Background at Position{#1}}
+\DeclareOptionX[BG]<background>{anchor}{%
+ \def\Background at Anchor{#1}}
+\DeclareOptionX[BG]<background>{nodeanchor}{%
+ \def\Background at NodeAnchor{#1}}
+\DeclareOptionX[BG]<background>{hshift}{%
+ \def\Background at HShift{#1}}
+\DeclareOptionX[BG]<background>{vshift}{%
+ \def\Background at VShift{#1}}
+
+\newif\ifbg at some
+ \bg at somefalse
+
+\define at choicekey+[BG]{background}{pages}[\val\nr]{all,some}{%
+ \ifcase\nr\relax
+ \bg at somefalse
+ \or
+ \bg at sometrue
+ \fi
+}{%
+ \PackageWarning{background}{erroneous input ignored}%
+}
+
+\define at choicekey+[BG]{background}{placement}[\val\nr]{center,bottom,top}{%
+ \ifcase\nr\relax
+ \renewcommand\Background at Position{current page.center}%
+ \renewcommand\Background at Anchor{}%
+ \renewcommand\Background at Angle{60}
+ \or
+ \renewcommand\Background at Position{current page.south}%
+ \renewcommand\Background at Anchor{above}%
+ \renewcommand\Background at Angle{0}%
+ \or
+ \renewcommand\Background at Position{current page.north}%
+ \renewcommand\Background at Anchor{below}%
+ \renewcommand\Background at Angle{0}%
+ \fi
+}{%
+ \PackageWarning{background}{erroneous input ignored}%
+}
+\define at boolkey+[BG]{background}{firstpage}{%
+ \ifBG at background@firstpage
+ \bg at sometrue%
+ \AtBeginDocument{\BgThispage}%
+ \else
+ \bg at somefalse%
+ \fi
+}{%
+ \PackageWarning{background}{erroneous input ignored}%
+}
+
+\DeclareOptionX[BG]<background>{all}{\bg at somefalse}
+\DeclareOptionX[BG]<background>{some}{\bg at sometrue}
+\DeclareOptionX[BG]<background>{center}{%
+ \renewcommand\Background at Position{current page.center}%
+ \renewcommand\Background at Anchor{}%
+ \renewcommand\Background at Angle{60}}
+\DeclareOptionX[BG]<background>{bottom}{%
+ \renewcommand\Background at Position{current page.south}%
+ \renewcommand\Background at Anchor{above}%
+ \renewcommand\Background at Angle{0}%
+ \renewcommand\Background at Scale{8}}
+\DeclareOptionX[BG]<background>{top}{%
+ \renewcommand\Background at Position{current page.north}%
+ \renewcommand\Background at Anchor{below}%
+ \renewcommand\Background at Angle{0}%
+ \renewcommand\Background at Scale{8}}
+
+
+\ExecuteOptions{all,center}
+
+
+\DeclareOptionX*{\PackageWarningNoLine{background}{Option '\CurrentOption' ignored}}
+
+\ExecuteOptionsX[BG]<background>{%
+ firstpage=false,
+ contents=Draft,%
+ color=red!45,%
+ angle=60,%
+ opacity=0.5,%
+ scale=10,%
+ position=current page.center,%
+ anchor={},%
+ nodeanchor={center},%
+ hshift=0pt,%
+ vshift=0pt%
+}
+
+\ProcessOptionsX[BG]<background>
+\DeclareRobustCommand*\backgroundsetup[1]{%
+ \setkeys[BG]{background}{#1}
+}
+
+\newcommand\bg at material{%
+ \begin{tikzpicture}[remember picture,overlay,scale=\Background at Scale]
+ \node[
+ rotate=\Background at Angle,
+ scale=\Background at Scale,
+ opacity=\Background at Opacity,
+ anchor=\Background at NodeAnchor,
+ xshift=\Background at HShift,
+ yshift=\Background at VShift,
+ color=\Background at Color,
+ inner sep=0pt
+ ]
+ at (\Background at Position) [\Background at Anchor]
+ {\Background at Contents};
+ \end{tikzpicture}}%
+\newcommand\BgThispage{\AddThispageHook{\bg at material}}
+
+\newcommand\NoBgThispage{%
+ \let\oldbg at material\bg at material\renewcommand\bg at material{}%
+ \afterpage{\AddEverypageHook{\oldbg at material}}}
+
+\ifbg at some
+ \AddThispageHook{}
+\else
+ \AddEverypageHook{\bg at material}
+\fi
+
+\newcommand\SetBgContents[1]{%
+ \def\Background at Contents{#1}}
+\newcommand\SetBgAngle[1]{%
+ \def\Background at Angle{#1}}
+\newcommand\SetBgColor[1]{%
+ \def\Background at Color{#1}}
+\newcommand\SetBgScale[1]{%
+ \def\Background at Scale{#1}}
+\newcommand\SetBgVshift[1]{%
+ \def\Background at VShift{#1}}
+\newcommand\SetBgHshift[1]{%
+ \def\Background at HShift{#1}}
+\newcommand\SetBgPosition[1]{%
+ \def\Background at Position{#1}}
+\newcommand\SetBgAnchor[1]{%
+ \def\Background at Anchor{#1}}
+\newcommand\SetBgOpacity[1]{%
+ \def\Background at Opacity{#1}}
+
+\let\BgMaterial\bg at material
+
+\AtEndDocument{\clearpage}
+\endinput
+%%
+%% End of file `background.sty'.
-----------------------------------------------------------------------
Summary of changes:
Makefile | 4 +-
etc/background.sty | 199 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 201 insertions(+), 2 deletions(-)
create mode 100644 etc/background.sty
More information about the freeside-commits
mailing list