texlive[69627] Master/texmf-dist: pst-solarsystem (29jan24)

commits+karl at tug.org commits+karl at tug.org
Mon Jan 29 22:18:10 CET 2024


Revision: 69627
          https://tug.org/svn/texlive?view=revision&revision=69627
Author:   karl
Date:     2024-01-29 22:18:10 +0100 (Mon, 29 Jan 2024)
Log Message:
-----------
pst-solarsystem (29jan24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/pst-solarsystem/Changes
    trunk/Master/texmf-dist/doc/generic/pst-solarsystem/README
    trunk/Master/texmf-dist/doc/generic/pst-solarsystem/pst-solarsystem-doc.pdf
    trunk/Master/texmf-dist/doc/generic/pst-solarsystem/pst-solarsystem-doc.tex
    trunk/Master/texmf-dist/dvips/pst-solarsystem/pst-solarsystem.pro
    trunk/Master/texmf-dist/tex/generic/pst-solarsystem/pst-solarsystem.tex
    trunk/Master/texmf-dist/tex/latex/pst-solarsystem/pst-solarsystem.sty

Modified: trunk/Master/texmf-dist/doc/generic/pst-solarsystem/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-solarsystem/Changes	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/doc/generic/pst-solarsystem/Changes	2024-01-29 21:18:10 UTC (rev 69627)
@@ -1,14 +1,15 @@
 ..... pst-solarsystem.tex
+0.14  2024-01-29  - support for languages EN/DE/FR
 0.13  2017-08-22  - values->solarValues
 0.12a 2017-08-14  - updated documentation
 0.12  2012-01-01  - first version
 
 ..... pst-solarsystem.pro
-0.10  2012-01-01  - first version
+0.12  2012-01-01  - first version
 
 ..... pst-solarsystem.sty
-0.10  2012-01-01  - first version
+0.12  2012-01-01  - first version
 
 ..... pst-solarsystem-doc.tex
-      2012-01-01  - first version
+      2042-01-29  - first version
 

Modified: trunk/Master/texmf-dist/doc/generic/pst-solarsystem/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-solarsystem/README	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/doc/generic/pst-solarsystem/README	2024-01-29 21:18:10 UTC (rev 69627)
@@ -1,12 +1,11 @@
 pst-solarsystem: drawing solar objects 
 
 Save the files pst-solarsystem.sty|tex|pro in a directory, which is part of your 
-local TeX tree. The pro file should go into $TEXMF/dvips/pstricks/
-Then do not forget to run texhash to update this tree.
-For more information  see the documentation of your LATEX distribution 
-on installing packages into your local TeX system or read the 
-TeX Frequently Asked Questions:
-(http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages).
+local TeX tree or use your package manager to install pst-solarsystem.
 
+
 PSTricks is PostScript Tricks, the documentation cannot be run
-with pdftex, use the sequence latex->dvips->ps2pdf or xelatex.
+with pdftex, use the sequence latex->dvips->ps2pdf or xelatex or (best) 
+lualatex (creates directly a PDF).
+
+hvoss at tug.org.

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

Modified: trunk/Master/texmf-dist/doc/generic/pst-solarsystem/pst-solarsystem-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-solarsystem/pst-solarsystem-doc.tex	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/doc/generic/pst-solarsystem/pst-solarsystem-doc.tex	2024-01-29 21:18:10 UTC (rev 69627)
@@ -1,10 +1,11 @@
-%% $Id: pst-solarsystem-doc.tex 620 2012-01-01 14:09:57Z herbert $
+%% $Id: pst-solarsystem-doc.tex 852 2024-01-29 18:34:46Z herbert $
+\DocumentMetadata{}
 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
    smallheadings, headexclude,footexclude,oneside]{pst-doc}
 \usepackage{pst-solarsystem}
 \let\pstFV\fileversion
 \usepackage{pstricks-add}
-\renewcommand\bgImage{\resizebox{0.6\linewidth}{!}{\SolarSystem[Day=1,Month=1,Year=2012,Hour=12,viewpoint=1 -1 2]}}
+\renewcommand\bgImage{\resizebox{0.5\linewidth}{!}{\SolarSystem[Day=29,Month=1,Year=2024,Hour=24,viewpoint=1 -1 2,solarValues=false]}}
 
 \lstset{language=PSTricks,
     morekeywords={psGammaDist,psChiIIDist,psTDist,psFDist,psBetaDist,psPlotImpl},basicstyle=\footnotesize\ttfamily}
@@ -19,11 +20,13 @@
 \author{Manuel Luque \\Herbert Vo\ss}
 \docauthor{}
 \date{\today}
-\maketitle
+\settitle
 
+
 \tableofcontents
 
-\vspace{2cm}
+
+\section{introduction}
 For the method of calculation, I was guided by:
 \begin{itemize}
 \item that given by \textit{Jean Meeus} astronomical calculations in the book for use by
@@ -75,6 +78,28 @@
 
 
 \clearpage
+
+Possible languages are DE, FR and the default EN. 
+With the setting \verb|language=DE|:
+
+
+\begin{center}
+\SolarSystem[language=DE]
+
+\SolarSystem[Day=30,Month=06,Year=2001,Hour=23,Minute=59,Second=59,
+  viewpoint=1 -1 2,solarValues=false,language=DE]
+\end{center}
+
+
+\begin{verbatim}
+\SolarSystem[language=DE]
+\SolarSystem[Day=30,Month=06,Year=2001,Hour=23,Minute=59,Second=59,
+             viewpoint=1 -1 2,solarValues=false,language=DE]
+\end{verbatim}
+
+\clearpage
+
+
 \section{List of all optional arguments for \texttt{pst-solarsystem}}
 
 \xkvview{family=pst-solarsystem,columns={key,type,default}}

Modified: trunk/Master/texmf-dist/dvips/pst-solarsystem/pst-solarsystem.pro
===================================================================
--- trunk/Master/texmf-dist/dvips/pst-solarsystem/pst-solarsystem.pro	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/dvips/pst-solarsystem/pst-solarsystem.pro	2024-01-29 21:18:10 UTC (rev 69627)
@@ -111,7 +111,7 @@
  LO 360 gt {/LO LO 360 sub def} if
 } def
 %%%%% pour l'affichage des valeurs ----------------
-/Times-Roman findfont
+/NimbusRomNo9L-Regu findfont
  100 scalefont
  setfont
  /MG 72 def

Modified: trunk/Master/texmf-dist/tex/generic/pst-solarsystem/pst-solarsystem.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-solarsystem/pst-solarsystem.tex	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/tex/generic/pst-solarsystem/pst-solarsystem.tex	2024-01-29 21:18:10 UTC (rev 69627)
@@ -1,4 +1,4 @@
-%% $Id: pst-solarsystem.tex 620 2012-01-01 14:09:57Z herbert $
+%% $Id: pst-solarsystem.tex 851 2024-01-29 18:19:57Z herbert $
 %%
 %% This is file `pst-solarsystem.tex',
 %%
@@ -6,8 +6,8 @@
 %%
 %% Package `pst-solarsystem.tex'
 %%
-%% Manuel Luque <manuel -> perce.de>
-%% Herbert Voss <herbert -> dante.de>
+%% Manuel Luque <manuel.luque27 at gmail.com>
+%% Herbert Voss <hvoss at tug.org>
 %%
 %% This program can be redistributed and/or modified under the terms
 %% of the LaTeX Project Public License Distributed from CTAN archives
@@ -27,8 +27,8 @@
 \ifx\GradientLoaded\endinput\else \input pst-grad \fi
 \ifx\PSTtoolsLoaded\endinput\else \input pst-tools\fi
 \ifx\PSTXKeyLoaded\endinput\else  \input pst-xkey \fi
-\def\fileversion{0.13}
-\def\filedate{2017/08/22}
+\def\fileversion{0.14}
+\def\filedate{2024/01/29}
 \message{`PSTSOLARSYSTEME' v\fileversion, \filedate}
 %
 \pstheader{pst-solarsystem.pro}
@@ -36,6 +36,47 @@
 \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
 %
 \pst at addfams{pst-solarsystem}
+
+\def\SolarSystemLangEN{%
+    \def\ps@@Mercury{Mercury}%
+    \def\ps@@Venus{Venus}%
+    \def\ps@@Earth{Earth}%
+    \def\ps@@Mars{Mars}%
+    \def\ps@@Jupiter{Jupiter}%
+    \def\ps@@Saturn{Saturn}%
+    \def\ps@@Longitude{longitude  at $^\mathrm{o}$}%
+    \def\ps@@Latitude{latitude at $^\mathrm{o}$}%
+    \def\ps@@Distance{distance at U.A.}%
+}
+
+\def\SolarSystemLangDE{%
+    \def\ps@@Mercury{Merkur}%
+    \def\ps@@Venus{Venus}%
+    \def\ps@@Earth{Erde}%
+    \def\ps@@Mars{Mars}%
+    \def\ps@@Jupiter{Jupiter}%
+    \def\ps@@Saturn{Saturn}%
+    \def\ps@@Longitude{Längengrad $^\mathrm{o}$ }%
+    \def\ps@@Latitude{Breitengrad $^\mathrm{o}$ }%
+    \def\ps@@Distance{Entfernung bei U.A. }%
+}
+
+\def\SolarSystemLangFR{%
+    \def\ps@@Mercury{Mercure}%
+    \def\ps@@Venus{V{\´e}nus}%
+    \def\ps@@Earth{Terre}%
+    \def\ps@@Mars{Mars}%
+    \def\ps@@Jupiter{Jupiter}%
+    \def\ps@@Saturn{Saturn}%
+    \def\ps@@Longitude{longitude a $^\mathrm{o}$}%
+    \def\ps@@Latitude{latitude  a $^\mathrm{o}$}%
+    \def\ps@@Distance{distance a U.A. }%
+}
+\let\SolarSystemLangen\SolarSystemLangEN
+\let\SolarSystemLangde\SolarSystemLangDE
+\let\SolarSystemLangfr\SolarSystemLangFR
+
+
 \define at key[psset]{pst-solarsystem}{Day}[\number\day]{\def\psk at SolarSystemD{#1}}
 \define at key[psset]{pst-solarsystem}{Month}[\number\month]{\def\psk at SolarSystemM{#1}}
 \define at key[psset]{pst-solarsystem}{Year}[\number\year]{\def\psk at SolarSystemY{#1}}
@@ -42,8 +83,10 @@
 \define at key[psset]{pst-solarsystem}{Hour}[12]{\def\psk at SolarSystemH{#1}}
 \define at key[psset]{pst-solarsystem}{Minute}[0]{\def\psk at SolarSystemMi{#1}}
 \define at key[psset]{pst-solarsystem}{Second}[0]{\def\psk at SolarSystemS{#1}}
+\define at key[psset]{pst-solarsystem}{language}[EN]{\@nameuse{SolarSystemLang#1}}
 %
-\psset{Day=\number\day,Month=\number\month,Year=\number\year,Hour=12,Minute=0,Second=0}
+\psset{Day=\number\day,Month=\number\month,Year=\number\year,Hour=12,Minute=0,Second=0,
+	language=EN}
 %% === show the results ---------------------
 %\newif\ifPst at solar@values
 %\define at key[psset]{pst-solarsystem}{solarValues}{\@nameuse{Pst at solar@values#1}\ifPst at solar@values true \else false \fi}
@@ -51,9 +94,7 @@
 \psset[pst-solarsystem]{solarValues=true}
 
 
-
-
-\newpsstyle{planetes}{linestyle=none,fillstyle=gradient,gradmidpoint=0,gradend=white,GradientCircle}
+\newpsstyle{planets}{linestyle=none,fillstyle=gradient,gradmidpoint=0,gradend=white,GradientCircle}
 \newcommand\Jupiter{%
   \psclip{\pscircle[fillstyle=solid,fillcolor=yellow]{1.5}}
   \psset{fillstyle=solid,fillcolor={[cmyk]{0 0.2 0.4 0}},linestyle=none}
@@ -66,7 +107,7 @@
   \psellipse[fillstyle=solid,fillcolor={[cmyk]{0 0.4 0.6 0}},linestyle=none](-0.3,-0.6)(0.35,0.2)
   \pscircle{1.5}}
 %
-\newcommand\Saturne{%
+\newcommand\Saturn{%
   \psellipse(3,0.7)
   \psellipse[linewidth=2\pslinewidth](3.5,1)
   \psellipse(4,1.2)
@@ -132,8 +173,8 @@
       \pnode(! radius LO cos mul radius LO sin mul){M}
     }%
   \rput(M){\psset{unit=2}%
-    \pscircle[style=planetes,gradbegin=black,GradientPos={(0.01,0.01)}]{0.02}
-    \uput[u](0,0){\footnotesize\textsf{Mercure}}}
+    \pscircle[style=planets,gradbegin=black,GradientPos={(0.01,0.01)}]{0.02}
+    \uput[u](0,0){\footnotesize\textsf{\ps@@Mercury}}}
   \ifPst at solarValues
     \rput(-2.5,-4.25){\psPrintValue{LO}}%
     \rput(-2.5,-4.75){\psPrintValue{LA}}%
@@ -153,8 +194,8 @@
     \pnode(! radius LO cos mul radius LO sin mul){V}
   }%
   \rput(V){\psset{unit=2}%
-    \pscircle[style=planetes,gradbegin={[HTML]{6F2D0A}},GradientPos={(0.03,0.03)}]{0.051}%
-    \uput{0.07}[u](0,0){\footnotesize\textsf{V\'enus}}}
+    \pscircle[style=planets,gradbegin={[HTML]{6F2D0A}},GradientPos={(0.03,0.03)}]{0.051}%
+    \uput{0.07}[u](0,0){\footnotesize\textsf{\ps@@Venus}}}
   \ifPst at solarValues
     \rput(-1.5,-4.25){\psPrintValue{LO}}%
     \rput(-1.5,-4.75){\psPrintValue{LA}}%
@@ -172,8 +213,8 @@
       1 E x LP sub cos mul add div}
     \pnode(! radius LO cos mul radius LO sin mul){Terre}}
   \rput(Terre){\psset{unit=2}%
-  \pscircle[style=planetes,gradbegin=blue,GradientPos={(0.013,0.03)}]{0.0536}%
-  \uput{0.08}[u](0,0){\footnotesize\textsf{Terre}}}%
+  \pscircle[style=planets,gradbegin=blue,GradientPos={(0.013,0.03)}]{0.0536}%
+  \uput{0.08}[u](0,0){\footnotesize\textsf{\ps@@Earth}}}%
   \ifPst at solarValues
     \rput(-0.5,-4.25){\psPrintValue{LO}}%
     \rput(-0.5,-4.75){\psPrintValue{0.000}}%
@@ -195,8 +236,8 @@
 \pnode(! radius LO cos mul radius LO sin mul){Mars}%
   }
   \rput(Mars){%
-    \psset{unit=2}\pscircle[style=planetes,gradbegin=red,GradientPos={(0.01,0.01)}]{0.02857}
-    \uput[u](0,0){\footnotesize\textsf{Mars}}}%
+    \psset{unit=2}\pscircle[style=planets,gradbegin=red,GradientPos={(0.01,0.01)}]{0.02857}
+    \uput[u](0,0){\footnotesize\textsf{\ps@@Mars}}}%
   \ifPst at solarValues
     \rput(0.5,-4.25){\psPrintValue{LO}}%
     \rput(0.5,-4.75){\psPrintValue{LA}}%
@@ -220,13 +261,13 @@
 \pnode(! radius LO cos mul radius LO sin mul){Jupiter}
   }%
   \rput(Jupiter){\psset{unit=0.1}\Jupiter%
-    \uput{1.5}[u](0,0){\footnotesize\textsf{Jupiter}}}%
+    \uput{1.5}[u](0,0){\footnotesize\textsf{\ps@@Jupiter}}}%
   \ifPst at solarValues
     \rput(1.5,-4.25){\psPrintValue{LO}}%
     \rput(1.5,-4.75){\psPrintValue{LA}}%
     \rput(1.5,-5.25){\psPrintValue{radius}}%
   \fi
-% JSaturne
+% JSaturn
   \pstVerb{%
 satLM satKA satHA satQ satP orbitalparameters
  /aS asat def
@@ -241,10 +282,10 @@
  \psplot[polarplot=true,plotpoints=361,linestyle=dashed,linecolor=blue]{180 LN add}{LN 360 add}{%
  aS 1 E dup mul sub mul
  1 E x LP sub cos mul add div}%
-\pnode(! radius LO cos mul radius LO sin mul){Saturne}
+\pnode(! radius LO cos mul radius LO sin mul){Saturn}%
   }%
-  \rput(Saturne){\psset{unit=0.1}\Saturne%
-    \uput{1.7}[u](0,0){\footnotesize\textsf{Saturne}}}%
+  \rput(Saturn){\psset{unit=0.1}\Saturn%
+    \uput{1.7}[u](0,0){\footnotesize\textsf{\ps@@Saturn}}}%
   \ifPst at solarValues
     \rput(2.5,-4.25){\psPrintValue{LO}}%
     \rput(2.5,-4.75){\psPrintValue{LA}}%
@@ -253,15 +294,15 @@
   }
   \use at par
   \ifPst at solarValues
-    \rput(-4.5,-7.75){Mercure}%
-    \rput(-2.5,-7.75){Venus}%
-    \rput(-0.5,-7.75){Earth}%
-    \rput(1.5,-7.75){Mars}%
-    \rput(3.5,-7.75){Jupiter}%
-    \rput(5.5,-7.75){Saturn}%
-    \rput(-6.5,-8.42){longitude at $^\mathrm{o}$}%
-    \rput(-6.5,-9.42){latitude at $^\mathrm{o}$}%
-    \rput(-6.5,-10.42){distance at U.A.}%
+    \rput(-4.5,-7.75){\ps@@Mercury}%
+    \rput(-2.5,-7.75){\ps@@Venus}%
+    \rput(-0.5,-7.75){\ps@@Earth}%
+    \rput(1.5,-7.75){\ps@@Mars}%
+    \rput(3.5,-7.75){\ps@@Jupiter}%
+    \rput(5.5,-7.75){\ps@@Saturn}%
+    \rput[r](-5.5,-8.42){\ps@@Longitude}%
+    \rput[r](-5.5,-9.42){\ps@@Latitude}%
+    \rput[r](-5.5,-10.42){\ps@@Distance}%
    \fi
 \end{pspicture}}}
 %

Modified: trunk/Master/texmf-dist/tex/latex/pst-solarsystem/pst-solarsystem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pst-solarsystem/pst-solarsystem.sty	2024-01-29 00:44:03 UTC (rev 69626)
+++ trunk/Master/texmf-dist/tex/latex/pst-solarsystem/pst-solarsystem.sty	2024-01-29 21:18:10 UTC (rev 69627)
@@ -1,6 +1,6 @@
-%% $Id: pst-solarsystem.sty 620 2012-01-01 14:09:57Z herbert $
+%% $Id: pst-solarsystem.sty 852 2024-01-29 18:34:46Z herbert $
 \RequirePackage{pstricks}
-\ProvidesPackage{pst-solarsystem}[2012/01/01 package wrapper for
+\ProvidesPackage{pst-solarsystem}[2024/01/29 package wrapper for
   pst-solarsystem.tex]
 \input{pst-solarsystem.tex}
 \IfFileExists{pst-solarsystem.pro}{%



More information about the tex-live-commits mailing list.