texlive[41949] Master: tikz-page (29aug16)

commits+karl at tug.org commits+karl at tug.org
Mon Aug 29 23:19:42 CEST 2016


Revision: 41949
          http://tug.org/svn/texlive?view=revision&revision=41949
Author:   karl
Date:     2016-08-29 23:19:42 +0200 (Mon, 29 Aug 2016)
Log Message:
-----------
tikz-page (29aug16)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/tikz-page/
    trunk/Master/texmf-dist/doc/latex/tikz-page/Makefile
    trunk/Master/texmf-dist/doc/latex/tikz-page/README
    trunk/Master/texmf-dist/doc/latex/tikz-page/README.md
    trunk/Master/texmf-dist/doc/latex/tikz-page/example.png
    trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf
    trunk/Master/texmf-dist/source/latex/tikz-page/
    trunk/Master/texmf-dist/source/latex/tikz-page/tikz-page.dtx
    trunk/Master/texmf-dist/tex/latex/tikz-page/
    trunk/Master/texmf-dist/tex/latex/tikz-page/tikz-page.sty
    trunk/Master/tlpkg/tlpsrc/tikz-page.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/tikz-page/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-page/Makefile	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikz-page/Makefile	2016-08-29 21:19:42 UTC (rev 41949)
@@ -0,0 +1,49 @@
+##
+
+
+export TEXMFHOME="~/texmf:"
+PACKAGE = tikz-page
+
+cleanext := $(wildcard *.dvi *.aux *.glo *.ilg *.ind *.toc *.hd *.idx *.listing *.log *.out _minted-*)
+
+listings := $(wildcard $(PACKAGE)-*.tex wildcard $(PACKAGE)-*.md5 wildcard $(PACKAGE)-*.pdf)
+
+objects := $(PACKAGE).sty $(PACKAGE).pdf
+
+LATEX := $(shell which latex)
+PDFLATEX := $(shell which pdflatex)
+PANDOC := $(shell which pandoc)
+
+CTANDIR := $(PACKAGE)
+CTANDIST = Makefile README.md README \
+	tikz-page.pdf tikz-page.dtx tikz-page.sty \
+	example.png
+
+all: $(objects) README
+
+%.sty: %.dtx
+	$(RM) -f $@
+	$(LATEX) '\let\install=y\input{$<}'
+
+%.pdf: %.dtx
+	TEXMFHOME="~/texmf:" $(PDFLATEX) -shell-escape $<
+	makeindex -s gind.ist $(PACKAGE).idx
+	TEXMFHOME="~/texmf:" $(PDFLATEX) -shell-escape $<
+	#$(PDFLATEX) -shell-escape $<
+
+clean:
+	$(RM) -fr $(cleanext) $(listings) $(PACKAGE).zip
+
+distclean: clean
+	$(RM) -f $(objects) README $(CTANDIR)
+
+README: README.md
+	$(PANDOC) -t plain -o $@ $<
+
+CTAN: all README clean
+	mkdir -p $(CTANDIR)
+	cp $(CTANDIST) $(CTANDIR)
+	zip -ll -q -r -X $(CTANDIR).zip $(CTANDIR)
+
+
+.PHONY: %.dty


Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-page/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tikz-page/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-page/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikz-page/README	2016-08-29 21:19:42 UTC (rev 41949)
@@ -0,0 +1,108 @@
+
+
+TIKZ PAGE
+
+
+Small macro to help building nice and complex page layout materials.
+
+
+Build
+
+You can build the whole package using the make command.
+
+
+Installation
+
+To install the tkiz-page package copy its directory to either to:
+
+-   $TEXHOME/tex/latex/
+-   $TEXMFHOME/tex/latex/
+-   ~/texmf/tex/latex/
+-   ~/Library/texmf/tex/latex/
+
+
+Usage
+
+A simple page:
+
+    \documentclass{article}
+    \usepackage{tikz-page}
+    \usepackage{lipsum}
+    \newcommand{\tikzpagelayout}{
+      \tpshowframes
+      \tikzpageputanchors
+    }
+    \pagestyle{plain}
+    \begin{document}
+    \lipsum
+    \end{document}
+
+A more complex document:
+
+    \documentclass{article}
+    \usepackage{tikz-page}
+    \usepackage{lipsum}
+    \definecolor{halfgray}{gray}{0.55}
+    \newcommand\anglei{-45}
+    \newcommand\angleii{45}
+    \newcommand\angleiii{225}
+    \newcommand\angleiv{135}
+    \newcommand{\tikzpagelayout}{
+      \tpflip{
+        \coordinate (aux1) at ([yshift=-15pt]page.northeast);
+        \coordinate (aux2) at ([yshift=-410pt]page.northeast);
+        \coordinate (aux3) at ([xshift=-4.5cm]page.northeast);
+        \coordinate (aux4) at ([yshift=-150pt]page.northeast);
+      }{
+        \coordinate (aux1) at ([yshift=-15pt]page.northwest);
+        \coordinate (aux2) at ([yshift=-410pt]page.northwest);
+        \coordinate (aux3) at ([xshift=4.5cm]page.northwest);
+        \coordinate (aux4) at ([yshift=-150pt]page.northwest);
+        \renewcommand\anglei{-135}
+        \renewcommand\angleii{135}
+        \renewcommand\angleiii{-45}
+        \renewcommand\angleiv{45}
+      }
+      \begin{scope}[halfgray!40,line width=12pt,rounded corners=12pt]
+        \draw (aux1) -- coordinate (a) ++(\angleiii:5) -- ++(\anglei:5.1) coordinate (b);
+        \draw[shorten <= -10pt] (aux3) -- (a) -- (aux1);
+        \draw[opacity=0.6,halfgray,shorten <= -10pt] (b) -- ++(\angleiii:2.2) -- ++(\anglei:2.2);
+      \end{scope}
+      \draw[halfgray,line width=8pt,rounded corners=8pt,shorten <= -10pt]
+      (aux4) -- ++(\angleiii:0.8) -- ++(\anglei:0.8);
+      \begin{scope}[halfgray!70,line width=6pt,rounded corners=8pt]
+        \draw[shorten <= -10pt] (aux2) -- ++(\angleiii:3) coordinate[pos=0.45] (c) -- ++(\anglei:3.1);
+        \draw (aux2) -- (c) -- ++(\angleiv:2.5) -- ++(\angleii:2.5) -- ++(\anglei:2.5) coordinate[pos=0.3] (d);   
+        \draw (d) -- +(\angleii:1);
+      \end{scope}
+    }
+    \pagestyle{plain}
+    \begin{document}
+    \lipsum
+    \end{document}
+
+See tikz-page.pdf for further help.
+
+
+Example
+
+[tikz example]
+
+
+License
+
+This program is free software. It comes without any warranty, to the
+extent permitted by applicable law. You can redistribute it and/or
+modify it under the terms of the Do What The Fuck You Want To Public
+License, Version 2, as published by Sam Hocevar. See
+http://sam.zoy.org/wtfpl/COPYING for more details.
+
+This file may be distributed and/or modified under the conditions of the
+LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX version
+2006/05/20 or later.


Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-page/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tikz-page/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-page/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikz-page/README.md	2016-08-29 21:19:42 UTC (rev 41949)
@@ -0,0 +1,107 @@
+# Tikz page
+
+Small macro to help building nice and complex page layout materials.
+
+
+## Build
+
+You can build the whole package using the `make` command.
+
+## Installation
+
+To install the `tkiz-page` package copy its directory to either to:
+
+- `$TEXHOME/tex/latex/`
+- `$TEXMFHOME/tex/latex/`
+- `~/texmf/tex/latex/`
+- `~/Library/texmf/tex/latex/`
+
+
+## Usage
+
+A simple page:
+
+````Tex
+\documentclass{article}
+\usepackage{tikz-page}
+\usepackage{lipsum}
+\newcommand{\tikzpagelayout}{
+  \tpshowframes
+  \tikzpageputanchors
+}
+\pagestyle{plain}
+\begin{document}
+\lipsum
+\end{document}
+````
+
+A more complex document:
+
+```Tex
+\documentclass{article}
+\usepackage{tikz-page}
+\usepackage{lipsum}
+\definecolor{halfgray}{gray}{0.55}
+\newcommand\anglei{-45}
+\newcommand\angleii{45}
+\newcommand\angleiii{225}
+\newcommand\angleiv{135}
+\newcommand{\tikzpagelayout}{
+  \tpflip{
+    \coordinate (aux1) at ([yshift=-15pt]page.northeast);
+    \coordinate (aux2) at ([yshift=-410pt]page.northeast);
+    \coordinate (aux3) at ([xshift=-4.5cm]page.northeast);
+    \coordinate (aux4) at ([yshift=-150pt]page.northeast);
+  }{
+    \coordinate (aux1) at ([yshift=-15pt]page.northwest);
+    \coordinate (aux2) at ([yshift=-410pt]page.northwest);
+    \coordinate (aux3) at ([xshift=4.5cm]page.northwest);
+    \coordinate (aux4) at ([yshift=-150pt]page.northwest);
+    \renewcommand\anglei{-135}
+    \renewcommand\angleii{135}
+    \renewcommand\angleiii{-45}
+    \renewcommand\angleiv{45}
+  }
+  \begin{scope}[halfgray!40,line width=12pt,rounded corners=12pt]
+    \draw (aux1) -- coordinate (a) ++(\angleiii:5) -- ++(\anglei:5.1) coordinate (b);
+    \draw[shorten <= -10pt] (aux3) -- (a) -- (aux1);
+    \draw[opacity=0.6,halfgray,shorten <= -10pt] (b) -- ++(\angleiii:2.2) -- ++(\anglei:2.2);
+  \end{scope}
+  \draw[halfgray,line width=8pt,rounded corners=8pt,shorten <= -10pt]
+  (aux4) -- ++(\angleiii:0.8) -- ++(\anglei:0.8);
+  \begin{scope}[halfgray!70,line width=6pt,rounded corners=8pt]
+    \draw[shorten <= -10pt] (aux2) -- ++(\angleiii:3) coordinate[pos=0.45] (c) -- ++(\anglei:3.1);
+    \draw (aux2) -- (c) -- ++(\angleiv:2.5) -- ++(\angleii:2.5) -- ++(\anglei:2.5) coordinate[pos=0.3] (d);   
+    \draw (d) -- +(\angleii:1);
+  \end{scope}
+}
+\pagestyle{plain}
+\begin{document}
+\lipsum
+\end{document}
+```
+
+See [tikz-page.pdf](tikz-page.pdf) for further help.
+
+
+## Example
+
+![tikz example](example.png)
+
+## License
+
+This program is free software. It comes without any warranty, to the extent
+permitted by applicable law. You can redistribute it and/or modify it under
+the terms of the Do What The Fuck You Want To Public License, Version 2, as
+published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
+details.
+
+This file may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX
+version 2006/05/20 or later.


Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-page/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tikz-page/example.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/tikz-page/example.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-page/example.png	2016-08-29 01:17:42 UTC (rev 41948)
+++ trunk/Master/texmf-dist/doc/latex/tikz-page/example.png	2016-08-29 21:19:42 UTC (rev 41949)

Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-page/example.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf	2016-08-29 01:17:42 UTC (rev 41948)
+++ trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf	2016-08-29 21:19:42 UTC (rev 41949)

Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-page/tikz-page.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/tikz-page/tikz-page.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tikz-page/tikz-page.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/tikz-page/tikz-page.dtx	2016-08-29 21:19:42 UTC (rev 41949)
@@ -0,0 +1,871 @@
+% \iffalse meta-comment % -*- latex -*-
+%
+%<*ignore>
+\begingroup
+  \catcode123=1 %
+  \catcode125=2 %
+  \def\x{LaTeX2e}%
+\expandafter\endgroup
+\ifcase 0\ifx\install y1\fi\expandafter
+         \ifx\csname processbatchFile\endcsname\relax\else1\fi
+         \ifx\fmtname\x\else 1\fi\relax
+\else\csname fi\endcsname
+%</ignore>
+%<*install>
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/tikz-page}
+
+\let\MetaPrefix\relax
+\preamble
+This is a generated file.
+
+Copyright © 2016 by Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
+
+This program is free software. It comes without any warranty, to the extent
+permitted by applicable law. You can redistribute it and/or modify it under
+the terms of the Do What The Fuck You Want To Public License, Version 2, as
+published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
+details.
+
+This file may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX
+version 2006/05/20 or later.
+
+\endpreamble%
+\let\MetaPrefix\DoubleperCent
+
+
+\generate{\file{tikz-page.sty}{\from{tikz-page.dtx}{tikz-page}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{*                                                           *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX:                    *}
+\Msg{*                                                           *}
+\Msg{* tikz-page.sty                                             *}
+\Msg{*                                                           *}
+\Msg{* To produce the documentation run the file mypackage.dtx   *}
+\Msg{* through LaTeX.                                            *}
+\Msg{*                                                           *}
+\Msg{* Happy TeXing!                                             *}
+\Msg{*                                                           *}
+\Msg{*************************************************************}
+\endbatchfile
+%</install>
+%<*ignore>
+\fi
+%</ignore>
+%<*driver>
+\ProvidesFile{tikz-page.drv}
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\usepackage[english]{babel}
+\usepackage[T1]{fontenc} 
+\usepackage[utf8]{inputenc}
+\usepackage{tcolorbox}
+\tcbuselibrary{listings,documentation}
+\tcbuselibrary{documentation,listings,minted}
+\tcbuselibrary{breakable}
+\tcbuselibrary{skins,raster}
+\tcbset{listing engine=minted}
+\usepackage{url}
+\usepackage{minted}
+\usepackage{calc}
+\usepackage{makeidx}
+\usepackage[textpos]{tikz-page}
+\renewcommand{\headrulewidth}{0pt}
+\makeindex
+\definecolor{halfgray}{gray}{0.55}
+\newcommand\anglei{-45}
+\newcommand\angleii{45}
+\newcommand\angleiii{225}
+\newcommand\angleiv{135}
+\newcommand{\pagedecoration}{
+  \tpflip{
+    \coordinate (aux1) at ([yshift=-15pt]page.northeast);
+    \coordinate (aux2) at ([yshift=-410pt]page.northeast);
+    \coordinate (aux3) at ([xshift=-4.5cm]page.northeast);
+    \coordinate (aux4) at ([yshift=-150pt]page.northeast);
+  }{
+    \coordinate (aux1) at ([yshift=-15pt]page.northwest);
+    \coordinate (aux2) at ([yshift=-410pt]page.northwest);
+    \coordinate (aux3) at ([xshift=4.5cm]page.northwest);
+    \coordinate (aux4) at ([yshift=-150pt]page.northwest);
+    \renewcommand\anglei{-135}
+    \renewcommand\angleii{135}
+    \renewcommand\angleiii{-45}
+    \renewcommand\angleiv{45}
+  }
+  \begin{scope}[halfgray!40,line width=12pt,rounded corners=12pt]
+    \draw (aux1) -- coordinate (a) ++(\angleiii:5) -- ++(\anglei:5.1) coordinate (b);
+    \draw[shorten <= -10pt] (aux3) -- (a) -- (aux1);
+    \draw[opacity=0.6,halfgray,shorten <= -10pt] (b) -- ++(\angleiii:2.2) -- ++(\anglei:2.2);
+  \end{scope}
+  \draw[halfgray,line width=8pt,rounded corners=8pt,shorten <= -10pt]
+  (aux4) -- ++(\angleiii:0.8) -- ++(\anglei:0.8);
+  \begin{scope}[halfgray!70,line width=6pt,rounded corners=8pt]
+    \draw[shorten <= -10pt] (aux2) -- ++(\angleiii:3) coordinate[pos=0.45] (c) -- ++(\anglei:3.1);
+    \draw (aux2) -- (c) -- ++(\angleiv:2.5) -- ++(\angleii:2.5) -- ++(\anglei:2.5) coordinate[pos=0.3] (d);   
+    \draw (d) -- +(\angleii:1);
+  \end{scope}
+}
+
+\newcommand{\tikzpagelayout}{
+  \pagedecoration
+  \node [,outer sep=0,inner sep=0,anchor=base] at (page.footer center) {\thepage};
+  \node [,outer sep=0,inner sep=0,anchor=base, rotate=90, color=black!10] at (page.left south) {\footnotesize{tikz-page \pkgfileversion}};
+}
+\fancypagestyle{plain}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+\fancypagestyle{titlepage}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+\pagestyle{plain}
+\begin{document}
+\DocInput{tikz-page.dtx}
+\printindex
+
+\end{document}
+%</driver>
+%<*README>
+
+%</README>
+
+% \fi
+
+% \iffalse
+%% DeclareTCBListing{macrocode} leave a blank line after code.
+% \fi
+
+% \expandafter \let \csname macrocode\endcsname \relax \expandafter \let \csname endmacrocode\endcsname \relax
+% \expandafter \let \csname macrocode*\endcsname \relax \expandafter \let \csname endmacrocode*\endcsname \relax
+% \newminted[macrocode]{latex}{breaklines,breakafter=()/+-\\,baselinestretch=0.5,fontsize=\footnotesize,linenos,numbersep=3mm,firstnumber=last}
+%
+% \BeforeBeginEnvironment{macrocode}{%
+% \begin{tcolorbox}[boxrule=0.1pt,colframe=red!75!black,left=8mm,width=\linewidth,breakable=true,colback=white,enhanced]}
+% \AfterEndEnvironment{macrocode}{\end{tcolorbox}}%
+
+
+% \newminted[example]{latex}{breaklines,breakafter=()/+-\\,baselinestretch=0.5,fontsize=\footnotesize}
+% \BeforeBeginEnvironment{example}{%
+% \begin{tcolorbox}[boxrule=0.1pt,colframe=red!75!black,left=8mm,width=\linewidth,breakable=true,colback=white,enhanced]}
+% \AfterEndEnvironment{example}{\end{tcolorbox}}%
+
+% \tcbset{
+%   tpexample/.style = {%
+%     enhanced jigsaw,
+%     lower separated=false,
+%     leftlower=0pt,
+%     rightlower=0pt,
+%     boxrule=0.1pt,
+%     breakable=true,
+%     colframe=red!75!black,
+%     colback=white,
+%     listing engine=minted,
+%     minted options={breaklines,breakafter=()/+-\\,baselinestretch=0.5,fontsize=\footnotesize},
+%     listing and comment,
+%     pdf comment,
+%     compilable listing,
+%     run pdflatex}
+% }
+
+
+% \iffalse
+%<*tikz-page>
+% \fi
+\def\pkgfileversion{1.0}
+\def\pkgfiledate{2016/08/22}
+% \iffalse
+%</tikz-page>
+% \fi
+
+% \title{the \textsc{tikz-page} package }
+% \author {Sébastien Gross <seb chezwam org>}
+% \date{This file describes version \pkgfileversion\  (\pkgfiledate)}
+% \maketitle
+% \tableofcontents
+
+
+% \section{Introduction}
+
+% There are many ways to embelish a page with \LaTeX. One of the most
+% easiest way is to use |fancyhdr| which allows to redefine both headers and
+% footer. The |geometry| package is also useful to setup correct margins. If
+% you need to put some background materials this might become painful,
+% especially if you need your background to reach the page borders.
+
+% There are some trick that help you in this task. |tikz-page| helps you in
+% this way by the use of semeral mechanisms. Either you can use plain |tikz|
+% picture on the background of your page, or use the \meta{textpos} option
+% which enables absolute |textpos| positionning. Each method has its
+% benefits and nuisances. With |tikz| you have to compile your document
+% twice (which can be painful while you are designing your page layout) and
+% with |textpos| you can get some incompatibility issues (please refer to
+% |textpos| documentation).
+
+% |tikz-page| is trying to give you best of both world by creating a new
+% page object in a |tikzpicture| with many anchors. So you can easily place
+% your page material at its correct position.
+
+
+% \section{Usage}
+
+% Basically you only need to add \mintinline{latex}{\usepackage{tikz-page}}
+% at the begining of your document. Then you have to declare a
+% \docAuxCommand{tikzpagelayout} command which is executed inside the
+% background |tikzpicture|. Thus you can access the |page| shape and all its
+% anchors. For example the following simple example add the page number to
+% the footer center:
+
+% \iffalse
+%<*example>
+% \fi
+% \begin{example}
+\newcommand{tikzpagelayout}{%
+  \node [outer sep=0,inner sep=0,anchor=base] at (page.footer center) {\thepage};
+}
+% \end{example}
+% \iffalse
+%</example>
+% \fi
+
+
+% If you want to simulate the default |fancyhdr| behaviour you can define the
+% \docAuxCommand{tikzpagelayout} as following:
+
+
+% \iffalse
+%<*example>
+% \fi
+% \begin{example}
+\newcommand{tikzpagelayout}{%
+  \node [outer sep=0,inner sep=0, anchor=mid east] at (page.header east) {\tpflip{\sl\leftmark}{\sl\rightmark}};
+  \node [outer sep=0,inner sep=0, anchor=mid west] at (page.header west) {\tpflip{\sl\rightmark}{\sl\leftmark}};
+  \node [,outer sep=0,inner sep=0,anchor=base] at (page.footer center) {\thepage};
+% \end{example}
+% \iffalse
+%</example>
+% \fi
+
+% A minimum working example:
+% \iffalse
+%<*example>
+% \fi
+%\begin{tcblisting}{tpexample}
+\documentclass{article}
+\usepackage{tikz-page}
+\usepackage{lipsum}
+\newcommand{\tikzpagelayout}{
+  \tpshowframes
+  \tikzpageputanchors
+}
+\pagestyle{plain}
+\begin{document}
+\lipsum
+\end{document}
+% \end{tcblisting}
+% \iffalse
+%</example>
+% \fi
+
+
+% A more complex example\cite{Graphical Decoration}:
+% \iffalse
+%<*example>
+% \fi
+%\begin{tcblisting}{tpexample}
+\documentclass{article}
+\usepackage{tikz-page}
+\usepackage{lipsum}
+\definecolor{halfgray}{gray}{0.55}
+\newcommand\anglei{-45}
+\newcommand\angleii{45}
+\newcommand\angleiii{225}
+\newcommand\angleiv{135}
+\newcommand{\tikzpagelayout}{
+  \tpflip{
+    \coordinate (aux1) at ([yshift=-15pt]page.northeast);
+    \coordinate (aux2) at ([yshift=-410pt]page.northeast);
+    \coordinate (aux3) at ([xshift=-4.5cm]page.northeast);
+    \coordinate (aux4) at ([yshift=-150pt]page.northeast);
+  }{
+    \coordinate (aux1) at ([yshift=-15pt]page.northwest);
+    \coordinate (aux2) at ([yshift=-410pt]page.northwest);
+    \coordinate (aux3) at ([xshift=4.5cm]page.northwest);
+    \coordinate (aux4) at ([yshift=-150pt]page.northwest);
+    \renewcommand\anglei{-135}
+    \renewcommand\angleii{135}
+    \renewcommand\angleiii{-45}
+    \renewcommand\angleiv{45}
+  }
+  \begin{scope}[halfgray!40,line width=12pt,rounded corners=12pt]
+    \draw (aux1) -- coordinate (a) ++(\angleiii:5) -- ++(\anglei:5.1) coordinate (b);
+    \draw[shorten <= -10pt] (aux3) -- (a) -- (aux1);
+    \draw[opacity=0.6,halfgray,shorten <= -10pt] (b) -- ++(\angleiii:2.2) -- ++(\anglei:2.2);
+  \end{scope}
+  \draw[halfgray,line width=8pt,rounded corners=8pt,shorten <= -10pt]
+  (aux4) -- ++(\angleiii:0.8) -- ++(\anglei:0.8);
+  \begin{scope}[halfgray!70,line width=6pt,rounded corners=8pt]
+    \draw[shorten <= -10pt] (aux2) -- ++(\angleiii:3) coordinate[pos=0.45] (c) -- ++(\anglei:3.1);
+    \draw (aux2) -- (c) -- ++(\angleiv:2.5) -- ++(\angleii:2.5) -- ++(\anglei:2.5) coordinate[pos=0.3] (d);   
+    \draw (d) -- +(\angleii:1);
+  \end{scope}
+}
+\pagestyle{plain}
+\begin{document}
+\lipsum
+\end{document}
+% \end{tcblisting}
+% \iffalse
+%</example>
+% \fi
+
+
+
+% \iffalse
+%<*tikz-page>
+% \fi
+
+% \iffalse
+%% Reset the FancyVerbLine counter to have the correct lines number in front
+%% of implementation.
+% \fi
+% \setcounter{FancyVerbLine}{0}
+
+% \section{Implementation}
+
+%    \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tikz-page}[\pkgfiledate\space (v\pkgfileversion)]
+%    \end{macrocode}
+
+% The \meta{textpos} option can be used if you want to use |textpos|
+% \meta{overlay} option instead of |current page| to position the page
+% layout. Beware that |textpos| with \meta{overlay} option maybe incompatible
+% with some other packages. On the other hand |tikz| |current page| requires
+% at least 2 compilation to work correctly. Thus you might want to use
+% \meta{textpos} at conception time and remove this option for your final
+% build or if you have incompatibility issues.
+
+%    \begin{macrocode}
+\newif\if at tp@use at textpos\@tp at use@textposfalse
+\DeclareOption{textpos}{\@tp at use@textpostrue}
+\ProcessOptions
+
+\if at tp@use at textpos
+\RequirePackage[absolute]{textpos}
+\fi
+%    \end{macrocode}
+
+%    \begin{macrocode}
+\RequirePackage{fancyhdr}
+\RequirePackage{tikz}
+\usetikzlibrary{plotmarks,calc,shapes,positioning,decorations.text}
+\RequirePackage{graphicx}
+\RequirePackage{calc}
+%    \end{macrocode}
+
+
+\makeatletter
+
+% All margin sizes are defined in\docLength{@tp at left@margin},
+% \docLength{@tp at right@margin}, \docLength{@tp at top@margin},
+% \docLength{@tp at bottom@margin} their values are computed by the
+% \refCom{tp at compute@margins}.
+
+%    \begin{macrocode}
+\newlength{\@tp at left@margin}
+\newlength{\@tp at right@margin}
+\newlength{\@tp at top@margin}
+\newlength{\@tp at bottom@margin}
+%    \end{macrocode}
+
+
+% \begin{docCommand}{@tp at create@length}{\marg{block name}\marg{length name}}
+
+% Generate a \cs{tp@\meta{block name}@\meta{length name}} length. This
+% command is intended to be only used to create block length defined below.
+
+%    \begin{macrocode}
+\newcommand\@tp at create@length[2]{%
+  \expandafter\newskip\csname tp@#1@#2\endcsname%
+}%
+%    \end{macrocode}
+% \end{docCommand}
+% 
+
+% For each standard blocks in the page (|page|, |body|, |marginpar|,
+% |header|, |footer|) and additionnal blocks (|top|, |right|, |bottom|,
+% |left|), 6 lenths are computed in order to define their anchors. Each
+% length is defined using the \refCom{@tp at create@length} macro.
+
+%    \begin{macrocode}
+\foreach\@@tp at element in {page,body,marginpar,header,footer,top,right,bottom,left}{%
+  \foreach\@@tp at len in {xmin,xmax,xmid,ymin,ymax,ymid}{%
+    \@tp at create@length{\@@tp at element}{\@@tp at len}%
+}}%
+%    \end{macrocode}
+
+% \begin{docCommand}{tcflip}{\marg{odd page code}\marg{even page code}}
+% Execute \meta{odd page even code} on odd pages and \meta{even page code}
+% on even ones.
+% \end{docCommand}
+%    \begin{macrocode}
+\newcommand{\tpflip}[2]{\ifodd\thepage#1\else#2\fi}
+%    \end{macrocode}
+
+% \begin{docCommand}{tp at compute@margins}{}
+%
+% This is where the magic happens. This command sets all \cs{tp@\meta{block
+% name}@\meta{length name}} lengths.
+%
+% \end{docCommand}
+
+%    \begin{macrocode}
+\def\tp at compute@margins{%
+  \setlength{\tp at page@xmin}{0pt}%
+  \setlength{\tp at page@ymin}{0pt}%
+  \setlength{\tp at page@xmax}{\paperwidth}%
+  \setlength{\tp at page@ymax}{\paperheight}%
+  \setlength{\tp at page@xmid}{\dimexpr(\tp at page@xmin+\tp at page@xmax)/2\relax}%
+  \setlength{\tp at page@ymid}{\dimexpr(\tp at page@ymin+\tp at page@ymax)/2\relax}%
+  %
+  \setlength\@tp at left@margin{\dimexpr(1in+\hoffset+\tpflip{\oddsidemargin}{\evensidemargin})\relax}%
+  \setlength\@tp at right@margin{\dimexpr(\paperwidth-\@tp at left@margin-\textwidth)\relax}%
+  \setlength\@tp at top@margin{\dimexpr(1in+\voffset+\topmargin+\headheight+\headsep)\relax}%
+  \setlength\@tp at bottom@margin{\dimexpr(\paperheight-(\textheight+\@tp at top@margin))\relax}%
+  %% Body computation
+  \setlength\tp at body@xmin{\dimexpr\tp at page@xmin+\@tp at left@margin\relax}%
+  \setlength\tp at body@xmax{\dimexpr\tp at page@xmax-\@tp at right@margin\relax}%
+  \setlength\tp at body@xmid{\dimexpr((\tp at body@xmax+\tp at body@xmin)/2)\relax}%
+  \setlength\tp at body@ymax{\dimexpr(\tp at page@ymax-\@tp at top@margin)\relax}%
+  \setlength\tp at body@ymin{\dimexpr\tp at body@ymin+\@tp at bottom@margin\relax}%
+  \setlength\tp at body@ymid{\dimexpr(\tp at body@ymin+(\tp at body@ymax-\tp at body@ymin)/2)\relax}%
+  %
+  %% Margin computation
+  %
+  \tpflip{%
+    \setlength\tp at marginpar@xmin{\dimexpr\tp at body@xmax+\marginparsep\relax}
+    \setlength\tp at marginpar@xmax{\dimexpr\tp at marginpar@xmin+\marginparwidth\relax}%
+  }{%
+    \setlength\tp at marginpar@xmax{\dimexpr\tp at body@xmin-\marginparsep\relax}%
+    \setlength\tp at marginpar@xmin{\dimexpr\tp at marginpar@xmax-\marginparwidth\relax}%
+  }%
+  \setlength\tp at marginpar@xmid{\dimexpr((\tp at marginpar@xmax+\tp at marginpar@xmin)/2)\relax}%
+  \setlength\tp at marginpar@ymax{\tp at body@ymax}%
+  \setlength\tp at marginpar@ymin{\tp at body@ymin}%
+  \setlength\tp at marginpar@ymid{\tp at body@ymid}%
+  %
+  %% header
+  %
+  \setlength\tp at header@xmax{\tp at body@xmax}%
+  \setlength\tp at header@xmin{\tp at body@xmin}%
+  \setlength\tp at header@xmid{\tp at body@xmid}%
+  \setlength\tp at header@ymin{\dimexpr\tp at body@ymax+\headsep\relax}%
+  \setlength\tp at header@ymax{\dimexpr\tp at header@ymin+\headheight\relax}%
+  \setlength\tp at header@ymid{\dimexpr((\tp at header@ymax+\tp at header@ymin)/2)\relax}%
+  %
+  %% footer
+  %
+  \setlength\tp at footer@xmax{\tp at body@xmax}%
+  \setlength\tp at footer@xmin{\tp at body@xmin}%
+  \setlength\tp at footer@xmid{\tp at body@xmid}%
+  \setlength\tp at footer@ymin{\dimexpr\tp at body@ymin-\footskip\relax}%
+  \setlength\tp at footer@ymax{\tp at footer@ymin}%
+  \setlength\tp at footer@ymid{\dimexpr((\tp at footer@ymax+\tp at footer@ymin)/2)\relax}%
+  %%
+  %% blocks%
+  %%
+  \setlength\tp at top@xmin{\tp at page@xmin}%
+  \setlength\tp at top@xmax{\tp at page@xmax}%
+  \setlength\tp at top@xmid{\dimexpr((\tp at top@xmax+\tp at top@xmin)/2)\relax}%
+  \setlength\tp at top@ymin{\tp at body@ymax}%
+  \setlength\tp at top@ymax{\tp at page@ymax}%
+  \setlength\tp at top@ymid{\dimexpr((\tp at top@ymax+\tp at top@ymin)/2)\relax}%
+  %%
+  \setlength\tp at bottom@xmin{\tp at page@xmin}%
+  \setlength\tp at bottom@xmax{\tp at page@xmax}%
+  \setlength\tp at bottom@xmid{\dimexpr((\tp at bottom@xmax+\tp at bottom@xmin)/2)\relax}%
+  \setlength\tp at bottom@ymin{\tp at page@ymin}%
+  \setlength\tp at bottom@ymax{\tp at body@ymin}%
+  \setlength\tp at bottom@ymid{\dimexpr((\tp at bottom@ymax+\tp at bottom@ymin)/2)\relax}%
+  %%
+  \setlength\tp at left@xmin{\tp at page@xmin}%
+  \setlength\tp at left@xmax{\tp at body@xmin}%
+  \setlength\tp at left@xmid{\dimexpr((\tp at left@xmax+\tp at left@xmin)/2)\relax}%
+  \setlength\tp at left@ymin{\tp at body@ymin}%
+  \setlength\tp at left@ymax{\tp at body@ymax}%
+  \setlength\tp at left@ymid{\dimexpr((\tp at left@ymax+\tp at left@ymin)/2)\relax}%
+  %%
+  \setlength\tp at right@xmin{\tp at body@xmax}%
+  \setlength\tp at right@xmax{\tp at page@xmax}%
+  \setlength\tp at right@xmid{\dimexpr((\tp at right@xmax+\tp at right@xmin)/2)\relax}%
+  \setlength\tp at right@ymin{\tp at body@ymin}%
+  \setlength\tp at right@ymax{\tp at body@ymax}%
+  \setlength\tp at right@ymid{\dimexpr((\tp at right@ymax+\tp at right@ymin)/2)\relax}%
+}%%    \end{macrocode}
+
+% \begin{docCommand}{@tp at genanchors}{\marg{block name}}
+% Generate all 9 anchors (|northwest|, |north|, |northest|, |west|,
+% |center|, |east|, |southwest|, |south|, |southest|) for \meta{block name}.
+% \end{docCommand}
+
+%    \begin{macrocode}
+\def\@tp at genanchors#1{%
+  \anchor{#1 north}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 south}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 west}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+  \anchor{#1 northwest}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 southwest}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 east}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+  \anchor{#1 northeast}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 southeast}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 center}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+}% 
+%    \end{macrocode}
+
+%    \begin{macrocode}
+\newcommand\tp at pgfdeclareanchoralias[3]{%
+  \expandafter\def\csname pgf at anchor@#1@#3\expandafter\endcsname
+    \expandafter{\csname pgf at anchor@#1@#2\endcsname}}
+%    \end{macrocode}
+
+%    \begin{macrocode}
+\pgfdeclareshape{page}{
+  \backgroundpath{
+    \pgfpathmoveto{\pgfpoint{\tp at page@xmin}{\tp at page@ymin}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmin}{\tp at page@ymax}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmax}{\tp at page@ymax}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmax}{\tp at page@xmin}}
+    \pgfpathclose
+  }
+  %% basic anchors
+  \anchor{north}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymax}%
+  \anchor{south}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymin}%
+  \anchor{west}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymid}%
+  \anchor{northwest}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymax}%
+  \anchor{southwest}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymin}%
+  \anchor{east}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymid}%
+  \anchor{northeast}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymax}%
+  \anchor{southeast}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymin}%
+  %\anchor{center}{\pgfpointorigin}
+  \anchor{center}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymid}
+  \anchor{origin}{\pgfpointorigin}%\pgf at x=0pt \pgf at y=0pt}
+  \@tp at genanchors{page}
+  %% Body anchors
+  \@tp at genanchors{body}
+  \@tp at genanchors{marginpar}
+  \@tp at genanchors{header}
+  \@tp at genanchors{footer}
+  \@tp at genanchors{top}
+  \@tp at genanchors{bottom}
+  \@tp at genanchors{left}
+  \@tp at genanchors{right}
+}
+%    \end{macrocode}
+
+
+%Create a new |tpx| mark to show anchor location when using
+%\refCom{tikzpageputanchors} to display anchors on the page.
+%
+%    \begin{macrocode}
+\newdimen\tp at linewidth
+\newdimen\tp at marksize
+\setlength\tp at marksize{3pt}
+\pgfdeclareplotmark{tpx}{
+  \setlength{\tp at linewidth}{\pgflinewidth}
+  \pgfsetlinewidth{0.1pt}
+  \pgfpathmoveto{\pgfpoint{-\tp at marksize}{-\tp at marksize}}
+  \pgfpathlineto{\pgfpoint{\tp at marksize}{\tp at marksize}}
+  \pgfpathmoveto{\pgfpoint{-\tp at marksize}{\tp at marksize}}
+  \pgfpathlineto{\pgfpoint{\tp at marksize}{-\tp at marksize}}
+  \pgfusepathqstroke
+  \setlength{\pgflinewidth}{\tp at linewidth}
+}
+%    \end{macrocode}
+
+
+% Anchors can be displayed block by block (using
+% \cs{tikzpageputanchorsdefaults}, \cs{tikzpageputanchors}
+% \cs{tikzpageputanchorsmarginpar}, \cs{tikzpageputanchorsheader},
+% \cs{tikzpageputanchorsfooter}, \cs{tikzpageputanchorstop},
+% \cs{tikzpageputanchorsright}, \cs{tikzpageputanchorsbottom},
+% \cs{tikzpageputanchorsleft}) or globally (using \refCom{tikzpageputanchors}).
+
+%    \begin{macrocode}
+\def\tikzpageputanchorsdefaults{
+  \foreach \anchor/\placement in {%
+    northwest/below right%
+    ,north/below%
+    ,northeast/below left%
+    ,west/right%
+    ,center/below%
+    ,east/left%
+    ,southwest/above right%
+    ,south/above%
+    ,southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsbody{
+  \foreach \anchor/\placement in {%
+    body northwest/below right%
+    ,body north/below%
+    ,body northeast/below left%
+    ,body west/right%
+    ,body center/below%
+    ,body east/left%
+    ,body southwest/above right%
+    ,body south/above%
+    ,body southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+
+\def\tikzpageputanchorsmarginpar{
+  \foreach \anchor/\placement in {%
+    marginpar northwest/below left%
+    ,marginpar north/left%
+    ,marginpar northeast/above left%
+    ,marginpar west/below%
+    ,marginpar center/below%
+    ,marginpar east/above%
+    ,marginpar southwest/below right%
+    ,marginpar south/right%
+    ,marginpar southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+
+\def\tikzpageputanchorsheader{
+  \foreach \anchor/\placement in {%
+    header northwest/above right%
+    ,header north/above%
+    ,header northeast/above left%
+    ,header west/right%
+    ,header center/right%
+    ,header east/left%
+    ,header southwest/below right%
+    ,header south/below%
+    ,header southeast/below left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+
+\def\tikzpageputanchorsfooter{
+  \foreach \anchor/\placement in {%
+    footer northwest/above right%
+    ,footer north/above%
+    ,footer northeast/above left%
+    ,footer west/right%
+    ,footer center/right%
+    ,footer east/left%
+    ,footer southwest/below right%
+    ,footer south/below%
+    ,footer southeast/below left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorstop{
+  \foreach \anchor/\placement in {%
+    top northwest/below right%
+    ,top north/below%
+    ,top northeast/below left%
+    ,top west/right%
+    ,top center/below%
+    ,top east/left%
+    ,top southwest/above right%
+    ,top south/above%
+    ,top southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+
+\def\tikzpageputanchorsbottom{
+  \foreach \anchor/\placement in {%
+    bottom northwest/below right%
+    ,bottom north/below%
+    ,bottom northeast/below left%
+    ,bottom west/right%
+    ,bottom center/below%
+    ,bottom east/left%
+    ,bottom southwest/above right%
+    ,bottom south/above%
+    ,bottom southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+
+\def\tikzpageputanchorsleft{
+  \foreach \anchor/\placement in {%
+    left northwest/below left%
+    ,left north/left%
+    ,left northeast/above left%
+    ,left west/below%
+    ,left center/below%
+    ,left east/above%
+    ,left southwest/below right%
+    ,left south/right%
+    ,left southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsright{
+  \foreach \anchor/\placement in {%
+    right northwest/below left%
+    ,right north/left%
+    ,right northeast/above left%
+    ,right west/below%
+    ,right center/below%
+    ,right east/above%
+    ,right southwest/below right%
+    ,right south/right%
+    ,right southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+%    \end{macrocode}
+
+% \begin{docCommand}{tikzpageputanchors}{}
+% A simple short hand to display all anchors at once.
+% \end{docCommand}
+%    \begin{macrocode}
+\def\tikzpageputanchors{
+  \tikzpageputanchorsdefaults
+  \tikzpageputanchorsbody
+  \tikzpageputanchorsmarginpar
+  \tikzpageputanchorsheader
+  \tikzpageputanchorsfooter
+  \tikzpageputanchorstop
+  \tikzpageputanchorsbottom
+  \tikzpageputanchorsleft
+  \tikzpageputanchorsright
+}
+%    \end{macrocode}
+
+
+
+% \begin{docCommand}{tpshowframes}{}
+% 
+% Display |top|, |right|, |bottom| and |left| block using a specific
+% background. This can be used in conjunction with \refCom{tikzpageputanchors} for
+% debuging purposes.
+% 
+% \end{docCommand}
+%    \begin{macrocode}
+\def\tpshowframes{
+  \draw[fill=blue!50, opacity=.3, draw] (page.bottom northwest) rectangle (page.bottom southeast);
+  \draw[fill=yellow!50, opacity=.3, draw] (page.top northwest) rectangle (page.top southeast);
+  \draw[fill=red!50, opacity=.3, draw] (page.left northwest) rectangle (page.left southeast);
+  \draw[fill=green!50, opacity=.3, draw] (page.right northwest) rectangle (page.right southeast);
+}
+%    \end{macrocode}
+
+
+% \begin{docCommand}{tpfancyhdrdefault}{}
+% An example to display headers and footer as |fancyhdr| does.
+% \end{docCommand}
+%    \begin{macrocode}
+\def\tpfancyhdrdefault{
+  \node [outer sep=0,inner sep=0, anchor=mid] at (page.header center) {};
+  \node [outer sep=0,inner sep=0, anchor=mid east] at (page.header east) {\tpflip{\sl\leftmark}{\sl\rightmark}};
+  \node [outer sep=0,inner sep=0, anchor=mid west] at (page.header west) {\tpflip{\sl\rightmark}{\sl\leftmark}};
+  \node [outer sep=0,inner sep=0, anchor=base east] at (page.footer east) {};
+  \node [,outer sep=0,inner sep=0,anchor=base] at (page.footer center) {\thepage};
+  \node [outer sep=0,inner sep=0, anchor=base west] at (page.footer west) {};
+}
+%    \end{macrocode}
+
+% \begin{docCommand}{tikzpage}{}
+% Generate a |tikzpicture| for the whole page. if a \cs{tikzpagelayout}
+% command exists, it will be executed.
+% \end{docCommand}
+%    \begin{macrocode}
+\newcommand{\tikzpage}{
+  \if at tp@use at textpos
+  \begin{textblock*}{\textwidth}[0,0](0pt,0pt)%
+    \fi
+    \tp at compute@margins%
+    \if at tp@use at textpos
+    \begin{tikzpicture}[]%
+      \clip (0,0) rectangle (\paperwidth, \paperheight);
+      \else
+      \begin{tikzpicture}[remember picture, overlay]%
+      \fi
+      \if at tp@use at textpos
+      \node[anchor=origin,shape=page] (page) {};
+      \else
+      \node[anchor=origin,shape=page] (page) at (current page.south west) {};
+      \fi
+      \@ifundefined{tikzpagelayout}{}{\tikzpagelayout}
+    \end{tikzpicture}%
+  \if at tp@use at textpos
+  \end{textblock*}%
+  \fi
+}
+%    \end{macrocode}
+
+
+\fancypagestyle{plain}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+\fancypagestyle{empty}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+
+
+%
+\makeatother
+% \iffalse
+%</tikz-page>
+% \fi
+%
+% \Finale
+%
+% 
+% \iffalse
+% <*example>
+% \fi
+% \begin{thebibliography}{9}
+
+% \bibitem{Graphical Decoration} Trying to do graphical decorations in
+% “ClassicThesis style” \url{http://tex.stackexchange.com/questions/86294}
+% \end{thebibliography}
+% \iffalse
+% </example>
+% \fi
+
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/tikz-page/tikz-page.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tikz-page/tikz-page.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikz-page/tikz-page.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tikz-page/tikz-page.sty	2016-08-29 21:19:42 UTC (rev 41949)
@@ -0,0 +1,452 @@
+%%
+%% This is file `tikz-page.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% tikz-page.dtx  (with options: `tikz-page')
+%% This is a generated file.
+%% 
+%% Copyright ^^c2^^a9 2016 by S^^c3^^a9bastien Gross <seb^^e2^^80^^a2^^c9^^91^^c6^^ac^^e2^^80^^a2chezwam^^e2^^80^^a2^^c9^^96^^c9^^b5^^ca^^88^^e2^^80^^a2org>
+%% 
+%% This program is free software. It comes without any warranty, to the extent
+%% permitted by applicable law. You can redistribute it and/or modify it under
+%% the terms of the Do What The Fuck You Want To Public License, Version 2, as
+%% published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
+%% details.
+%% 
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX
+%% version 2006/05/20 or later.
+%% 
+
+
+%% DeclareTCBListing{macrocode} leave a blank line after code.
+
+
+
+
+\def\pkgfileversion{1.0}
+\def\pkgfiledate{2016/08/22}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+%% Reset the FancyVerbLine counter to have the correct lines number in front
+%% of implementation.
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tikz-page}[\pkgfiledate\space (v\pkgfileversion)]
+
+
+\newif\if at tp@use at textpos\@tp at use@textposfalse
+\DeclareOption{textpos}{\@tp at use@textpostrue}
+\ProcessOptions
+
+\if at tp@use at textpos
+\RequirePackage[absolute]{textpos}
+\fi
+
+\RequirePackage{fancyhdr}
+\RequirePackage{tikz}
+\usetikzlibrary{plotmarks,calc,shapes,positioning,decorations.text}
+\RequirePackage{graphicx}
+\RequirePackage{calc}
+
+\makeatletter
+
+
+\newlength{\@tp at left@margin}
+\newlength{\@tp at right@margin}
+\newlength{\@tp at top@margin}
+\newlength{\@tp at bottom@margin}
+
+
+
+\newcommand\@tp at create@length[2]{%
+  \expandafter\newskip\csname tp@#1@#2\endcsname%
+}%
+
+
+\foreach\@@tp at element in {page,body,marginpar,header,footer,top,right,bottom,left}{%
+  \foreach\@@tp at len in {xmin,xmax,xmid,ymin,ymax,ymid}{%
+    \@tp at create@length{\@@tp at element}{\@@tp at len}%
+}}%
+
+\newcommand{\tpflip}[2]{\ifodd\thepage#1\else#2\fi}
+
+
+\def\tp at compute@margins{%
+  \setlength{\tp at page@xmin}{0pt}%
+  \setlength{\tp at page@ymin}{0pt}%
+  \setlength{\tp at page@xmax}{\paperwidth}%
+  \setlength{\tp at page@ymax}{\paperheight}%
+  \setlength{\tp at page@xmid}{\dimexpr(\tp at page@xmin+\tp at page@xmax)/2\relax}%
+  \setlength{\tp at page@ymid}{\dimexpr(\tp at page@ymin+\tp at page@ymax)/2\relax}%
+  %
+  \setlength\@tp at left@margin{\dimexpr(1in+\hoffset+\tpflip{\oddsidemargin}{\evensidemargin})\relax}%
+  \setlength\@tp at right@margin{\dimexpr(\paperwidth-\@tp at left@margin-\textwidth)\relax}%
+  \setlength\@tp at top@margin{\dimexpr(1in+\voffset+\topmargin+\headheight+\headsep)\relax}%
+  \setlength\@tp at bottom@margin{\dimexpr(\paperheight-(\textheight+\@tp at top@margin))\relax}%
+  %% Body computation
+  \setlength\tp at body@xmin{\dimexpr\tp at page@xmin+\@tp at left@margin\relax}%
+  \setlength\tp at body@xmax{\dimexpr\tp at page@xmax-\@tp at right@margin\relax}%
+  \setlength\tp at body@xmid{\dimexpr((\tp at body@xmax+\tp at body@xmin)/2)\relax}%
+  \setlength\tp at body@ymax{\dimexpr(\tp at page@ymax-\@tp at top@margin)\relax}%
+  \setlength\tp at body@ymin{\dimexpr\tp at body@ymin+\@tp at bottom@margin\relax}%
+  \setlength\tp at body@ymid{\dimexpr(\tp at body@ymin+(\tp at body@ymax-\tp at body@ymin)/2)\relax}%
+  %
+  %% Margin computation
+  %
+  \tpflip{%
+    \setlength\tp at marginpar@xmin{\dimexpr\tp at body@xmax+\marginparsep\relax}
+    \setlength\tp at marginpar@xmax{\dimexpr\tp at marginpar@xmin+\marginparwidth\relax}%
+  }{%
+    \setlength\tp at marginpar@xmax{\dimexpr\tp at body@xmin-\marginparsep\relax}%
+    \setlength\tp at marginpar@xmin{\dimexpr\tp at marginpar@xmax-\marginparwidth\relax}%
+  }%
+  \setlength\tp at marginpar@xmid{\dimexpr((\tp at marginpar@xmax+\tp at marginpar@xmin)/2)\relax}%
+  \setlength\tp at marginpar@ymax{\tp at body@ymax}%
+  \setlength\tp at marginpar@ymin{\tp at body@ymin}%
+  \setlength\tp at marginpar@ymid{\tp at body@ymid}%
+  %
+  %% header
+  %
+  \setlength\tp at header@xmax{\tp at body@xmax}%
+  \setlength\tp at header@xmin{\tp at body@xmin}%
+  \setlength\tp at header@xmid{\tp at body@xmid}%
+  \setlength\tp at header@ymin{\dimexpr\tp at body@ymax+\headsep\relax}%
+  \setlength\tp at header@ymax{\dimexpr\tp at header@ymin+\headheight\relax}%
+  \setlength\tp at header@ymid{\dimexpr((\tp at header@ymax+\tp at header@ymin)/2)\relax}%
+  %
+  %% footer
+  %
+  \setlength\tp at footer@xmax{\tp at body@xmax}%
+  \setlength\tp at footer@xmin{\tp at body@xmin}%
+  \setlength\tp at footer@xmid{\tp at body@xmid}%
+  \setlength\tp at footer@ymin{\dimexpr\tp at body@ymin-\footskip\relax}%
+  \setlength\tp at footer@ymax{\tp at footer@ymin}%
+  \setlength\tp at footer@ymid{\dimexpr((\tp at footer@ymax+\tp at footer@ymin)/2)\relax}%
+  %%
+  %% blocks%
+  %%
+  \setlength\tp at top@xmin{\tp at page@xmin}%
+  \setlength\tp at top@xmax{\tp at page@xmax}%
+  \setlength\tp at top@xmid{\dimexpr((\tp at top@xmax+\tp at top@xmin)/2)\relax}%
+  \setlength\tp at top@ymin{\tp at body@ymax}%
+  \setlength\tp at top@ymax{\tp at page@ymax}%
+  \setlength\tp at top@ymid{\dimexpr((\tp at top@ymax+\tp at top@ymin)/2)\relax}%
+  %%
+  \setlength\tp at bottom@xmin{\tp at page@xmin}%
+  \setlength\tp at bottom@xmax{\tp at page@xmax}%
+  \setlength\tp at bottom@xmid{\dimexpr((\tp at bottom@xmax+\tp at bottom@xmin)/2)\relax}%
+  \setlength\tp at bottom@ymin{\tp at page@ymin}%
+  \setlength\tp at bottom@ymax{\tp at body@ymin}%
+  \setlength\tp at bottom@ymid{\dimexpr((\tp at bottom@ymax+\tp at bottom@ymin)/2)\relax}%
+  %%
+  \setlength\tp at left@xmin{\tp at page@xmin}%
+  \setlength\tp at left@xmax{\tp at body@xmin}%
+  \setlength\tp at left@xmid{\dimexpr((\tp at left@xmax+\tp at left@xmin)/2)\relax}%
+  \setlength\tp at left@ymin{\tp at body@ymin}%
+  \setlength\tp at left@ymax{\tp at body@ymax}%
+  \setlength\tp at left@ymid{\dimexpr((\tp at left@ymax+\tp at left@ymin)/2)\relax}%
+  %%
+  \setlength\tp at right@xmin{\tp at body@xmax}%
+  \setlength\tp at right@xmax{\tp at page@xmax}%
+  \setlength\tp at right@xmid{\dimexpr((\tp at right@xmax+\tp at right@xmin)/2)\relax}%
+  \setlength\tp at right@ymin{\tp at body@ymin}%
+  \setlength\tp at right@ymax{\tp at body@ymax}%
+  \setlength\tp at right@ymid{\dimexpr((\tp at right@ymax+\tp at right@ymin)/2)\relax}%
+}%%    \end{macrocode}
+
+
+\def\@tp at genanchors#1{%
+  \anchor{#1 north}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 south}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 west}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+  \anchor{#1 northwest}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 southwest}{\pgf at x=\csname tp@#1 at xmin\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 east}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+  \anchor{#1 northeast}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymax\endcsname}%
+  \anchor{#1 southeast}{\pgf at x=\csname tp@#1 at xmax\endcsname \pgf at y=\csname tp@#1 at ymin\endcsname}%
+  \anchor{#1 center}{\pgf at x=\csname tp@#1 at xmid\endcsname \pgf at y=\csname tp@#1 at ymid\endcsname}%
+}%
+
+\newcommand\tp at pgfdeclareanchoralias[3]{%
+  \expandafter\def\csname pgf at anchor@#1@#3\expandafter\endcsname
+    \expandafter{\csname pgf at anchor@#1@#2\endcsname}}
+
+\pgfdeclareshape{page}{
+  \backgroundpath{
+    \pgfpathmoveto{\pgfpoint{\tp at page@xmin}{\tp at page@ymin}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmin}{\tp at page@ymax}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmax}{\tp at page@ymax}}
+    \pgfpathlineto{\pgfpoint{\tp at page@xmax}{\tp at page@xmin}}
+    \pgfpathclose
+  }
+  %% basic anchors
+  \anchor{north}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymax}%
+  \anchor{south}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymin}%
+  \anchor{west}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymid}%
+  \anchor{northwest}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymax}%
+  \anchor{southwest}{\pgf at x=\tp at page@xmin \pgf at y=\tp at page@ymin}%
+  \anchor{east}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymid}%
+  \anchor{northeast}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymax}%
+  \anchor{southeast}{\pgf at x=\tp at page@xmax \pgf at y=\tp at page@ymin}%
+  %\anchor{center}{\pgfpointorigin}
+  \anchor{center}{\pgf at x=\tp at page@xmid \pgf at y=\tp at page@ymid}
+  \anchor{origin}{\pgfpointorigin}%\pgf at x=0pt \pgf at y=0pt}
+  \@tp at genanchors{page}
+  %% Body anchors
+  \@tp at genanchors{body}
+  \@tp at genanchors{marginpar}
+  \@tp at genanchors{header}
+  \@tp at genanchors{footer}
+  \@tp at genanchors{top}
+  \@tp at genanchors{bottom}
+  \@tp at genanchors{left}
+  \@tp at genanchors{right}
+}
+
+\newdimen\tp at linewidth
+\newdimen\tp at marksize
+\setlength\tp at marksize{3pt}
+\pgfdeclareplotmark{tpx}{
+  \setlength{\tp at linewidth}{\pgflinewidth}
+  \pgfsetlinewidth{0.1pt}
+  \pgfpathmoveto{\pgfpoint{-\tp at marksize}{-\tp at marksize}}
+  \pgfpathlineto{\pgfpoint{\tp at marksize}{\tp at marksize}}
+  \pgfpathmoveto{\pgfpoint{-\tp at marksize}{\tp at marksize}}
+  \pgfpathlineto{\pgfpoint{\tp at marksize}{-\tp at marksize}}
+  \pgfusepathqstroke
+  \setlength{\pgflinewidth}{\tp at linewidth}
+}
+
+
+\def\tikzpageputanchorsdefaults{
+  \foreach \anchor/\placement in {%
+    northwest/below right%
+    ,north/below%
+    ,northeast/below left%
+    ,west/right%
+    ,center/below%
+    ,east/left%
+    ,southwest/above right%
+    ,south/above%
+    ,southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsbody{
+  \foreach \anchor/\placement in {%
+    body northwest/below right%
+    ,body north/below%
+    ,body northeast/below left%
+    ,body west/right%
+    ,body center/below%
+    ,body east/left%
+    ,body southwest/above right%
+    ,body south/above%
+    ,body southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsmarginpar{
+  \foreach \anchor/\placement in {%
+    marginpar northwest/below left%
+    ,marginpar north/left%
+    ,marginpar northeast/above left%
+    ,marginpar west/below%
+    ,marginpar center/below%
+    ,marginpar east/above%
+    ,marginpar southwest/below right%
+    ,marginpar south/right%
+    ,marginpar southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsheader{
+  \foreach \anchor/\placement in {%
+    header northwest/above right%
+    ,header north/above%
+    ,header northeast/above left%
+    ,header west/right%
+    ,header center/right%
+    ,header east/left%
+    ,header southwest/below right%
+    ,header south/below%
+    ,header southeast/below left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsfooter{
+  \foreach \anchor/\placement in {%
+    footer northwest/above right%
+    ,footer north/above%
+    ,footer northeast/above left%
+    ,footer west/right%
+    ,footer center/right%
+    ,footer east/left%
+    ,footer southwest/below right%
+    ,footer south/below%
+    ,footer southeast/below left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorstop{
+  \foreach \anchor/\placement in {%
+    top northwest/below right%
+    ,top north/below%
+    ,top northeast/below left%
+    ,top west/right%
+    ,top center/below%
+    ,top east/left%
+    ,top southwest/above right%
+    ,top south/above%
+    ,top southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsbottom{
+  \foreach \anchor/\placement in {%
+    bottom northwest/below right%
+    ,bottom north/below%
+    ,bottom northeast/below left%
+    ,bottom west/right%
+    ,bottom center/below%
+    ,bottom east/left%
+    ,bottom southwest/above right%
+    ,bottom south/above%
+    ,bottom southeast/above left%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsleft{
+  \foreach \anchor/\placement in {%
+    left northwest/below left%
+    ,left north/left%
+    ,left northeast/above left%
+    ,left west/below%
+    ,left center/below%
+    ,left east/above%
+    ,left southwest/below right%
+    ,left south/right%
+    ,left southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchorsright{
+  \foreach \anchor/\placement in {%
+    right northwest/below left%
+    ,right north/left%
+    ,right northeast/above left%
+    ,right west/below%
+    ,right center/below%
+    ,right east/above%
+    ,right southwest/below right%
+    ,right south/right%
+    ,right southeast/above right%
+  } \draw[red,shift=(page.\anchor)] plot[mark=tpx%% my plot mark
+  ] coordinates{(0,0)}
+  node[blue,\placement, rotate=90] {\scriptsize\texttt{(page.\anchor)}};
+}
+
+\def\tikzpageputanchors{
+  \tikzpageputanchorsdefaults
+  \tikzpageputanchorsbody
+  \tikzpageputanchorsmarginpar
+  \tikzpageputanchorsheader
+  \tikzpageputanchorsfooter
+  \tikzpageputanchorstop
+  \tikzpageputanchorsbottom
+  \tikzpageputanchorsleft
+  \tikzpageputanchorsright
+}
+
+\def\tpshowframes{
+  \draw[fill=blue!50, opacity=.3, draw] (page.bottom northwest) rectangle (page.bottom southeast);
+  \draw[fill=yellow!50, opacity=.3, draw] (page.top northwest) rectangle (page.top southeast);
+  \draw[fill=red!50, opacity=.3, draw] (page.left northwest) rectangle (page.left southeast);
+  \draw[fill=green!50, opacity=.3, draw] (page.right northwest) rectangle (page.right southeast);
+}
+
+\def\tpfancyhdrdefault{
+  \node [outer sep=0,inner sep=0, anchor=mid] at (page.header center) {};
+  \node [outer sep=0,inner sep=0, anchor=mid east] at (page.header east) {\tpflip{\sl\leftmark}{\sl\rightmark}};
+  \node [outer sep=0,inner sep=0, anchor=mid west] at (page.header west) {\tpflip{\sl\rightmark}{\sl\leftmark}};
+  \node [outer sep=0,inner sep=0, anchor=base east] at (page.footer east) {};
+  \node [,outer sep=0,inner sep=0,anchor=base] at (page.footer center) {\thepage};
+  \node [outer sep=0,inner sep=0, anchor=base west] at (page.footer west) {};
+}
+
+\newcommand{\tikzpage}{
+  \if at tp@use at textpos
+  \begin{textblock*}{\textwidth}[0,0](0pt,0pt)%
+    \fi
+    \tp at compute@margins%
+    \if at tp@use at textpos
+    \begin{tikzpicture}[]%
+      \clip (0,0) rectangle (\paperwidth, \paperheight);
+      \else
+      \begin{tikzpicture}[remember picture, overlay]%
+      \fi
+      \if at tp@use at textpos
+      \node[anchor=origin,shape=page] (page) {};
+      \else
+      \node[anchor=origin,shape=page] (page) at (current page.south west) {};
+      \fi
+      \@ifundefined{tikzpagelayout}{}{\tikzpagelayout}
+    \end{tikzpicture}%
+  \if at tp@use at textpos
+  \end{textblock*}%
+  \fi
+}
+
+\fancypagestyle{plain}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+\fancypagestyle{empty}{
+  \fancyhf{}
+  \chead{\tikzpage}
+}
+
+\makeatother
+
+
+\endinput
+%%
+%% End of file `tikz-page.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/tikz-page/tikz-page.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2016-08-29 01:17:42 UTC (rev 41948)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2016-08-29 21:19:42 UTC (rev 41949)
@@ -583,7 +583,7 @@
     timetable timing-diagrams tipa tipa-de tipfr
     titlecaps titlefoot titlepages titlepic titleref titlesec titling
     tkz-base tkz-berge tkz-doc tkz-euclide tkz-fct tkz-graph
-    tkz-kiviat tkz-linknodes tkz-orm tkz-tab
+    tkz-kiviat tkz-linknodes tkz-orm tikz-page tkz-tab
     tlc2
     tocbibind tocdata tocloft tocvsec2 todo todonotes
     tokenizer toolbox tools topfloat totcount totpages toptesi

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2016-08-29 01:17:42 UTC (rev 41948)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2016-08-29 21:19:42 UTC (rev 41949)
@@ -2344,7 +2344,7 @@
  'basque-book'  => 'latex',  # requires interaction
  'basque-date'  => 'latex',  # requires interaction
  'bbold'	=> 'pdflatex',
- 'beamerswitch' => 'tex',    # no doc regen
+ 'beamerswitch' => 'tex',    # no doc remake
  'bguq'         => 'latex',  # requires interaction
  'bhcexam'      => 'latex',  # requires interaction
  'bosisio'      => 'latex -translate-file=empty.tcx',   # ^^, no 8-bit
@@ -2430,6 +2430,7 @@
  'teubner'      => 'latex',  # interaction
  'termlist'     => 'tex',    # interaction for .pl
  'thumb'        => 'latex -translate-file=empty.tcx',   # no 8-bit
+ 'tikz-page'	=> 'tex',    # no doc remake
  'todonotes'    => 'latex',  # requires interaction
  'toptesi'      => 'latex',  # requires interaction
  'tudscr'       => 'tex',

Modified: trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc	2016-08-29 01:17:42 UTC (rev 41948)
+++ trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc	2016-08-29 21:19:42 UTC (rev 41949)
@@ -120,6 +120,7 @@
 depend tikz-feynman
 depend tikz-inet
 depend tikz-opm
+depend tikz-page
 depend tikz-palattice
 depend tikz-qtree
 depend tikz-timing

Added: trunk/Master/tlpkg/tlpsrc/tikz-page.tlpsrc
===================================================================


More information about the tex-live-commits mailing list