diff options
author | Karl Berry <karl@freefriends.org> | 2011-04-05 23:28:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-04-05 23:28:22 +0000 |
commit | f880ad74d5bc3708c4bf28d364e1e0551f1b652e (patch) | |
tree | ca04c4d9ba2e1bd7fef12ec0b40513e4953e799f /Master/texmf-dist/source/latex/pict2e/pict2e.dtx | |
parent | 65ca78766ba36e92de0b4a759c2faf4622cfeef3 (diff) |
pict2e (5apr11)
git-svn-id: svn://tug.org/texlive/trunk@21987 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pict2e/pict2e.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/pict2e/pict2e.dtx | 87 |
1 files changed, 57 insertions, 30 deletions
diff --git a/Master/texmf-dist/source/latex/pict2e/pict2e.dtx b/Master/texmf-dist/source/latex/pict2e/pict2e.dtx index d5c37a0db85..2d753d0e71b 100644 --- a/Master/texmf-dist/source/latex/pict2e/pict2e.dtx +++ b/Master/texmf-dist/source/latex/pict2e/pict2e.dtx @@ -2,7 +2,7 @@ % % % -% Copyright (C) 2003-2009 +% Copyright (C) 2003-2011 % Rolf Niepraschk, Rolf.Niepraschk@ptb.de % Hubert Gaesslein % Josef Tkadlec, j.tkadlec@email.cz @@ -23,7 +23,7 @@ % %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{pict2e} -%<package> [2009/08/05 v0.2x Improved picture commands (HjG,RN,JT)] +%<package> [2011/04/05 v0.2y Improved picture commands (HjG,RN,JT)] % %<*driver> \listfiles @@ -59,9 +59,9 @@ % \fi % % \GetFileInfo{pict2e.sty} -% \def\docdate{2009/08/05} +% \def\docdate{2011/04/05} % -% \CheckSum{2073} +% \CheckSum{2135} % % ^^A ======== % @@ -180,6 +180,7 @@ % \changes{v0.2v}{2008/07/19}{Improved internal division macro. (JT)} % \changes{v0.2w}{2008/07/22}{Number of points in \cmd{\qbezier} not ignored. (JT)} % \changes{v0.2x}{2009/08/05}{Support for xetex. (JT)} +% \changes{v0.2y}{2011/04/05}{Support for dvipdfmx. (JT)} % \fi % % \changes{v0.1a}{2003/07/18}{First version. (RN)} @@ -199,8 +200,10 @@ % (2008/07/19 v0.2v). (JT)} % \changes{v0.2w}{2008/07/22}{Seventh release to CTAN % (2008/07/19 v0.2w). (JT)} -% \changes{v0.2w}{2008/07/22}{Eigth release to CTAN +% \changes{v0.2x}{2009/08/08}{Eigth release to CTAN % (2009/08/08 v0.2x). (JT)} +% \changes{v0.2y}{2011/04/05}{Nineth release to CTAN +% (2011/04/05 v0.2y). (JT)} % % % \DoNotIndex{\newcommand,\renewcommand,\newenvironment,\renewenvironment} @@ -679,14 +682,14 @@ % % \begin{minipage}{.5\textwidth} % \begin{tabular}{@{}lc@{\qquad\qquad}lc@{}} -% driver & notes & driver & notes\\ \hline -% dvips & x & dvipsone & x? \\ -% xdvi & x & dviwindo & x? \\ -% pdftex & x & dvipdf & x? \\ -% vtex & x & textures & x? \\ -% dvipdfm & x & pctexps & x? \\ -% xetex & x & pctex32 & x? \\ -% oztex & (x) & & \\ \hline +% driver & notes & driver & notes\\ \hline +% dvips & x & oztex & (x) \\ +% xdvi & x & dvipsone & x? \\ +% pdftex & x & dviwindo & x? \\ +% vtex & x & dvipdf & x? \\ +% dvipdfm & x & textures & x? \\ +% dvipdfmx& x & pctexps & x? \\ +% xetex & x & pctex32 & x? \\ \hline % ^^A emtex & -- % \end{tabular} % @@ -1529,6 +1532,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}} @@ -1544,6 +1548,38 @@ % \begin{macrocode} \DeclareOption{original}{\def\pIIe@mode{0}} % \end{macrocode} +% +% \begin{macro}{\ifpIIe@pdfliteral@ok} +% \begin{macro}{\pIIe@pdfliteral} +% Check, whether if \cmd{\pIIe@pdfliteral} is given in the driver file or +% \cmd{\pdfliteral} available directly. +% \begin{macrocode} +\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 +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\pIIe@buttcap} +% Do \cmd{\buttcap} only if available. +% \begin{macrocode} +\def\pIIe@buttcap{% + \ifpIIe@pdfliteral@ok + \buttcap + \fi +} +% \end{macrocode} +% \end{macro} % Arrow shape options. % The values for \LaTeX-style arrows are ``hand optimized''; % they should be regarded as experimental, @@ -2845,7 +2881,7 @@ % \begin{macrocode} \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} @@ -3066,7 +3102,7 @@ % \end{macrocode} % For the whole oval remove use the standard shape of ends. % \begin{macrocode} - \ifnum15=\@tempcnta \buttcap \fi + \ifnum15=\@tempcnta \pIIe@buttcap \fi % \end{macrocode} % ``\verb+@tempswa+ = false'' means, that we have to suppress the `moveto' % in the following quadrant. @@ -3452,21 +3488,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 % \end{macrocode} % \end{macro} |