1 diff -u xypdf.orig/xypdf-co.tex xypdf/xypdf-co.tex
2 --- xypdf.orig/xypdf-co.tex 2016-11-19 12:24:53.457219331 +0100
3 +++ xypdf/xypdf-co.tex 2016-11-19 12:24:07.314492681 +0100
6 %% The xypdf package for TeX and LaTeX
7 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
8 -%% <http://math.stanford.edu/~muellner>
9 +%% <http://danifold.net>
10 %% --------------------------------------------------------------------------
12 %% This program is free software: you can redistribute it and/or modify it
14 \@ifdefinable\xP@colB\relax
15 \@ifdefinable\xP@colC\relax
16 \@ifdefinable\xP@colD\relax
17 +\@ifdefinable\xP@colE\relax
18 \xP@hook{color}{newxycolor}
19 -\newcommand*\xP@newxycolor[2]{\def\xP@colorname{#1}\xP@parsecolor#2 @}
20 +\newcommand*\xP@newxycolor[2]{\def\xP@colorname{#1}\expandafter\xP@parsecolor\@firstofone#2 @}
22 +\@ifdefinable\xP@parsetwo\relax
23 +\def\xP@parsetwo#1 #2@{\def\xP@colC{#1}\def\xP@colD{#2}}
24 +\@ifdefinable\xP@parsethree\relax
25 +\def\xP@parsethree#1 #2 #3@{\def\xP@colC{#1}\def\xP@colD{#2}\def\xP@colE{#3}}
26 \@ifdefinable\xP@parsecolor\relax
27 -\def\xP@parsecolor#1 #2 #3@{\def\xP@colA{#1}\def\xP@colB{#2}\ifx\xP@colB\xP@gray
28 +\def\xP@parsecolor#1 #2 #3@{\def\xP@colA{#1}\def\xP@colB{#2}\ifx\xP@colA\xP@cmyk
29 +\xP@parsethree#3@\xP@newcolor\xP@colorname{\xP@colB,\xP@colC,\xP@colD,\xP@colE}\xP@cmyk
33 +\xP@parsethree#3@\xP@newcolor\xP@colorname{\xP@colB,\xP@colC,\xP@colD,\xP@colE}\xP@cmyk
37 +\xP@parsetwo#3@\xP@newcolor\xP@colorname{\xP@colB,\xP@colC,\xP@colD}\xP@rgb\newxycolor
40 +\xP@parsetwo#3@\xP@newcolor\xP@colorname{\xP@colB,\xP@colC,\xP@colD}\xP@rgb
44 +\xP@newcolor\xP@colorname\xP@colB\xP@gray\newxycolor
47 +\xP@newcolor\xP@colorname\xP@colB\xP@gray\newxycolor
50 +\xP@newcolor\xP@colorname\xP@colA\xP@gray\newxycolor
53 \xP@newcolor\xP@colorname\xP@colA\xP@gray\newxycolor
55 \xP@parsecolor@#3 @\fi
64 \@ifdefinable\xP@parsecolor@\relax
65 \def\xP@parsecolor@#1 #2 #3 #4@{\def\xP@colC{#1}\def\xP@colD{#2}\ifx\xP@colD\xP@rgb
66 \xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC}\xP@rgb\newxycolor
69 +\xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC}\xP@rgb\newxycolor
71 \def\@tempa{#3}\ifx\@tempa\xP@cmyk
72 -\xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC,\xP@colD}{cmyk}\newxycolor
73 +\xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC,\xP@colD}\xP@cmyk\newxycolor
76 +\xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC,\xP@colD}\xP@cmyk\newxycolor
78 \PackageError{xypdf}{Syntax error in \string\newxycolor}{}\fi
83 \newcommand*\xP@gray{gray}
84 \newcommand*\xP@rgb{rgb}
85 \newcommand*\xP@cmyk{cmyk}
86 +\newcommand*\xP@GRAY{GRAY}
87 +\newcommand*\xP@RGB{RGB}
88 +\newcommand*\xP@CMYK{CMYK}
89 \xP@hook{color}{OBJECT@shape}
90 \newcommand*\xP@OBJECT@shape[1]{\DN@{shape [#1]}\expandafter\let\expandafter\nextii@\csname\codeof\next@\endcsname
91 \ifx\nextii@\relax\DN@{style [#1]}\expandafter\let\expandafter\nextii@\csname\codeof\next@\endcsname
93 \xywithoption{crayon}{\xP@installCrayolaColors
94 \renewcommand*\installCrayolaColors@{}}
102 %% End of file `xypdf-co.tex'.
103 diff -u xypdf.orig/xypdf-cu.tex xypdf/xypdf-cu.tex
104 --- xypdf.orig/xypdf-cu.tex 2016-11-19 12:24:53.457219331 +0100
105 +++ xypdf/xypdf-cu.tex 2016-11-19 12:24:07.314492681 +0100
108 %% The xypdf package for TeX and LaTeX
109 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
110 -%% <http://math.stanford.edu/~muellner>
111 +%% <http://danifold.net>
112 %% --------------------------------------------------------------------------
114 %% This program is free software: you can redistribute it and/or modify it
115 @@ -1178,10 +1178,5 @@
116 \@for\@tempa:={#1}\do{\the\toks@}\xP@stroke{\the\@temptokena}}}
117 \newcommand*\xP@paintbrokensquiggle[5]{\xP@squigglevectors{#1}\xP@append\@temptokena{\xP@coor\xP@posX\xP@posY m \xP@coor{\xP@posX+\Y@max}{\xP@posY+\X@max}}\xP@squigglevectors{#2}\xP@append\@temptokena{\xP@coor{\xP@posX-\D@p-\X@min}{\xP@posY+\R@p-\Y@min}\xP@coor{\xP@posX-\D@p}{\xP@posY+\R@p}c \xP@coor{\xP@posX-\D@p+\X@min}{\xP@posY+\R@p+\Y@min}}\xP@squigglevectors{#3}\xP@append\@temptokena{\xP@coor{\xP@posX-\X@max}{\xP@posY+\Y@max}\xP@coor\xP@posX\xP@posY c \xP@coor{\xP@posX+\X@max}{\xP@posY-\Y@max}}\xP@squigglevectors{#4}\xP@append\@temptokena{\xP@coor{\xP@posX+\D@p-\X@min}{\xP@posY-\R@p-\Y@min}\xP@coor{\xP@posX+\D@p}{\xP@posY-\R@p}c \xP@coor{\xP@posX+\D@p+\X@min}{\xP@posY-\R@p+\Y@min}}\xP@squigglevectors{#5}\xP@append\@temptokena{\xP@coor{\xP@posX-\Y@max}{\xP@posY-\X@max}\xP@coor\xP@posX\xP@posY c }}
125 %% End of file `xypdf-cu.tex'.
126 diff -u xypdf.orig/xypdf-fr.tex xypdf/xypdf-fr.tex
127 --- xypdf.orig/xypdf-fr.tex 2016-11-19 12:24:53.457219331 +0100
128 +++ xypdf/xypdf-fr.tex 2016-11-19 12:24:07.314492681 +0100
131 %% The xypdf package for TeX and LaTeX
132 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
133 -%% <http://math.stanford.edu/~muellner>
134 +%% <http://danifold.net>
135 %% --------------------------------------------------------------------------
137 %% This program is free software: you can redistribute it and/or modify it
139 0 \xP@dim\B@ c }\@temptokena\expandafter{\@tempa}\xP@mirrorpath
140 \xP@fillorstroke{\the\@temptokena}}
148 %% End of file `xypdf-fr.tex'.
149 diff -u xypdf.orig/xypdf-li.tex xypdf/xypdf-li.tex
150 --- xypdf.orig/xypdf-li.tex 2016-11-19 12:24:53.457219331 +0100
151 +++ xypdf/xypdf-li.tex 2016-11-19 12:24:07.314492681 +0100
154 %% The xypdf package for TeX and LaTeX
155 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
156 -%% <http://math.stanford.edu/~muellner>
157 +%% <http://danifold.net>
158 %% --------------------------------------------------------------------------
160 %% This program is free software: you can redistribute it and/or modify it
163 \expandafter\let\csname xypdf-li@loaded\endcsname\@empty
171 %% End of file `xypdf-li.tex'.
172 diff -u xypdf.orig/xypdf-ro.tex xypdf/xypdf-ro.tex
173 --- xypdf.orig/xypdf-ro.tex 2016-11-19 12:24:53.457219331 +0100
174 +++ xypdf/xypdf-ro.tex 2016-11-19 12:24:07.314492681 +0100
177 %% The xypdf package for TeX and LaTeX
178 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
179 -%% <http://math.stanford.edu/~muellner>
180 +%% <http://danifold.net>
181 %% --------------------------------------------------------------------------
183 %% This program is free software: you can redistribute it and/or modify it
194 %% End of file `xypdf-ro.tex'.
195 diff -u xypdf.orig/xypdf.tex xypdf/xypdf.tex
196 --- xypdf.orig/xypdf.tex 2016-11-19 12:24:53.457219331 +0100
197 +++ xypdf/xypdf.tex 2016-11-19 12:24:07.314492681 +0100
200 %% The xypdf package for TeX and LaTeX
201 %% Copyright (c) 2010 by Daniel Müllner (M\"ullner)
202 -%% <http://math.stanford.edu/~muellner>
203 +%% <http://danifold.net>
204 %% --------------------------------------------------------------------------
206 %% This program is free software: you can redistribute it and/or modify it
208 %% (Muellner, M\"ullner).
210 \ifx\xyloaded\undefined\input xy \fi
211 -\xyprovide{pdf}{PDF driver}{1.7}{Daniel M\"ullner\newline}{\url{http://math.stanford.edu/~muellner}}{}
212 +\xyprovide{pdf}{PDF driver}{1.9}{Daniel M\"ullner\newline}{\url{http://danifold.net}}{}
213 \ifx\makeatletter\undefined\input miniltx \fi
214 -\newcommand*\xypdfdate{2011/03/20}
215 +\newcommand*\xypdfdate{2016/07/25}
216 \newdriver{\xyaddsupport{pdf}\xP@pdf@on
217 \xyaddsupport{color}\xP@color@on
218 \xyaddsupport{curve}\xP@curve@on
221 \newcommand*\xP@testpdfsave{\ifpdf
222 \ifx\pdfsave\@undefined
223 -\PackageError{xypdf}{pdfTeX version 1.40.0 or higher is needed for the xypdf^^Jpackage with PDF output}{}\fi
224 +\ifx\pdfextension\@undefined
225 +\PackageError{xypdf}{LuaTeX or pdfTeX version 1.40.0
226 +or higher is needed for^^Jthe xypdf package with PDF output}{}\fi
229 \let\xP@testpdfsave\@undefined
231 @@ -120,12 +123,24 @@
232 \expandafter\noexpand\csname xP@old@#2\endcsname
234 \newcommand*\xP@defpdfliteral{\ifpdf
235 +\ifx\pdfextension\@undefined
236 \newcommand*\xP@literal[1]{\pdfsave\pdfliteral{##1}\pdfrestore}
237 \newcommand*\xP@cm[5]{\pdfsave
238 \pdfsetmatrix{##1 ##2 ##3 ##4}##5\pdfrestore
240 -\@ifundefined{@pdfcolorstack}{\def\@pdfcolorstack{\z@}}{}\newcommand*\xP@setcolor[3]{\pdfcolorstack\@pdfcolorstack push{##1 ##2 ##1 ##3}}
242 +\newcommand*\xP@literal[1]{\pdfextension save\pdfextension literal{##1}\pdfextension restore\relax
244 +\newcommand*\xP@cm[5]{\pdfextension save\pdfextension setmatrix{##1 ##2 ##3 ##4}##5\pdfextension restore\relax
247 +\@ifundefined{@pdfcolorstack}{\def\@pdfcolorstack{\z@}}{}\ifx\pdfextension\@undefined
248 +\newcommand*\xP@setcolor[3]{\pdfcolorstack\@pdfcolorstack push{##1 ##2 ##1 ##3}}
249 \newcommand*\xP@resetcolor{\pdfcolorstack\@pdfcolorstack pop\relax}\else
250 +\newcommand*\xP@setcolor[3]{\pdfextension colorstack\@pdfcolorstack push{##1 ##2 ##1 ##3}}
251 +\newcommand*\xP@resetcolor{\pdfextension colorstack\@pdfcolorstack pop\relax
254 \newcommand*\xP@literal{\xP@warning{xypdf}{The produced DVI file is NOT PORTABLE. Convert it with^^Jdvipdfm(x) to the PDF format but do not expect the DVI file itself to be^^Jdisplayed correctly\@gobble}\global\let\xP@literal\xP@literal@
257 @@ -145,14 +160,20 @@
259 {\RequirePackage{ifpdf}\xP@testpdfsave
261 +\@ifdefinable\xP@digits\relax
262 +\ifx\pdfvariable\@undefined
263 \ifx\pdfdecimaldigits\@undefined
264 \newcommand*\xP@digits{2}
266 -\@ifdefinable\xP@digits\relax
267 \xdef\xP@digits{\the\pdfdecimaldigits}
268 -\ifnum\pdfdecimaldigits<2
269 -\xP@warning{xypdf}{The precision in \string\pdfdecimaldigits\space is only \xP@digits\space
270 -decimals.^^JIt is recommended to set \string\pdfdecimaldigits\space to 2 or 3 for best output quality\@gobble}
272 +\xP@warning{xypdf}{The precision in \string\pdfdecimaldigits\space is only \xP@digits\space decimals.^^JIt is recommended to set \string\pdfdecimaldigits\space to 2 or 3 for best output quality\@gobble}
276 +\xdef\xP@digits{\the\pdfvariable decimaldigits}
278 +\xP@warning{xypdf}{The precision in "\string\pdfvariable\space decimaldigits" is only \xP@digits^^Jdecimals. It is recommended to set "decimaldigits" to 2 or 3 for best output^^Jquality\@gobble}
281 \newcommand*\xP@dim[1]{\expandafter\xP@removePT\the\dimexpr(#1)*800/803\relax\space}
282 @@ -329,10 +350,15 @@
284 ]\xP@precdim{\dimexpr\xP@preclw+\@tempdima/2\relax}d}}
285 \newcommand*\xP@abs[1]{\ifdim#1<\z@\multiply#1\m@ne\fi}
286 -\newcommand*\xP@ifabsless[2]{\ifpdfabsdim#1<#2}
287 \ifx\ifpdfabsdim\@undefined
288 -\renewcommand*\xP@ifabsless[2]{\ifdim\ifdim#1<\z@-\fi#1<\ifdim#2<\z@-\fi#2}
289 +\newcommand*\xP@ifabsless[2]{\ifdim\ifdim#1<\z@-\fi#1<\ifdim#2<\z@-\fi#2}
292 +\newcommand*\xP@ifabsless[2]{\ifpdfabsdim#1<#2}
294 +\ifx\ifabsdim\@undefined
296 +\renewcommand*\xP@ifabsless[2]{\ifabsdim#1<#2}
298 \newcommand*\xP@swapdim[2]{\@tempdima#1#1#2#2\@tempdima}
299 \newcommand*\xP@swapnum[2]{\@tempcnta#1#1#2#2\@tempcnta}