diff options
Diffstat (limited to 'graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex')
-rw-r--r-- | graphics/pstricks/contrib/pst-magneticfield/doc/pst-magneticfield-doc.tex | 21 |
1 files changed, 14 insertions, 7 deletions
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}: |