summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pict2e/pict2e.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pict2e/pict2e.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pict2e/pict2e.sty47
1 files changed, 28 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/pict2e/pict2e.sty b/Master/texmf-dist/tex/latex/pict2e/pict2e.sty
index 50d676a2394..2f764d3d90a 100644
--- a/Master/texmf-dist/tex/latex/pict2e/pict2e.sty
+++ b/Master/texmf-dist/tex/latex/pict2e/pict2e.sty
@@ -6,7 +6,7 @@
%%
%% pict2e.dtx (with options: `package')
%%
-%% Copyright (C) 2003, 2004, 2008, 2009
+%% Copyright (C) 2003, 2004, 2008, 2009, 2011
%% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
%% Hubert Gaesslein, HubertJG@open.mind.de
%% Josef Tkadlec, j.tkadlec@email.cz
@@ -25,7 +25,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{pict2e}
- [2009/08/05 v0.2x Improved picture commands (HjG,RN,JT)]
+ [2011/04/05 v0.2y Improved picture commands (HjG,RN,JT)]
\edef\Gin@codes{%
\catcode`\noexpand\^^A\the\catcode`\^^A\relax
\catcode`\noexpand\"\the\catcode`\"\relax
@@ -45,6 +45,7 @@
\DeclareOption{xdvi}{\ExecuteOptions{dvips}}
\DeclareOption{dvipdf}{\def\Gin@driver{dvipdf.def}}
\DeclareOption{dvipdfm}{\def\Gin@driver{dvipdfm.def}}
+\DeclareOption{dvipdfmx}{\def\Gin@driver{dvipdfmx.def}}
\DeclareOption{pdftex}{\def\Gin@driver{pdftex.def}}
\DeclareOption{xetex}{\def\Gin@driver{xetex.def}}
\DeclareOption{dvipsone}{\def\Gin@driver{dvipsone.def}}
@@ -55,6 +56,23 @@
\DeclareOption{pctex32}{\def\Gin@driver{pctex32.def}}
\DeclareOption{vtex}{\def\Gin@driver{vtex.def}}
\DeclareOption{original}{\def\pIIe@mode{0}}
+\newif\ifpIIe@pdfliteral@ok
+\pIIe@pdfliteral@oktrue
+\ifx\pIIe@pdfliteral\@undefined
+ \ifx\pdfliteral\@undefined
+ \pIIe@pdfliteral@okfalse
+ \def\pIIe@pdfliteral#1{%
+ \PackageWarning{pict2e}{pdfliteral not supported}%
+ }%
+ \else
+ \let\pIIe@pdfliteral\pdfliteral
+ \fi
+\fi
+\def\pIIe@buttcap{%
+ \ifpIIe@pdfliteral@ok
+ \buttcap
+ \fi
+}
\DeclareOption{ltxarrows}{\AtEndOfPackage{%
\let\pIIe@vector=\pIIe@vector@ltx
\def\pIIe@FAL{1.52}%
@@ -495,7 +513,7 @@
\endgroup}
\newcommand*\pIIe@circle[1]{%
\begingroup
- \buttcap
+ \pIIe@buttcap
\pIIe@qcircle[1]\z@{#1}\pIIe@qcircle \@ne{#1}%
\pIIe@qcircle \tw@{#1}\pIIe@qcircle\thr@@{#1}%
\endgroup}
@@ -540,7 +558,7 @@
\@xdim\@ovxx \advance\@xdim-\@tempdimc
\@ydim\@ovyy \advance\@ydim-\@tempdimc
\pIIe@get@quadrants{#3}%
- \ifnum15=\@tempcnta \buttcap \fi
+ \ifnum15=\@tempcnta \pIIe@buttcap \fi
\@tempswatrue
\ifnum9=\@tempcnta
\pIIe@qoval\z@{-\@ovyy}{\@xdim}{-\@ovyy}\thr@@\@tempdimc\@ovxx\z@
@@ -709,21 +727,12 @@
\def\roundjoin{\special{ps:: 1 setlinejoin}}
\def\beveljoin{\special{ps:: 2 setlinejoin}}
\or
- \@ifundefined{XeTeXrevision}{%
- \def\buttcap{\pdfliteral{0 J}}%
- \def\roundcap{\pdfliteral{1 J}}%
- \def\squarecap{\pdfliteral{2 J}}%
- \def\miterjoin{\pdfliteral{0 j}}%
- \def\roundjoin{\pdfliteral{1 j}}%
- \def\beveljoin{\pdfliteral{2 j}}%
- }{%
- \def\buttcap{\special{pdf: literal 0 J}}%
- \def\roundcap{\special{pdf: literal 1 J}}%
- \def\squarecap{\special{pdf: literal 2 J}}%
- \def\miterjoin{\special{pdf: literal 0 j}}%
- \def\roundjoin{\special{pdf: literal 1 j}}%
- \def\beveljoin{\special{pdf: literal 2 j}}%
- }%
+ \def\buttcap{\pIIe@pdfliteral{0 J}}%
+ \def\roundcap{\pIIe@pdfliteral{1 J}}%
+ \def\squarecap{\pIIe@pdfliteral{2 J}}%
+ \def\miterjoin{\pIIe@pdfliteral{0 j}}%
+ \def\roundjoin{\pIIe@pdfliteral{1 j}}%
+ \def\beveljoin{\pIIe@pdfliteral{2 j}}%
\fi
\AtBeginDocument{\@ifundefined{cbezier}{\newcommand}{\renewcommand}*%
\cbezier[2][0]{\pIIe@@cbezier[#1]#2}%