From 8b9caf2ada7ba9a0b6fbdaf7503c2d61091c988b Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 18 Jan 2011 00:38:20 +0000
Subject: interfaces 2.8 (17jan11)

git-svn-id: svn://tug.org/texlive/trunk@21106 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/interfaces/interfaces-tikz.sty       | 48 ++++++++++++++++++++--
 1 file changed, 45 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty')

diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
index ff0a967987e..ff86af7e16b 100644
--- a/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
+++ b/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% interfaces : 2010/12/27 v2.6 - interfaces : interfaces with keys for other packages (FC)
+%% interfaces : 2011/01/17 v2.8 - interfaces : interfaces with keys for other packages (FC)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -21,7 +21,6 @@
 %%     interfaces.sty, interfaces.pdf, interfaces.ins,
 %%     interfaces-base.sty,
 %%     interfaces-LaTeX.sty,
-%%     interfaces-graphics.sty,
 %%     interfaces-tikz.sty,
 %%     interfaces-titlesec.sty,
 %%     interfaces-hyperref.sty,
@@ -44,8 +43,9 @@
 %% interfaces: interfaces with keys for other packages (FC)
 %% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
 %% 
+\let\CTANLinks=y
 \ProvidesPackage{interfaces-tikz}
-   [2010/12/27 v2.6 load tikz libraries easily (FC)]
+   [2011/01/17 v2.8 load tikz libraries easily (FC)]
 \RequirePackage{interfaces-base}
 \itf@pgfkeys
 %% Some catcode checking
@@ -186,6 +186,48 @@ turtle%
       \noexpand\fi
    }\expandafter\endgroup\x
 }% \itf@usetikzcode
+\newrobustcmd*\papergraduate[1][]{%
+   \ifpgfpicture  \expandafter \itf@papergraduate
+   \else          \expandafter \itf@wallpapergraduate
+   \fi{#1}%
+}% \papergraduate
+\def\itf@graduation@vert[#1]#2#3#4#5{%
+   \node at (0,0) [{inner sep=0pt,outer sep=0pt,anchor=south west,#1}] {%
+      \rlap{\hbox to#2{\leaders\hbox to#4{\kern-\dimexpr#5/2\relax\vrule height#3 depth\z@ width#5}\hss}}}}
+\def\itf@graduation@horiz[#1]#2#3#4#5{
+   \node at (0,0) [{inner sep=0pt,outer sep=0pt,anchor=north west,yscale=-1,#1}] {%
+      \rlap{\vbox to#3{\leaders\vbox to#4{\kern-\dimexpr#5/2\relax\hrule width#2 depth0pt height#5}\vss}}}}
+\def\itf@wallpapergraduate #1{%
+   \tikz[remember picture,overlay]{
+      \itf@papergraduate {#1} (current page.south west) - (current page.north east);}
+}% \itf@wallpapergraduate
+\def\itf@papergraduate #1#2-#3;{%
+   \path let \p1 = ($#2-#3$)
+         in node {\global\@tempdima\x1 \global\@tempdimb\y1};
+   \@tempdima \ifdim\@tempdima<\z@-\fi\dimexpr\@tempdima*2540/7227\relax
+   \@tempdimb \ifdim\@tempdimb<\z@-\fi\dimexpr\@tempdimb*2540/7227\relax
+   \begin{scope}[shift={#2}]
+   \@expandtwoargs\itf@paper@graduate{\strip@pt\@tempdima}{\strip@pt\@tempdimb}%
+   \end{scope}
+}% \paper@graduate
+\def\itf@paper@graduate#1#2{{\hfuzz\maxdimen\vfuzz\hfuzz\hbadness\@M\vbadness\hbadness
+   \itf@graduation@horiz [magenta,very nearly transparent] {#1mm}{#2mm}{1mm}{.1pt};
+   \itf@graduation@horiz [magenta,nearly transparent] {#1mm}{#2mm}{5mm}{.1pt};
+   \itf@graduation@horiz [magenta,nearly transparent] {#1mm}{#2mm}{10mm}{.2pt};
+   \itf@graduation@horiz [black,nearly opaque] {1mm}{#2mm}{1mm}{.1pt};
+   \itf@graduation@horiz [black,nearly opaque] {1.5mm}{#2mm}{5mm}{.1pt};
+   \itf@graduation@horiz [black,opaque] {2mm}{#2mm}{10mm}{.1pt};
+   \foreach \y in {0,10,...,#2}
+      \node [inner sep=0pt,outer sep=0pt,font=\tiny,yshift=\y mm,xshift=3mm] at (0,0) {\y};
+   \itf@graduation@vert [cyan,very nearly transparent] {#1mm}{#2mm}{1mm}{.1pt};
+   \itf@graduation@vert [cyan,nearly transparent] {#1mm}{#2mm}{5mm}{.1pt};
+   \itf@graduation@vert [cyan,nearly transparent] {#1mm}{#2mm}{10mm}{.2pt};
+   \itf@graduation@vert [black,nearly opaque] {#1mm}{1mm}{1mm}{.1pt};
+   \itf@graduation@vert [black,nearly opaque] {#1mm}{1.5mm}{5mm}{.1pt};
+   \itf@graduation@vert [black,opaque] {#1mm}{2mm}{10mm}{.1pt};
+   \foreach \x in {0,10,...,#1}
+      \node [inner sep=0pt,outer sep=0pt,font=\tiny,xshift=\x mm,yshift=3mm] at (0,0) {\x};
+}}% \itf@paper@graduate
 \endinput
 %%
 %% End of file `interfaces-tikz.sty'.
-- 
cgit v1.2.3

