texlive[45199] Master/texmf-dist: pst-plot (2sep17)

commits+karl at tug.org commits+karl at tug.org
Sat Sep 2 23:43:54 CEST 2017


Revision: 45199
          http://tug.org/svn/texlive?view=revision&revision=45199
Author:   karl
Date:     2017-09-02 23:43:54 +0200 (Sat, 02 Sep 2017)
Log Message:
-----------
pst-plot (2sep17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/pst-plot/Changes
    trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf
    trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex

Modified: trunk/Master/texmf-dist/doc/generic/pst-plot/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-plot/Changes	2017-09-02 21:43:18 UTC (rev 45198)
+++ trunk/Master/texmf-dist/doc/generic/pst-plot/Changes	2017-09-02 21:43:54 UTC (rev 45199)
@@ -1,4 +1,5 @@
 ----- pst-plot.tex
+1.84  2017-08-31  - fix for new introduced bug with \hbox
 1.83  2017-08-29  - fix for real axes length and x|yLabels
                   - added two more optional arguments for boxplots
 1.82  2017-07-13  - revert last change

Modified: trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex	2017-09-02 21:43:18 UTC (rev 45198)
+++ trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex	2017-09-02 21:43:54 UTC (rev 45199)
@@ -23,8 +23,8 @@
 \ifx\PSTFPloaded\endinput\else   \input pst-fp.tex  \fi
 \ifx\MultidoLoaded\endinput\else \input multido.tex \fi
 %
-\def\fileversion{1.83}
-\def\filedate{2017/08/29}
+\def\fileversion{1.84}
+\def\filedate{2017/08/31}
 \message{ v\fileversion, \filedate\space (tvz,hv)}
 %
 \edef\TheAtCode{\the\catcode`\@}
@@ -2409,11 +2409,20 @@
 %  \multido{\iB=#3+1,\rB=#3+\pst at tempA}{\pst at tempB}%
 %    {\uput{\psxlabelsep}[\pst at tempC]{\pst at xLabelsRot}(\rB,0)%\psxlabelsep)
 %    {\strut\pshlabel{\psPutXLabel{\iB}}}}%
-      \edef\pst at Xstart{\pst at int{#3}}%
-      \edef\pst at Xend{\pst at int{#4}}%
-      \multido{\nA=0+1,\rA=\pst at Xstart+\psk at Dx}{%
-         \numexpr\pst at Xend-\pst at Xstart+1}{\uput{\psxlabelsep}[\pst at tempC]{\pst at xLabelsRot}(\rA,0){%
-            \strut\expandafter\pshlabel\expandafter{\psPutXLabel{\nA}}}}%
+%      \edef\pst at Xstart{\pst at int{#3}}%
+%      \edef\pst at Xend{\pst at int{#4}}%
+%      \multido{\nA=0+1,\rA=\pst at Xstart+\psk at Dx}{%
+%         \numexpr\pst at Xend-\pst at Xstart+1}{\uput{\psxlabelsep}[\pst at tempC]{\pst at xLabelsRot}(\rA,0){%
+%            \strut\expandafter\pshlabel\expandafter{\psPutXLabel{\nA}}}}%
+      \pstFPsub\pst at pmtempa{#4}{#3}
+      \pstFPDiv\pst at pmtempb{\pst at pmtempa}{\psk at Dx}
+      \pstFPadd\pst at pmtempc{\pst at pmtempb}{-1}%
+      \pstFPadd\pst at pmtempd{\pst at pmtempb}{1}%
+      \ifdim\pst at pmtempb pt < \z@ \def\pst at pmtempe{\pst at int{\pst at pmtempc}}\else\def\pst at pmtempe{\pst at int{\pst at pmtempd}}\fi%
+	  \multido{\nA=0+1,\rA=0+\psk at Dx}{\pst at pmtempe}{%
+  	    \ifdim \nA pt < \z@ \def\nB{-\nA} \else \def\nB{\nA} \fi
+	    \uput{\psxlabelsep}[\pst at tempC]{\pst at xLabelsRot}(\rA,0){%
+              \strut\expandafter\pshlabel\expandafter{\psPutXLabel{\nB}}}}%
       \SpecialLabelsDonetrue
  \fi
 \fi
@@ -2428,8 +2437,7 @@
       \vskip-\pst at xticksizeB\vskip-\psxlabelsep\vskip-1ex % 3
     \fi
     \ifnum\pst at cnta<\z@ \pst at dimb=-\pst at dimb\fi
-%    \hbox to \z@{%
-    \hbox to \hsize{% to prevent overfull hbox  20170626
+    \hbox to \z@{%
       \ifshoworigin\hbox to \z@{\hss\pst@@@hlabel{\psk at Ox}\hss}\fi
       \mmultido{\nA=\psk at Ox+\psk at Dx}{\pst at cnta}{%
         \hskip\pst at dimb \hbox to \z@{\hss
@@ -2458,11 +2466,20 @@
         \fi
       \fi
     \else
-      \edef\pst at Ystart{\pst at int{#3}}%
-      \edef\pst at Yend{\pst at int{#4}}%
-      \multido{\nA=0+1,\rA=\pst at Ystart+\psk at Dy}{\numexpr\pst at Yend-\pst at Ystart+1}{%
-         \uput{\psylabelsep}[180]{\pst at yLabelsRot}(0,\rA){%
-           \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nA}}}}%
+%      \edef\pst at Ystart{\pst at int{#3}}%
+%      \edef\pst at Yend{\pst at int{#4}}%
+%      \multido{\nA=0+1,\rA=\pst at Ystart+\psk at Dy}{\numexpr\pst at Yend-\pst at Ystart+1}{%
+%         \uput{\psylabelsep}[180]{\pst at yLabelsRot}(0,\rA){%
+%           \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nA}}}}%
+	\pstFPsub\pst at pmtempa{#4}{#3}%
+	\pstFPDiv\pst at pmtempb{\pst at pmtempa}{\psk at Dy}%
+	\pstFPadd\pst at pmtempc{\pst at pmtempb}{-1}%
+	\pstFPadd\pst at pmtempd{\pst at pmtempb}{1}%
+	\ifdim\pst at pmtempb pt < \z@ \def\pst at pmtempe{\pst at int{\pst at pmtempc}}\else\def\pst at pmtempe{\pst at int{\pst at pmtempd}}\fi%
+	\multido{\nA=0+1,\rA=0+\psk at Dy}{\pst at pmtempe}{%
+	  \ifdim \nA pt < \z@ \def\nB{-\nA}\else \def\nB{\nA}\fi
+          \uput{\psylabelsep}[180]{\pst at yLabelsRot}(0,\rA){%
+            \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nB}}}}%
       \SpecialLabelsDonetrue
     \fi
   \fi



More information about the tex-live-commits mailing list