summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-13 23:33:12 +0000
committerKarl Berry <karl@freefriends.org>2011-02-13 23:33:12 +0000
commitddd662d03955b5c9ad157507e5ed8de0c55fdfe6 (patch)
tree5c81c1c602ee56910c30f1d5ae4897203ec4f9a3 /Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
parent0fe0153ae1f041e1e5e21dc0079587f5dc9612c2 (diff)
interfaces 3.0 (13feb11)
git-svn-id: svn://tug.org/texlive/trunk@21393 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty')
-rw-r--r--Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty76
1 files changed, 39 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-tikz.sty
index 805fa99681c..cd1bc8da02f 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 : 2011/01/19 v2.9 - interfaces : interfaces with keys for other packages (FC)
+%% interfaces : 2011/01/26 v3.0 - 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
@@ -43,10 +43,8 @@
%% interfaces: interfaces with keys for other packages (FC)
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%%
-\let\CTANLinks=y
-\let\interfacesquick=n
\ProvidesPackage{interfaces-tikz}
- [2011/01/19 v2.9 load tikz libraries easily (FC)]
+ [2011/02/12 v3.0 load tikz libraries easily (FC)]
\RequirePackage{interfaces-base}
\itf@pgfkeys
%% Some catcode checking
@@ -227,13 +225,13 @@ turtle%
\def\itf@graduation@vert[#1]#2#3#4#5{%
\node at (0,0) [{inner sep=0pt,outer sep=0pt,anchor=south west,
color=\pgfkeysvalueof{/itf/tikz/papergraduate/ycolor},#1}] {%
- \rlap{\hbox to#2{\leaders \hbox to\dimexpr\pgf@yy/#4{%
- \kern-\dimexpr#5/2\relax\vrule height#3 depth\z@ width#5}\hss}}}}
+ \hbox to#2{\leaders
+ \hbox to\dimexpr\pgf@yy/#4{\hss\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,
color=\pgfkeysvalueof{/itf/tikz/papergraduate/xcolor},#1}] {%
- \rlap{\vbox to\dimexpr#3{\leaders \vbox to\dimexpr\pgf@xx/#4{%
- \kern-\dimexpr#5/2\relax\hrule width#2 depth0pt height#5}\vss}}}}
+ \rlap{\vbox to#3{\leaders \vbox to\dimexpr\pgf@xx/#4{%
+ \kern-\dimexpr#5/2\hrule width#2 depth0pt height#5}\vss}}}}
\def\itf@wallpapergraduate #1{%
\tikz[{remember picture,overlay}]{%
\pgfqkeys{/itf/tikz/papergraduate}{@reset,#1}%
@@ -244,31 +242,27 @@ turtle%
\itf@paper@graduate \paperwidth \paperheight
\end{scope}}%
}% \itf@wallpapergraduate
-\def\itf@papergraduate@coord#1;{%
- \path #1 node
- {\def\itf@tp##1##2##3##4\@nil{\gdef\itf@tp{{##2}{##3}}%
- }\expandafter\itf@tp\pgf@interrupt@path \@nil};
-}% \itf@papergraduate@coord
-\def\itf@papergraduate #1#2;{{%
- \itf@papergraduate@coord #2;
- \@tempdima \pgf@x \@tempdimb \pgf@y
- \expandafter\pgfqpoint \itf@tp
- \@tempdimc \pgf@x
- \advance\pgf@x -\@tempdima \pgf@x\ifdim\pgf@x<\z@-\fi\pgf@x
- \@tempdima \@tempdimc \@tempdimc \pgf@y
- \advance\pgf@y -\@tempdimb \pgf@y\ifdim\pgf@y<\z@-\fi\pgf@y
- \@tempdimb \@tempdimc
- \pgfqkeys{/itf/tikz/papergraduate}{@reset,#1}%
- \edef\itf@tp{%
- \noexpand\begin{scope}[{shift={(\the\@tempdima,\the\@tempdimb)},%
- x=\pgfkeysvalueof{/itf/tikz/papergraduate/x},%
- y=\pgfkeysvalueof{/itf/tikz/papergraduate/y},%
- text opacity=\pgfkeysvalueof{/itf/tikz/papergraduate/opacity}}]%
- \noexpand\itf@paper@graduate {\the \pgf@x}{\the \pgf@y}%
- \noexpand\end{scope}%
- }\itf@tp \global\let\itf@tp \relax
-}}% \paper@graduate
-\def\itf@paper@graduate#1#2{\hfuzz\maxdimen\vfuzz\hfuzz\hbadness\@M\vbadness\hbadness
+\def\itf@papergraduate #1#2;{%
+ \begin{scope}[every node/.style={}]%
+ \pgfqkeys{/itf/tikz/papergraduate}{@reset,#1}%
+ \coordinate (itf@papergraduate) at #2;
+ \@tempdima \pgf@x \@tempdimb \pgf@y
+ \pgfpointanchor {itf@papergraduate}{center}
+ \advance\@tempdima -\pgf@x
+ \ifdim\@tempdima<\z@ \@tempdima \m@ne\@tempdima \fi
+ \advance\@tempdimb -\pgf@y
+ \ifdim\@tempdimb<\z@ \@tempdimb \m@ne\@tempdimb \fi
+ \edef\itf@tp{%
+ \noexpand\begin{scope}[{shift={(\the\pgf@x,\the\pgf@y)},%
+ x=\pgfkeysvalueof{/itf/tikz/papergraduate/x},%
+ y=\pgfkeysvalueof{/itf/tikz/papergraduate/y},%
+ text opacity=\pgfkeysvalueof{/itf/tikz/papergraduate/opacity}}]%
+ \noexpand\itf@paper@graduate {\the \@tempdima}{\the \@tempdimb}%
+ \noexpand\end{scope}%
+ }\itf@tp
+ \end{scope}%
+}% \paper@graduate
+\def\itf@paper@graduate #1#2{\hfuzz\maxdimen\vfuzz\hfuzz\hbadness\@M\vbadness\hbadness
\itf@graduation@horiz [text opacity/.expanded={\tikz@textopacity/2}] {#1}{#2}{10}{.1pt};%
\itf@graduation@horiz []{#1}{#2}{2}{.1pt};% opacity=.25
\itf@graduation@horiz []{#1}{#2}{1}{.2pt};
@@ -279,8 +273,12 @@ turtle%
\begin{scope}[inner sep=0pt,outer sep=0pt,%
text opacity=\pgfkeysvalueof{/itf/tikz/papergraduate/text opacity},%
font=\pgfkeysvalueof{/itf/tikz/papergraduate/yrule/font}]%
- \foreach \y in {0,1,...,\the\dimexpr#2*\p@/\pgf@xx}
- \node [yshift=\y\pgf@xx,xshift=3mm] at (0,0) {\the\numexpr\y*10};
+ \begingroup
+ \let\itf@tp \@empty \dimen@\z@ \count@\z@
+ \@whiledim \dimen@<#2\do{%
+ \edef\itf@tp{\itf@tp (3mm,\the\dimen@) node {\the\count@}}%
+ \advance\count@ \@ne \dimen@ \count@\pgf@xx
+ }\expandafter\endgroup\expandafter \path \itf@tp;
\end{scope}}%
\itf@graduation@vert [text opacity/.expanded={\tikz@textopacity/2}] {#1}{#2}{10}{.1pt};
\itf@graduation@vert [] {#1}{#2}{2}{.1pt};
@@ -292,8 +290,12 @@ turtle%
\begin{scope}[inner sep=0pt,outer sep=0pt,%
text opacity=\pgfkeysvalueof{/itf/tikz/papergraduate/text opacity},%
font=\pgfkeysvalueof{/itf/tikz/papergraduate/xrule/font}]%
- \foreach \x in {0,1,...,\the\dimexpr#1*\p@/\pgf@yy}
- \node [xshift=\x\pgf@yy,yshift=3mm] at (0,0) {\the\numexpr\x*10};
+ \begingroup
+ \let\itf@tp \@empty \dimen@\z@ \count@\z@
+ \@whiledim \dimen@<#1\do{%
+ \edef\itf@tp{\itf@tp (\the\dimen@,3mm) node {\the\count@}}%
+ \advance\count@ \@ne \dimen@ \count@\pgf@xx
+ }\expandafter\endgroup\expandafter \path \itf@tp;
\end{scope}}%
}% \itf@paper@graduate
\endinput