From 1d53bc2f5dacbab72e8d152bb066911affff6b91 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 13 Jan 2006 00:02:28 +0000 Subject: pgf git-svn-id: svn://tug.org/texlive/trunk@1191 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/pgf/frontendlayer/pgfpict2e.sty | 109 +++++++++++++++++++++ .../tex/latex/pgf/frontendlayer/tikz.sty | 10 ++ 2 files changed, 119 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty create mode 100644 Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (limited to 'Master/texmf-dist/tex/latex/pgf/frontendlayer') diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty b/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty new file mode 100644 index 00000000000..87980ce72ef --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/pgfpict2e.sty @@ -0,0 +1,109 @@ +\ProvidesPackage{pgfpict2e}[2004/11/28 ver 0.01] + +% Copyright 2003 by Till Tantau . +% +% 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{pgfcore} + +\def\pgf@pict@line(#1,#2)#3{% + \pgfsys@beginpurepicture% + \pgfsetlinewidth{\@wholewidth}% + \pgfsetroundcap% + \pgfpathqmoveto{0}{0}% + \ifnum#1=0\relax% + \pgf@xa=0pt\relax% + \pgf@ya=#3\unitlength\relax% + \else% + \pgf@y=#2\unitlength% + \divide\pgf@y by#1\relax% + \pgf@xa=#3\unitlength\relax% + \pgf@ya=#3\pgf@y\relax% + \fi% + \pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@ya}}% + \pgfusepath{stroke}% + \pgfsys@endpurepicture% +}% + +\def\line(#1,#2)#3{{\pgfsetarrows{-}\pgf@pict@line(#1,#2){#3}}}% +\def\vector(#1,#2)#3{{\pgfsetarrows{-latex}\pgf@pict@line(#1,#2){#3}}}% + +\def\@circle#1{{% + \pgfsys@beginpurepicture% + \pgfsetlinewidth{\@wholewidth}% + \pgf@x=#1\unitlength% + \pgfpathqcircle{.5\pgf@x}% + \pgfusepathqstroke% + \pgfsys@endpurepicture}} + +\def\@dot#1{{% + \pgfsys@beginpurepicture% + \pgfsetlinewidth{\@wholewidth}% + \pgf@x=#1\unitlength% + \pgfpathqcircle{.5\pgf@x}% + \pgfusepathqfill% + \pgfsys@endpurepicture}} + + +\def\oval{\@ifnextchar[{\pgfpictIIe@oval}{\pgfpictIIe@oval[20pt]}} +\def\pgfpictIIe@oval[#1](#2,#3){\@ifnextchar[{\pgfpictIIe@@oval[#1](#2,#3)}{\pgfpictIIe@@oval[#1](#2,#3)[]}} +\def\pgfpictIIe@@oval[#1](#2,#3)[#4]{{% + \pgfsys@beginpurepicture% + \@tfor\reserved@a:=#4\do{\csname pgfpictIIe@clip\reserved@a\endcsname}% + \pgf@x=#2\unitlength% + \pgf@y=#3\unitlength% + \pgf@x=-.5\pgf@x% + \pgf@y=-.5\pgf@y% + \pgfsys@transformshift{\the\pgf@x}{\the\pgf@y}% + \pgfsetlinewidth{\@wholewidth}% + \pgf@ya=#3\unitlength% + \advance\pgf@ya by-#1\relax% + \pgfpathmoveto{\pgfpoint{0pt}{\pgf@ya}}% + \pgfpatharc{180}{90}{#1}% + \pgf@xa=#2\unitlength% + \advance\pgf@xa by-#1\relax% + \pgfpathlineto{\pgfpoint{\pgf@xa}{#3\unitlength}}% + \pgfpatharc{90}{0}{#1}% + \pgfpathlineto{\pgfpoint{#2\unitlength}{#1}}% + \pgfpatharc{0}{-90}{#1}% + \pgfpathlineto{\pgfpoint{#1}{0pt}}% + \pgfpatharc{-90}{-180}{#1}% + \pgfpathclose% + \pgfusepathqstroke% + \pgfsys@endpurepicture% +}} +\def\pgfpictIIe@clipr{\pgfpathrectangle{\pgfpoint{0pt}{-1000pt}}{\pgfpoint{1000pt}{2000pt}}\pgfusepath{clip}} +\def\pgfpictIIe@clipl{\pgfpathrectangle{\pgfpoint{-1000pt}{-1000pt}}{\pgfpoint{1000pt}{2000pt}}\pgfusepath{clip}} +\def\pgfpictIIe@clipt{\pgfpathrectangle{\pgfpoint{-1000pt}{0pt}}{\pgfpoint{2000pt}{1000pt}}\pgfusepath{clip}} +\def\pgfpictIIe@clipb{\pgfpathrectangle{\pgfpoint{-1000pt}{-1000pt}}{\pgfpoint{2000pt}{1000pt}}\pgfusepath{clip}} + + +\renewcommand\bezier[1]{\pgfpictIIe@qbezier} +\renewcommand\qbezier[1][]{\pgfpictIIe@qbezier} +\def\pgfpictIIe@qbezier(#1,#2)(#3,#4)(#5,#6){{% + \pgfsys@beginpurepicture% + \pgfsetlinewidth{\@wholewidth}% + \pgfpathmoveto{\pgfpoint{#1\unitlength}{#2\unitlength}}% + \pgfpathcurveto% + {\pgfpointmid{0.66666666}{\pgfpoint{#1\unitlength}{#2\unitlength}}{\pgfpoint{#3\unitlength}{#4\unitlength}}}% + {\pgfpointmid{0.66666666}{\pgfpoint{#5\unitlength}{#6\unitlength}}{\pgfpoint{#3\unitlength}{#4\unitlength}}}% + {\pgfpoint{#5\unitlength}{#6\unitlength}}%% + \pgfusepathqstroke% + \pgfsys@endpurepicture% +}} +\newcommand\cbezier[1][]{\pgfpictIIe@cbezier} +\def\pgfpictIIe@cbezier(#1,#2)(#3,#4)(#5,#6)(#7,#8){{% + \pgfsys@beginpurepicture% + \pgfsetlinewidth{\@wholewidth}% + \pgfpathmoveto{\pgfpoint{#1\unitlength}{#2\unitlength}}% + \pgfpathcurveto% + {\pgfpoint{#3\unitlength}{#4\unitlength}}% + {\pgfpoint{#5\unitlength}{#6\unitlength}}% + {\pgfpoint{#7\unitlength}{#8\unitlength}}%% + \pgfusepathqstroke% + \pgfsys@endpurepicture% +}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty b/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty new file mode 100644 index 00000000000..259be238a9d --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty @@ -0,0 +1,10 @@ +% Copyright 2005 by Till Tantau . +% +% This program can be redistributed and/or modified under the terms +% of the GNU Public License, version 2. + +\RequirePackage{pgf,calc,pgffor,pgflibraryplothandlers,xkeyval} + +\input{tikz.code.tex} + +\endinput -- cgit v1.2.3