diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-05 23:11:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-05 23:11:08 +0000 |
commit | 81e3895f623a90cd9effa1316ff86721fac1c685 (patch) | |
tree | d3c47201908aa161db7c5994fbebd511146a09f9 /Master/texmf-dist/tex/latex/curve2e | |
parent | 151d643febdfc2f4147d920463fec10668b03be9 (diff) |
curve2e (6jan20)
git-svn-id: svn://tug.org/texlive/trunk@53331 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/curve2e')
-rw-r--r-- | Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/curve2e/curve2e.sty | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty b/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty index edbfd8c5015..b2aae70aace 100644 --- a/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty +++ b/Master/texmf-dist/tex/latex/curve2e/curve2e-v161.sty @@ -6,7 +6,7 @@ %% %% curve2e.dtx (with options: `v161') %% -%% Copyright (C) 2005--2019 Claudio Beccari all rights reserved. +%% Copyright (C) 2005--2020 Claudio Beccari all rights reserved. %% License information appended %% diff --git a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty index e2230216d3e..878e6610710 100644 --- a/Master/texmf-dist/tex/latex/curve2e/curve2e.sty +++ b/Master/texmf-dist/tex/latex/curve2e/curve2e.sty @@ -6,12 +6,12 @@ %% %% curve2e.dtx (with options: `package') %% -%% Copyright (C) 2005--2019 Claudio Beccari all rights reserved. +%% Copyright (C) 2005--2020 Claudio Beccari all rights reserved. %% License information appended %% \NeedsTeXFormat{LaTeX2e}[2019/01/01] \ProvidesPackage{curve2e}% - [2019-12-06 v.2.0.7 Extension package for pict2e] + [2020-01-05 v.2.0.8 Extension package for pict2e] @@ -295,13 +295,17 @@ \endgroup \ignorespaces}} -\def\GraphGrid(#1,#2){\bgroup\textcolor{red}{\linethickness{.1\p@}% +\def\Gr@phGrid(#1,#2){\bgroup\textcolor{red}{\linethickness{.1\p@}% \RoundUp#1modulo10to\@GridWd \RoundUp#2modulo10to\@GridHt \@tempcnta=\@GridWd \divide\@tempcnta10\relax \advance\@tempcnta\@ne \multiput(0,0)(10,0){\@tempcnta}{\line(0,1){\@GridHt}}% \@tempcnta=\@GridHt \divide\@tempcnta10\advance\@tempcnta\@ne \multiput(0,0)(0,10){\@tempcnta}{\line(1,0){\@GridWd}}\thinlines}% \egroup\ignorespaces} +\NewDocumentCommand\GraphGrid{r() d()}{% +\IfValueTF{#2}{\put(#1){\Gr@phGrid(#2)}}% + {\put(0,0){\Gr@phGrid(#1)}}} + \def\RoundUp#1modulo#2to#3{\expandafter\@tempcnta\Integer#1.??% \count254\@tempcnta\divide\count254by#2\relax \multiply\count254by#2\relax |