diff options
author | Karl Berry <karl@freefriends.org> | 2006-10-15 22:37:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-10-15 22:37:32 +0000 |
commit | 237df1eb06d422ff243a05b9a25501ba287681c1 (patch) | |
tree | 4cc4f2032474921cb986d1ca63b3cf9a267b480a /Master/texmf-dist/tex/latex/pgf/utilities | |
parent | 15e21b5bab66eca251ac48fdc052126505428d4e (diff) |
pgf/tikz 1.09 big update (13oct06)
git-svn-id: svn://tug.org/texlive/trunk@2332 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgf/utilities')
6 files changed, 179 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgffor.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgffor.sty index b2f27b78ae7..4a4dbc9c0d9 100644 --- a/Master/texmf-dist/tex/latex/pgf/utilities/pgffor.sty +++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgffor.sty @@ -1,7 +1,11 @@ -% Copyright 2005 by Till Tantau <tantau@users.sourceforge.net>. +% Copyright 2006 by Till Tantau % -% This program can be redistributed and/or modified under the terms -% of the GNU Public License, version 2. +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. \RequirePackage{pgfrcs} diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgfpages.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgfpages.sty index 36784a3c968..ed5356f2bbb 100644 --- a/Master/texmf-dist/tex/latex/pgf/utilities/pgfpages.sty +++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgfpages.sty @@ -1,9 +1,13 @@ -\ProvidesPackage{pgfpages}[2004/11/05 ver 0.01] - -% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>. +% Copyright 2006 by Till Tantau +% +% This file may be distributed and/or modified % -% This program can be redistributed and/or modified under the terms -% of the GNU Public License, version 2. +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. + +\ProvidesPackage{pgfpages}[2004/11/05 ver 0.01] \RequirePackage{pgfcore,calc} @@ -58,11 +62,11 @@ % % \pgfpagesuselayout{resize to}[a4paper] -\def\pgfpagesuselayout#1{\@ifnextchar[{\pgf@pagelayout{#1}}{\pgf@pagelayout{#1}[]}} +\def\pgfpagesuselayout#1{\pgf@ifnextchar[{\pgf@pagelayout{#1}}{\pgf@pagelayout{#1}[]}} \def\pgf@pagelayout#1[#2]{ \csname pgfpages@layoutbefore@#1\endcsname \setkeys{pgfpagesuselayoutoption}{#2} - \@ifundefined{pgfpages@layout@#1}{ + \pgf@ifundefined{pgfpages@layout@#1}{ \PackageError{pgfpages}{Page layout `#1' undefined.}{} } { @@ -1002,7 +1006,7 @@ \newcommand\pgfsetupphysicalpagesizes{% % The following code was send to me by Rolf Niepraschk - \ifx\Gin@driver\@empty\else% + \ifx\Gin@driver\pgf@empty\else% \filename@parse{\Gin@driver}\@tempswafalse% \def\reserved@a{dvips}% \ifx\filename@base\reserved@a\@tempswatrue\fi% diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty index 509ebded392..7c0004d3333 100644 --- a/Master/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty +++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty @@ -1,7 +1,11 @@ -% Copyright 2005 by Till Tantau <tantau@users.sourceforge.net>. +% Copyright 2006 by Till Tantau % -% This program can be redistributed and/or modified under the terms -% of the GNU Public License, version 2. +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. \input{pgfrcs.code.tex} diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty new file mode 100644 index 00000000000..4835d0547f2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgfreadexternal.sty @@ -0,0 +1,33 @@ +% Copyright 2006 by Till Tantau +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. + +\ProvidesPackage{pgfreadexternal}[2006/03/13 ver 0.01] + +% Environment for reading an external graphic. +% +% #1 = suffix +% +% Example: +% +% \pgfexternalbegin{mygraph} +% \begin{tikzpicture} +% ... +% \end{tikzpicture} +% \pgfextenalend + +\providecommand\pgfexternalbegin{\pgf@externalbegin} +\long\def\pgf@externalbegin#1#2\pgfexternalend{% + \pgfexternalincludecommand{#1}% +} + +\providecommand\pgfexternalincludecommand[1]{\includegraphics{\pgfexternalprefix#1}} +\providecommand\pgfexternalprefix{} + +\endinput + diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/pgfwriteexternal.sty b/Master/texmf-dist/tex/latex/pgf/utilities/pgfwriteexternal.sty new file mode 100644 index 00000000000..5170982fdfa --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgf/utilities/pgfwriteexternal.sty @@ -0,0 +1,111 @@ +% Copyright 2006 by Till Tantau +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. + +\ProvidesPackage{pgfwriteexternal}[2006/03/13 ver 0.01] + + +% Modes of operation: +% +% Set \pgfexternalcurrent to empty, relax or undefined and all +% \pgfexternal... are ignored +% +% Set \pgfexternalcurrnet to anything else and all text will be thrown +% away, except the text in the \pgfexternalbegin...\pgfexternalend +% with the right name. + +\AtBeginDocument{ + \ifx\pgfexternalcurrent\relax + \let\pgfexternalcurrent=\@empty + \fi + \ifx\pgfexternalcurrent\@undefined + \let\pgfexternalcurrent=\@empty + \fi + \ifx\pgfexternalcurrent\@empty + \else + \pgf@externalgrabshipout + \fi +} + + +\newwrite\pgfexternal@caller + +% Environment for an external graphic. +% +% #1 = suffix +% +% Example: +% +% \pgfexternalbegin{mygraph} +% \begin{tikzpicture} +% ... +% \end{tikzpicture} +% \pgfextenalend + +\def\pgfexternalbegin#1{% + \IfFileExists{#1.tex}{}{% + \immediate\openout\pgfexternal@caller #1.tex% + \immediate\write\pgfexternal@caller{\noexpand\def\noexpand\pgfexternalcurrent{#1}\noexpand\input \jobname.tex}% + \immediate\closeout\pgfexternal@caller% + }% + \edef\pgf@test{#1}% + \edef\pgfeeext{\pgfexternalcurrent}% + \expandafter\scantokens\expandafter{\expandafter\edef\expandafter\pgfeeext\expandafter{\pgfeeext}}\unskip% + \ifx\pgfeeext\pgf@test% + \global\let\pgfexternalend=\pgf@externalend% + \expandafter\pgf@externalprepareshipout% + \fi% + \ignorespaces% +} + +\let\pgfexternalend=\unskip + + + +\newbox\pgfexternal@ignorebox +\newbox\pgfexternal@box + +\def\pgf@externalgrabshipout{% + \global\let\pgfexternal@originalshipout=\shipout% + \global\def\shipout{\setbox\pgfexternal@ignorebox=} +} + +\def\pgf@externalprepareshipout{% + \setbox\pgfexternal@box=\hbox\bgroup\bgroup% +} + +\def\pgf@externalend{% + \unskip\egroup\egroup% + {% + \parindent0pt% + \leftmargin0pt% + \dimen0\ht\pgfexternal@box% + \advance\dimen0\dp\pgfexternal@box% + \pgfsys@papersize{\the\wd\pgfexternal@box}{\the\dimen0}% + \setbox0=\vbox{% + \kern -1truein% + \hbox{% + \kern -1truein% + \hbox to0pt{\pgfsys@atbegindocument}% + \box\pgfexternal@box% + \kern 1truein}% + \kern1truein}% + \pgfexternal@originalshipout\box0% + }% + \global\let\pgfexternalend=\unskip% +} + +\ifx\pdfoutput\undefined + \newcount\pdfoutput +\fi + + + + +\endinput + diff --git a/Master/texmf-dist/tex/latex/pgf/utilities/xxcolor.sty b/Master/texmf-dist/tex/latex/pgf/utilities/xxcolor.sty index 9f4ec8c970d..8e40fb90fd7 100644 --- a/Master/texmf-dist/tex/latex/pgf/utilities/xxcolor.sty +++ b/Master/texmf-dist/tex/latex/pgf/utilities/xxcolor.sty @@ -1,12 +1,15 @@ +% Copyright 2006 by Till Tantau +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/generic/pgf/licenses/LICENSE for more details. + \ProvidesPackage{xxcolor}[2003/10/24 ver 0.1] \NeedsTeXFormat{LaTeX2e}[1995/12/01] -% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>. -% -% This program can be redistributed and/or modified under the terms -% of the LaTeX Project Public License Distributed from CTAN -% archives in directory macros/latex/base/lppl.txt. - \RequirePackage{xcolor} |