diff options
author | Karl Berry <karl@freefriends.org> | 2015-11-11 23:11:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-11-11 23:11:45 +0000 |
commit | 1d9414683ac75b19a10ac34fce703ebe7706e459 (patch) | |
tree | 860e31afcb9f8af9fccc79095119e15d6aeb3f26 /Master/texmf-dist/tex | |
parent | e5b087f9942a47a32c980275973792871b99f57f (diff) |
pstricks (11nov15)
git-svn-id: svn://tug.org/texlive/trunk@38821 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
10 files changed, 120 insertions, 174 deletions
diff --git a/Master/texmf-dist/tex/generic/pstricks/config/distiller.cfg b/Master/texmf-dist/tex/generic/pstricks/config/distiller.cfg index 03151d0817b..59c3e6e1e52 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/distiller.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/distiller.cfg @@ -1,4 +1,4 @@ -% $Id: distiller.cfg 177 2015-09-11 09:15:16Z herbert $ +% $Id: distiller.cfg 183 2015-09-14 20:10:17Z herbert $ %% BEGIN: distiller.con (for distiller driver) %% %% Configuration file for PSTricks @@ -18,6 +18,7 @@ \def\pstunit{1bp}% \def\pstVerb#1{\special{ps: #1}} \def\pstverbscale{SDict begin normalscale end} +\def\pstnodescale{}% not needed for pdftex \ifx\textsuperscript\@undefined \def\pstheader#1{\special{header=#1}} \else diff --git a/Master/texmf-dist/tex/generic/pstricks/config/dvipsone.cfg b/Master/texmf-dist/tex/generic/pstricks/config/dvipsone.cfg index b72e765dd10..d28f1f7ea5d 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/dvipsone.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/dvipsone.cfg @@ -1,9 +1,9 @@ -% $Id: dvipsone.cfg 177 2015-09-11 09:15:16Z herbert $ +% $Id: dvipsone.cfg 180 2015-09-11 12:10:43Z herbert $ %% BEGIN pstricks.con (for DVIPSONE driver) %% %% Configuration file for PSTricks 97: must be renamed `pstricks.con' %% -%% Version 97 (1994/03/29) +%% Version 0.01 (2015/09/11) %% %% For use with DVIPSONE. (May require the -j flag with dvipsone) @@ -12,6 +12,7 @@ {\catcode`\"=12 \gdef\pstverb#1{\special{" #1}} } \def\pstVerb#1{\special{ps:: #1}} \def\pstverbscale{1 dviscl div dup neg scale} +\def\pstnodescale{} \def\pstrotate{CP CP translate 3 -1 roll neg rotate \tx@NET} \def\pstheader#1{\special{header=#1}} diff --git a/Master/texmf-dist/tex/generic/pstricks/config/gastex.cfg b/Master/texmf-dist/tex/generic/pstricks/config/gastex.cfg index 774f0073fa8..d9ffb042956 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/gastex.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/gastex.cfg @@ -1,4 +1,4 @@ -% $Id: gastex.cfg 177 2015-09-11 09:15:16Z herbert $ +% $Id: gastex.cfg 183 2015-09-14 20:10:17Z herbert $ %% BEGIN: pstricks.con (for xdvipdfmx driver) %% %% Configuration file for PSTricks @@ -10,6 +10,7 @@ %% This file may be distributed, used and modified freely. % \def\pstdriver{xdvipdfmx}% +\def\pstnodescale{} \ifx\textsuperscript\@undefined \def\pstheader#1{\special{header=#1}}% \else @@ -19,6 +20,7 @@ \let\pstheader\Gin@PS@file@header% \fi \fi +\def\pstnodescale{}% not needed for pdftex %%%%%%%%%%%%%%%%%%% !! CUSTOMIZATION STUFF GOES HERE: !! %%%%%%%%%%%%%%%%%% %% If you want to include your own customizations to pstricks.tex, then diff --git a/Master/texmf-dist/tex/generic/pstricks/config/textures.cfg b/Master/texmf-dist/tex/generic/pstricks/config/textures.cfg index 518365368ab..588cc6591c6 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/textures.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/textures.cfg @@ -1,4 +1,4 @@ -% $Id: textures.cfg 177 2015-09-11 09:15:16Z herbert $ +% $Id: textures.cfg 183 2015-09-14 20:10:17Z herbert $ %% BEGIN pstricks.con (for Textures 1.7 and 1.8 driver) %% %% Configuration file for PSTricks 97: must be renamed `pstricks.con' @@ -13,6 +13,7 @@ \def\pstverb#1{\special{postscript #1 }} \def\pstVerb#1{\special{rawpostscript #1}} \def\pstverbscale{Mag 72.27 72 div mul dup neg scale} +\def\pstnodescale{}% not needed for pdftex \def\pstrotate{CP CP translate 3 -1 roll neg rotate \tx@NET} \def\pstheader#1{\special{prePostScriptfile #1}}% diff --git a/Master/texmf-dist/tex/generic/pstricks/config/vtex.cfg b/Master/texmf-dist/tex/generic/pstricks/config/vtex.cfg index 6baa3fe0238..7205579c208 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/vtex.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/vtex.cfg @@ -1,4 +1,4 @@ -% $Id: vtex.cfg 177 2015-09-11 09:15:16Z herbert $ +% $Id: vtex.cfg 183 2015-09-14 20:10:17Z herbert $ %% BEGIN: pstricks.con (for VTeX) %% %% Configuration file for PSTricks 97 @@ -21,6 +21,7 @@ \def\pstunit{1bp}% \def\pstVerb#1{\special{pS: #1}}% \def\pstverbscale{SDict begin normalscale end} +\def\pstnodescale{}% not needed for pdftex \ifx\textsuperscript\@undefined \def\pstheader#1{\special{header=#1}} \else diff --git a/Master/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg b/Master/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg index 8345020656f..b2a7e982466 100644 --- a/Master/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg +++ b/Master/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg @@ -1,5 +1,5 @@ -% $Id: xdvipdfmx.cfg 179 2015-09-11 09:58:42Z herbert $ - +% $Id: xdvipdfmx.cfg 180 2015-09-11 12:10:43Z herbert $ +% %% BEGIN: pstricks.con (for xdvipdfmx driver) %% %% Configuration file for PSTricks diff --git a/Master/texmf-dist/tex/generic/pstricks/pstricks.tex b/Master/texmf-dist/tex/generic/pstricks/pstricks.tex index 7d9911402ca..447da532c3a 100644 --- a/Master/texmf-dist/tex/generic/pstricks/pstricks.tex +++ b/Master/texmf-dist/tex/generic/pstricks/pstricks.tex @@ -1,7 +1,7 @@ %% pstricks.tex %% COPYRIGHT 1993, 1994, 1999 by Timothy Van Zandt, tvz@nwu.edu. %% COPYRIGHT 2000-2003 by Denis Girou. -%% Copyright 2004-2015 Herbert Voss +%% Copyright 2004-2016 Herbert Voss % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -116,8 +116,8 @@ \input pgffor.code.tex \let\pgfforeach\foreach % -\def\fileversion{2.63} -\def\filedate{2015/09/11} +\def\fileversion{2.64a} +\def\filedate{2015/11/11} \catcode`\@=11\relax \pst@addfams{pstricks} % @@ -4086,7 +4086,7 @@ pop } \def\psput@special#1{% \hbox{% - \pst@Verb{{ \pst@coor \pstnodescale } \tx@PutCoor \tx@PutBegin }% + \pst@Verb{{ \pst@coor \pstnodescale } \tx@PutCoor \tx@PutBegin }% 20150911 hv \box#1% \pst@Verb{ \tx@PutEnd }% }% @@ -4373,8 +4373,8 @@ pop \pst@dimb=\pst@dimd% \pst@dimd=\pst@dimg% \fi% - \setbox\pst@hbox=\hbox\bgroup% - \begingroup\KillGlue% + \setbox\pst@hbox=\hbox\bgroup + \begingroup\KillGlue \@ifundefined{@latexerr}{}{\let\unitlength\psunit}% \edef\pic@coor{(#2,#3)(#2,#3)(#4,#5)}% % ----------- 1.10/12 beg hv ------------------- @@ -4417,11 +4417,13 @@ pop \pst@dimd=0.5\pst@dimd \else\pst@dimd-\pst@shift\fi \advance\pst@dimd\pst@dimb - \lower\pst@dimd% - \box\pst@hbox% + \lower\pst@dimd + \box\pst@hbox \kern\pst@dimc}% - \if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi% - \leavevmode\box\pst@hbox% + \if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi + \leavevmode\ifdim\overfullrule=\z@\box\pst@hbox\else + \fboxsep=0pt + \fbox{\rule[-\pst@shift]{0pt}{\ht\pst@hbox}\rule{\wd\pst@hbox}{0pt}}\fi \endgroup% \psset[pstricks]{shift=0}% reset value } diff --git a/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls b/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls index fe4e58f029e..8b3df60d05b 100644 --- a/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls +++ b/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls @@ -23,12 +23,16 @@ DIV13]{scrartcl} % \RequirePackage[dvipsnames,x11names,svgnames,table]{xcolor} -\RequirePackage[T1]{fontenc} +\RequirePackage{ifxetex} +\ifxetex +\else + \RequirePackage[T1]{fontenc} + \RequirePackage{textcomp} + %\RequirePackage[euler-digits]{eulervm} + \RequirePackage{bera} + %\RequirePackage[scaled=0.85]{luximono} +\fi \RequirePackage{ifpdf} -\RequirePackage{textcomp} -%\RequirePackage[euler-digits]{eulervm} -\RequirePackage{bera} -%\RequirePackage[scaled=0.85]{luximono} % Define commands that don't eat spaces. \RequirePackage{xspace} \makeatletter @@ -261,13 +265,13 @@ xleftmargin=0pt,xrightmargin=0pt, % Inhalte von List of Figures \IfPackageLoaded{subfig}{\setcounter{lofdepth}{1} %1 = nur figures, 2 = figures + subfigures } -\RequirePackage[colorlinks=true, +\RequirePackage[colorlinks, urlcolor=pdfurlcolor, filecolor=pdffilecolor, linkcolor=pdflinkcolor, breaklinks, linktocpage=true]{hyperref} -\ifpdf +\ifxetex \else \RequirePackage{breakurl} \fi diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks-pdf.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks-pdf.sty new file mode 100644 index 00000000000..e3907c28d7e --- /dev/null +++ b/Master/texmf-dist/tex/latex/pstricks/pstricks-pdf.sty @@ -0,0 +1,28 @@ +%% +%% This is file `pstricks-pdf.sty'. +%% +%% IMPORTANT NOTICE: +%% +%% pstricks-pdf.sty Copyright (C) 2016 Herbert Voss <hvoss@tug.org> +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +%% + +\NeedsTeXFormat{LaTeX2e} + +\ProvidesPackage{pstricks-pdf}[2015/11/11 v0.01 wrapper for `pstricks.sty' (HV)] +% +\DeclareOption*{% + \PassOptionsToPackage\CurrentOption{auto-pst-pdf}% + \PassOptionsToPackage\CurrentOption{pstricks}}% +\ProcessOptions\relax +% +\RequirePackage{auto-pst-pdf}% +\def\app@pdfcrop@opts{--hres}%%% hv 20130405 +\@ifclassloaded{beamer}{\ifpdf\else\setbeamertemplate{navigation symbols}\fi}{}% +\RequirePackage{pstricks} +% +%% +%% End of file `pstricks-pdf.sty'. diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty index d34dd775288..195e12d54bf 100644 --- a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty +++ b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty @@ -5,7 +5,7 @@ %% %% pstricks.sty Copyright (C) 1997 Timothy Van Zandt %% pstcol.sty Copyright (C) 1994-1996 1999 David Carlisle -%% pstricks.sty Copyright (C) 2004-2014 Rolf Niepraschk <Rolf.Niepraschk@gmx.de> +%% pstricks.sty Copyright (C) 2004-2016 Rolf Niepraschk <Rolf.Niepraschk@gmx.de> %% Herbert Voss <hvoss@tug.org> %% %% This package may be distributed under the terms of the LaTeX Project @@ -15,7 +15,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pstricks}[2013/12/12 v0.60 LaTeX wrapper for `PSTricks' (RN,HV)] +\ProvidesPackage{pstricks}[2015/11/11 v0.61 LaTeX wrapper for `PSTricks' (RN,HV)] % \def\documentclass{% \edef\@tempa{\jobname.tex }% @@ -32,128 +32,38 @@ \fi } % -\newif\ifpst@OldVersion\pst@OldVersionfalse -\DeclareOption{97}{\pst@OldVersiontrue} -% -\newif\ifpst@ovl \pst@ovlfalse -\DeclareOption{overlays}{\global\pst@ovltrue} +\def\pst@ColorPackage{xcolor} +\DeclareOption{noxcolor}{\def\pst@ColorPackage{color}} % -\newif\ifpst@loadPDF \pst@loadPDFfalse -\DeclareOption{pdf}{\global\pst@loadPDFtrue} -%------------------------------------ PLAIN -------------------------------- +%---------------------------------DISTILLER -------------------------------- +\newif\ifpst@distiller\pst@distillerfalse +\DeclareOption{distiller}{\pst@distillertrue} -\DeclareOption{plain}{% - \ifpst@OldVersion - \def\psDEBUG[#1]#2{}% - \def\pst@tempa{pstricks97.tex}% - \else - \def\pst@tempa{pstricks.tex}% - \fi - \input{\pst@tempa}% - \ProvidesFile{\pst@tempa}[\filedate\space v\fileversion\space `PSTricks' (tvz)]% - \endinput -} -% -\DeclareOption*{\OptionNotUsed} -% +%---------------------------------COLOR -------------------------------- +\DeclareOption{monochrome}{% + \AtBeginDocument{\special{ps: + /setrgbcolor { add add 0 gt {1}{0} ifelse setgray } def + /setcmykcolor{ 4 dict begin + /k ED /y ED /m ED /c ED + 1 1 k sub c mul k add sub 0.29 mul + 1 1 k sub m mul k add sub 0.587 mul add + 1 1 k sub y mul k add sub 0.114 mul add + end 0 gt {1}{0} ifelse setgray } def }}} + +\DeclareOption{grayscale}{% + \AtBeginDocument{\special{ps: + /setrgbcolor { 0.07 mul exch 0.71 mul add exch 0.21 mul add setgray } def + /setcmykcolor{ 4 dict begin + /k ED /y ED /m ED /c ED + 1 1 k sub c mul k add sub 0.29 mul + 1 1 k sub m mul k add sub 0.587 mul add + 1 1 k sub y mul k add sub 0.114 mul add + end setgray } def }}} + +\DeclareOption*{\PassOptionsToPackage\CurrentOption{\pst@ColorPackage}} \ProcessOptions\relax -% -\RequirePackage{ifpdf} -% -\ifpst@loadPDF - \ifnum\pdfshellescape=\@ne\else - \PackageWarningNoLine{pstricks}{% -************************************ \MessageBreak - Option pdf needs a "pdflatex -shell-escape <file>" \MessageBreak - or a "pdflatex -enable-write18 <file>" \MessageBreak - (if you are using MikTeX) \MessageBreak -************************************} - \fi - \def\app@pdfcrop@opts{--hres}%%% hv 20130405 - \@ifclassloaded{beamer}{% - \ifpdf \else\setbeamertemplate{navigation symbols}{} \fi - \AtEndOfPackage{\RequirePackage{auto-pst-pdf}}} - {\AtBeginDocument{% - {\@ifundefined{shorthandoff} % we have no babel until now - { \typeout{noshorthand}\usepackage{auto-pst-pdf}} - { \@ifundefined{bbl@active@"}{}{\shorthandoff{"}} - \usepackage{auto-pst-pdf} - \@ifundefined{bbl@active@"}{}{\shorthandon{"}}}}}} -\fi -% -\ifpst@ovl \RequirePackage{pst-ovl}\fi -% -\@ifundefined{PSTricksLoaded} -{% - \let\saved@scalebox\scalebox - \ifpst@OldVersion - \def\psDEBUG[#1]#2{} - \def\pst@tempa{pstricks97.tex}% - \else - \def\pst@tempa{pstricks.tex} - \fi - \input{\pst@tempa}% - \ProvidesFile{\pst@tempa} - [\filedate\space v\fileversion\space `PSTricks' (tvz,hv)] - \ifpst@OldVersion - \IfFileExists{pstricks97.pro}{% - \ProvidesFile{pstricks97.pro}% - [1998/06/01 v. 97 patch 3, PostScript prologue file (hv)] - \@addtofilelist{pstricks97.pro}}{}% - \IfFileExists{pst-dots97.pro}{% - \ProvidesFile{pst-dots97.pro} - [1999/12/16 v. 97 patch 1, PostScript prologue file (hv)] - \@addtofilelist{pst-dots97.pro}}{}% - \else - \input{pst-fp.tex} - \ProvidesFile{pst-fp.tex} - [\filedate\space v\fileversion\space `PST-fp' (hv)] - \IfFileExists{pstricks.pro}{% - \ProvidesFile{pstricks.pro} - [2012/10/16 v. 1.15, PostScript prologue file (hv)] - \@addtofilelist{pstricks.pro}}{}% - \IfFileExists{pst-algparser.pro}{% - \ProvidesFile{pst-algparser.pro} - [2011/10/31 v. 0.04, PostScript prologue file (hv)] - \@addtofilelist{pst-algparser.pro}}{}% - \IfFileExists{pst-tools.pro}{% - \ProvidesFile{pst-tools.pro} - [2012/01/01 v. 0.02, PostScript prologue file (hv)] - \@addtofilelist{pst-tools.pro}}{}% - \IfFileExists{pst-dots.pro}{% - \ProvidesFile{pst-dots.pro} - [2006/12/19 v. 2.00, PostScript prologue file (hv)] - \@addtofilelist{pst-dots.pro}}{}% - \fi - {% - \let\psscalebox\scalebox - \let\psscaleboxto\scaleboxto - }{} - \let\scalebox\saved@scalebox -}{} -% -% -\IfFileExists{xcolor.sty}{% - \def\pst@ColorPackage{xcolor} -% \PassOptionsToPackage{override}{xcolor} -}{\def\pst@ColorPackage{color}}% -%------------------------------------ DIA -------------------------------- -\newif\ifpst@DIA\pst@DIAfalse -\DeclareOption{DIA}{\pst@DIAtrue} -%------------------------------ color or xcolor -------------------------- -\DeclareOption{noxcolor}{\def\pst@ColorPackage{color}} -%------------------------------------ VTeX -------------------------------- -\DeclareOption{vtex}{% - \pst@def{setTransparency}< > - \pst@def{setStrokeTransparency}< > - \pst@def{setBlendmode}< >% - \PassOptionsToPackage{vtex}{\pst@ColorPackage}% -} -%---------------------------------DISTILLER -------------------------------- -\newif\ifpst@distiller\pst@distillerfalse -\DeclareOption{distiller}{% - \pst@distillertrue% +\ifpst@distiller \pst@def{setTransparency}< [ /ca \psk@opacityalpha /CA \psk@opacityalpha /SetTransparency pdfmark > @@ -180,34 +90,32 @@ /Luminosity % 15 \else /Normal \fi /ca \psk@shapealpha /CA \psk@opacityalpha /SetTransparency pdfmark >% -} -%---------------------------------COLOR -------------------------------- -\DeclareOption{monochrome}{% - \AtBeginDocument{\special{ps: - /setrgbcolor { add add 0 gt {1}{0} ifelse setgray } def - /setcmykcolor{ 4 dict begin - /k ED /y ED /m ED /c ED - 1 1 k sub c mul k add sub 0.29 mul - 1 1 k sub m mul k add sub 0.587 mul add - 1 1 k sub y mul k add sub 0.114 mul add - end 0 gt {1}{0} ifelse setgray } def }}} - -\DeclareOption{grayscale}{% - \AtBeginDocument{\special{ps: - /setrgbcolor { 0.07 mul exch 0.71 mul add exch 0.21 mul add setgray } def - /setcmykcolor{ 4 dict begin - /k ED /y ED /m ED /c ED - 1 1 k sub c mul k add sub 0.29 mul - 1 1 k sub m mul k add sub 0.587 mul add - 1 1 k sub y mul k add sub 0.114 mul add - end setgray } def }}} - -\DeclareOption*{% - \PassOptionsToPackage\CurrentOption{\pst@ColorPackage}} -\ProcessOptions\relax - +\fi +% \RequirePackage{\pst@ColorPackage} - +% +\@ifundefined{PSTricksLoaded} +{% + \let\saved@scalebox\scalebox + \input{pstricks}% + \ProvidesFile{pstricks.tex}[\filedate\space v\fileversion\space `PSTricks' (tvz,hv)] + \input{pst-fp.tex} + \ProvidesFile{pst-fp.tex}[\filedate\space v\fileversion\space `PST-fp' (hv)] + \IfFileExists{pstricks.pro}{% + \ProvidesFile{pstricks.pro} + [2012/10/16 v. 1.15, PostScript prologue file (hv)] + \@addtofilelist{pstricks.pro}}{}% + \IfFileExists{pst-algparser.pro}{% + \ProvidesFile{pst-algparser.pro}[2011/10/31 v. 0.04, PostScript prologue file (hv)] + \@addtofilelist{pst-algparser.pro}}{}% + \IfFileExists{pst-tools.pro}{% + \ProvidesFile{pst-tools.pro}[2012/01/01 v. 0.02, PostScript prologue file (hv)] + \@addtofilelist{pst-tools.pro}}{}% + \IfFileExists{pst-dots.pro}{% + \ProvidesFile{pst-dots.pro}[2006/12/19 v. 2.00, PostScript prologue file (hv)] + \@addtofilelist{pst-dots.pro}}{}% +}{} +% \@ifpackageloaded{xcolor}{% \@ifpackagelater{xcolor}{2004/05/02}% {% @@ -299,6 +207,4 @@ % LaTeX used `\color@endgroup' instead. RN 2004-05-06 } % -\endinput -%% %% End of file `pstricks.sty'. |