summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-20 03:01:12 +0000
committerNorbert Preining <norbert@preining.info>2024-01-20 03:01:12 +0000
commit2fd07558ccd8d3c8e354f8ea0b342ef7ac1e87a3 (patch)
treedfa08a4c648cc5f7b4c8e5a55fcae40546d96d7d /graphics
parent849336321485cc972b028c23f8276fa6bdf4818e (diff)
CTAN sync 202401200301
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/Changes1
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/README.md4
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.pdfbin29829881 -> 30026199 bytes
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex21
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/latex/pst-magneticfield.sty1
-rw-r--r--graphics/pstricks/contrib/pst-magneticfield/tex/pst-magneticfield.tex5
6 files changed, 21 insertions, 11 deletions
diff --git a/graphics/pstricks/contrib/pst-magneticfield/Changes b/graphics/pstricks/contrib/pst-magneticfield/Changes
index 6ac1a4c960..a3172be407 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/Changes
+++ b/graphics/pstricks/contrib/pst-magneticfield/Changes
@@ -3,6 +3,7 @@ pst-magneticfield.sty --------
pst-magneticfield.tex --------
+1.17a 2024-01-19 - typos
1.17 2022-07-06 - fix for missing colors for bar magnet
1.16 2019-01-21 - fix for linewidtht
1.15 2019-01-17 - added bar magnet
diff --git a/graphics/pstricks/contrib/pst-magneticfield/README.md b/graphics/pstricks/contrib/pst-magneticfield/README.md
index ed39bea7c8..bbaaed4a75 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/README.md
+++ b/graphics/pstricks/contrib/pst-magneticfield/README.md
@@ -5,7 +5,7 @@ local TeX tree. The pro file should go into $TEXMF/dvips/pstricks/
Then do not forget to run texhash to update this tree.
pst-magneticfield needs pstricks, which should
-be part of your local TeX installation, otherwise get it from a
+be part of your local TeX distribution, otherwise get it from a
CTAN server, http://mirror.ctan.org
PSTricks is PostScript Tricks, the documentation cannot be run
@@ -17,5 +17,5 @@ pdflatex with package auto-pst-pdf or xelatex or lualatex.
%% in directory macros/latex/base/lppl.txt.
-%% $Id: README.md 582 2022-07-06 07:49:15Z herbert $
+%% $Id: README.md 841 2024-01-19 06:56:44Z herbert $
diff --git a/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.pdf b/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.pdf
index 1c51ffa234..a793cde796 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.pdf
+++ b/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.pdf
Binary files differ
diff --git a/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex b/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex
index da06c2bcda..067f2a08d5 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex
+++ b/graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex
@@ -1,14 +1,18 @@
+%% $Id: pst-magneticfield-doc.tex 840 2024-01-19 06:55:55Z herbert $
+
%\RequirePackage{pdfmanagement-testphase}
%\DeclareDocumentMetadata{}
\documentclass[11pt,english,bibliography=totoc,parskip=false,headings=small,usegeometry,]{pst-doc}
-\usepackage{pst-magneticfield}
+\usepackage{pst-magneticfield,hvqrurl}
\let\pstMFfv\fileversion
\usepackage{graphicx}
\lstset{pos=t,language=PSTricks,
morekeywords={psmagneticfield,psmagneticfieldThreeD},basicstyle=\footnotesize\ttfamily}
-\newenvironment{postscript}{}{} % uncomment, when running with latex
+
+\usepackage{auto-pst-pdf}
+%\newenvironment{postscript}{}{} % uncomment, when running with latex
\newcommand\Cadre[1]{\psframebox[fillstyle=solid,fillcolor=black,linestyle=none,framesep=0]{#1}}
\def\bgImage{}
@@ -42,7 +46,7 @@ seemed to be the best compromise between speed and accuracy of calculations for
The calculation of elliptic integrals for the evaluation of the magnetic field
was achieved by polynomial approximations from the "Handbook of Mathematical
Functions With Formulas, Graph, And Mathematical Tables" by Milton Abramowitz and
-Irene.\,A. Stegun (\url{http://www.math.sfu.ca/~cbm/aands/}).~\cite{abramowitz}
+Irene\,A.~Stegun (\hvqrurl{http://www.math.sfu.ca/~cbm/aands/}).~\cite{abramowitz}
\end{abstract}
\clearpage
@@ -568,7 +572,9 @@ with setting the keyword \Lkeyword{setgray}.
\section{Bar magnet}
-The magnetic field of a bat magnet can be simulated. There is one macro for the bar magnet, which will be
+The magnetic field of a bar magnet can be simulated. It is \emph{not} the correct
+magnetic field!
+There is one macro for the bar magnet, which will be
put over one of the above created mnagnetic fields.
\begin{BDef}
@@ -590,13 +596,14 @@ Bar magnet and field can be put of the other by single commands:
\begin{LTXexample}
-\begin{pspicture*}[showgrid=false](-7,-8)(7,8)
+\begin{pspicture*}[showgrid=false](-7,-8)(7,8)%% Example by Keno Wehr
\psset{linecolor=blue}
-\psscalebox{0.8 1.2}{\psmagneticfield[R=1,L=5,N=5,pointsS=200,nL=18,nS=0,PasB=0.1,numSpires=0](-8,-10)(8,10)}
-\rput(0,0){\psscalebox{2.2 3.0}{\psBarMagnet}}
+\psmagneticfield[R=1.5,L=6,N=20,nL=20,nS=0](-6,-7)(6,7)
+\psBarMagnet[magnetScale=2.3 1.8](0.05,0)
\end{pspicture*}
\end{LTXexample}
+
\clearpage
or by using the optional argument \Lkeyword{showField}:
diff --git a/graphics/pstricks/contrib/pst-magneticfield/latex/pst-magneticfield.sty b/graphics/pstricks/contrib/pst-magneticfield/latex/pst-magneticfield.sty
index 3ae0e4bd76..f1e1ef2d77 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/latex/pst-magneticfield.sty
+++ b/graphics/pstricks/contrib/pst-magneticfield/latex/pst-magneticfield.sty
@@ -1,3 +1,4 @@
+%% $Id: pst-magneticfield.sty 840 2024-01-19 06:55:55Z herbert $
\RequirePackage{pstricks}
\RequirePackage{pst-3d}
\RequirePackage{multido}
diff --git a/graphics/pstricks/contrib/pst-magneticfield/tex/pst-magneticfield.tex b/graphics/pstricks/contrib/pst-magneticfield/tex/pst-magneticfield.tex
index 17d9d9a2e0..f4e3ceec1d 100644
--- a/graphics/pstricks/contrib/pst-magneticfield/tex/pst-magneticfield.tex
+++ b/graphics/pstricks/contrib/pst-magneticfield/tex/pst-magneticfield.tex
@@ -1,3 +1,4 @@
+%% $Id: pst-magneticfield.tex 840 2024-01-19 06:55:55Z herbert $
%% Package `pst-magneticfield.tex'
%%
%% Manuel Luque
@@ -22,8 +23,8 @@
\ifx\MultidoLoaded\endinput\else \input multido.tex\fi
\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey \fi
%
-\def\fileversion{1.17}
-\def\filedate{2022/07/06}
+\def\fileversion{1.17a}
+\def\filedate{2024/01/19}
\message{`pst-magneticfield' v\fileversion, \filedate\space (ml,jg,hv)}
%
\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax