summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpagenodes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-09-18 23:41:02 +0000
committerKarl Berry <karl@freefriends.org>2012-09-18 23:41:02 +0000
commitcf73759c7df7a7750abb011e26039e3b0b2cee5a (patch)
tree04b35bd94c08d0a36f2d47bc3e42f94e9c874edd /Master/texmf-dist/tex/latex/tikzpagenodes
parentbc26712b3009a6da7880bf1718125a08c03f05c2 (diff)
tikzpagenodes (16sep12)
git-svn-id: svn://tug.org/texlive/trunk@27723 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpagenodes')
-rw-r--r--Master/texmf-dist/tex/latex/tikzpagenodes/tikzpagenodes.sty94
1 files changed, 74 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpagenodes/tikzpagenodes.sty b/Master/texmf-dist/tex/latex/tikzpagenodes/tikzpagenodes.sty
index 781b6096ad5..a1780c5f8f8 100644
--- a/Master/texmf-dist/tex/latex/tikzpagenodes/tikzpagenodes.sty
+++ b/Master/texmf-dist/tex/latex/tikzpagenodes/tikzpagenodes.sty
@@ -1,5 +1,25 @@
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tikzpagenodes}[2011/09/15 v1.0 Special PGF/TikZ nodes for areas of the page]
+%% Copyright (C) 2011-2012 by Martin Scharrer <martin@scharrer-online.de>
+%% ----------------------------------------------------------------------
+%% 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 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files tikzpagenodes.dtx and tikzpagenodes.ins
+%% and the derived filebase tikzpagenodes.sty.
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{tikzpagenodes}[%
+ 2012/09/16
+ v1.1
+ Special PGF/TikZ nodes for areas of the page]
\RequirePackage{tikz}
\RequirePackage{ifoddpage}
\tikzset{every picture/.append style={execute at begin picture={%
@@ -10,40 +30,74 @@
\def\currentsidemargin{\ifoddpageoroneside\oddsidemargin\else\evensidemargin\fi}%
\def\current@textarea@left{(1in+\hoffset+\currentsidemargin)}
\def\current@textarea@top{(1in+\voffset+\topmargin+\headheight+\headsep)}
-\expandafter\def\csname pgf@sh@ns@current page text area\endcsname{rectangle}
-\expandafter\def\csname pgf@sh@np@current page text area\endcsname{%
+\def\@newtikzpagenode#1{%
+ \expandafter\let\csname pgf@sh@ns@#1\expandafter\endcsname\csname pgf@sh@ns@current page\endcsname
+ \expandafter\let\csname pgf@sh@nt@#1\expandafter\endcsname\csname pgf@sh@nt@current page\endcsname
+ \expandafter\let\csname pgf@sh@pi@#1\expandafter\endcsname\csname pgf@sh@pi@current page\endcsname
+ \expandafter\def\csname pgf@sh@np@#1\endcsname
+}
+\@newtikzpagenode{current page text area}{%
\def\southwest{\pgfpoint{\current@textarea@left}{\paperheight-\current@textarea@top-\textheight}}%
\def\northeast{\pgfpoint{\current@textarea@left+\textwidth}{\paperheight-\current@textarea@top}}%
}
-\expandafter\let\csname pgf@sh@nt@current page text area\expandafter\endcsname\csname pgf@sh@nt@current page\endcsname
-\expandafter\let\csname pgf@sh@pi@current page text area\expandafter\endcsname\csname pgf@sh@pi@current page\endcsname
-\expandafter\def\csname pgf@sh@ns@current page marginpar area\endcsname{rectangle}
-\expandafter\def\csname pgf@sh@np@current page marginpar area\endcsname{%
+\@newtikzpagenode{current page marginpar area}{%
\def\southwest{\pgfpoint
- {\current@textarea@left\ifoddpageoroneside+\textwidth+\marginparsep\else-\marginparsep\fi}%
+ {\current@textarea@left\ifoddpageoroneside+\textwidth+\marginparsep\else-\marginparsep-\marginparwidth\fi}%
{\paperheight-\current@textarea@top-\textheight}%
}%
\def\northeast{\pgfpoint
- {\current@textarea@left\ifoddpageoroneside+\textwidth+\marginparsep+\marginparwidth\else-\marginparsep-\marginparwidth\fi}%
+ {\current@textarea@left\ifoddpageoroneside+\textwidth+\marginparsep+\marginparwidth\else-\marginparsep\fi}%
{\paperheight-\current@textarea@top}%
}%
}
-\expandafter\let\csname pgf@sh@nt@current page marginpar area\expandafter\endcsname\csname pgf@sh@nt@current page\endcsname
-\expandafter\let\csname pgf@sh@pi@current page marginpar area\expandafter\endcsname\csname pgf@sh@pi@current page\endcsname
-\expandafter\def\csname pgf@sh@ns@current page header area\endcsname{rectangle}
-\expandafter\def\csname pgf@sh@np@current page header area\endcsname{%
+\@newtikzpagenode{current page header area}{%
\def\southwest{\pgfpoint{\current@textarea@left}{\paperheight-\current@textarea@top+\headsep}}%
\def\northeast{\pgfpoint{\current@textarea@left+\textwidth}{\paperheight-\current@textarea@top+\headsep+\headheight}}%
}
-\expandafter\let\csname pgf@sh@nt@current page header area\expandafter\endcsname\csname pgf@sh@nt@current page\endcsname
-\expandafter\let\csname pgf@sh@pi@current page header area\expandafter\endcsname\csname pgf@sh@pi@current page\endcsname
-\expandafter\def\csname pgf@sh@ns@current page footer area\endcsname{rectangle}
-\expandafter\def\csname pgf@sh@np@current page footer area\endcsname{%
+\@newtikzpagenode{current page footer area}{%
\def\southwest{\pgfpoint{\current@textarea@left}{\paperheight-\current@textarea@top-\textheight-\footskip}}%
\def\northeast{\pgfpoint{\current@textarea@left+\textwidth}{\paperheight-\current@textarea@top-\textheight-\footskip+\headheight}}%
}
-\expandafter\let\csname pgf@sh@nt@current page footer area\expandafter\endcsname\csname pgf@sh@nt@current page\endcsname
-\expandafter\let\csname pgf@sh@pi@current page footer area\expandafter\endcsname\csname pgf@sh@pi@current page\endcsname
+\@newtikzpagenode{current page column 1 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+\columnwidth}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 2 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+\columnwidth+\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+2\columnwidth+\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 3 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+2\columnwidth+2\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+3\columnwidth+2\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 4 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+3\columnwidth+3\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+4\columnwidth+3\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 5 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+4\columnwidth+4\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+5\columnwidth+4\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 6 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+5\columnwidth+5\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+6\columnwidth+5\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 7 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+6\columnwidth+6\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+7\columnwidth+6\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 8 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+7\columnwidth+7\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+8\columnwidth+7\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 9 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+8\columnwidth+8\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+9\columnwidth+8\columnsep}{\paperheight-\current@textarea@top}}%
+}
+\@newtikzpagenode{current page column 10 area}{%
+ \def\southwest{\pgfpoint{\current@textarea@left+9\columnwidth+9\columnsep}{\paperheight-\current@textarea@top-\textheight}}%
+ \def\northeast{\pgfpoint{\current@textarea@left+10\columnwidth+9\columnsep}{\paperheight-\current@textarea@top}}%
+}
\endinput
%%
%% End of file `tikzpagenodes.sty'.