From a1a946ff7eceabb8096d4bec23510234a240af84 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 11 Jun 2020 21:09:12 +0000 Subject: pstricks (11jun20) git-svn-id: svn://tug.org/texlive/trunk@55515 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/generic/pstricks/pst-news20.pdf | Bin 39952 -> 56052 bytes .../texmf-dist/doc/generic/pstricks/pst-news20.tex | 107 +++++++++++++++------ 2 files changed, 77 insertions(+), 30 deletions(-) (limited to 'Master/texmf-dist/doc/generic') diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news20.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-news20.pdf index fb73a7c29c4..c3bdd08629c 100644 Binary files a/Master/texmf-dist/doc/generic/pstricks/pst-news20.pdf and b/Master/texmf-dist/doc/generic/pstricks/pst-news20.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news20.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news20.tex index b304d4b798b..cf75126c9d9 100644 --- a/Master/texmf-dist/doc/generic/pstricks/pst-news20.tex +++ b/Master/texmf-dist/doc/generic/pstricks/pst-news20.tex @@ -1,55 +1,93 @@ -%% $Id: pst-news20.tex 4 2020-06-09 08:32:19Z herbert $ -\PassOptionsToPackage{useCalc}{pstricks} +%% $Id: pst-news20.tex 6 2020-06-10 18:50:14Z herbert $ \documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small, - headinclude=false,footinclude=false,twoside]{pst-doc} + headinclude=false,footinclude=false,twoside]{scrartcl} + \listfiles -\let\Lfile\LFile -\usepackage{pstricks} -\let\pstnodeFV\fileversion -\let\pstnodeFD\filedate -\usepackage{pst-node} -\usepackage{pst-plot} -\usepackage{pst-solides3d} -\usepackage{pst-node} -\usepackage{pst-calculate} +\usepackage[T1]{fontenc} +\usepackage{listings} +\lstset{basicstyle=\ttfamily\small} +\usepackage{libertinus} +\usepackage[scaled=0.88]{beramono} +\usepackage{babel} +\usepackage[svgnames,dvipsnames,x11names]{pstricks-pdf} \usepackage{pstricks-add} -\usepackage{xkvview} -\renewcommand\bgImage{\psscalebox{15}{\color{blue!20}\the\year}} -\def\textat{\char064} -\usepackage{dtk-logos} + \usepackage{biblatex} \addbibresource{PSTricks.bib} - -\lstset{explpreset={width=-99pt,overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe={}}, - escapechar=?} +\def\Lcs#1{\texttt{\textbackslash#1}} \begin{document} -%\psset{PstDebug=1} -\title{\texttt{News -- \the\year}\\ \Large new macros and bugfixes for the -basic package \nxLFile{pstricks}} +\title{\texttt{News -- \the\year}\\ \Large new macros and bugfixes for the basic package.} \author{Herbert Voß} \date{\today} \maketitle -\clearpage \tableofcontents -\clearpage \part{\texttt{pstricks} -- package} %-------------------------------------------------------------------------------------- \section{\texttt{pstricks.sty} -- \texttt{pstricks-pdf.sty}} %-------------------------------------------------------------------------------------- +With the package \texttt{pstricks-pdf} you can now use + +\begin{verbatim} +pdflatex --shell-escape +\end{verbatim} + +This document was created this way. Remember that you have to use the environment \texttt{postscript} +if you do not use the environment \texttt{pspicture} or a lot of PS-code outside this environment: + +\begin{lstlisting} +\begin{postscript} +\pstVerb{/LL 1 def /RR 140 def /CCmy 6 def /RsqC RR dup mul 1000 div CCmy mul 1000 div def +/omegam LL RR div 1000 mul RR div CCmy div 1000 mul 1 sub sqrt RR mul 3 sqrt div LL div def +/phiomegafunc {/omega exch def LL RsqC sub omega CCmy mul 1000 div omega mul 1000 div + LL mul LL mul sub omega mul dup 0 ge {RR atan}{RR atan 360 sub} ifelse} def +/phimax omegam phiomegafunc def} +\begin{center} +\begin{psgraph}[axesstyle=frame,yAxisLabel=$\varphi$,xAxisLabel=$\omega$/Hz, + yticksize=0 16cm,xticksize=-90 + 90,subticksize=1,Dy=20,Dx=100,xsubticks=2](0,0)(0,-90)(800,90){16cm}{8cm} +\psplot[linecolor=Blue1,plotpoints=200,linewidth=2pt]{0}{800}{x phiomegafunc} +\uput{0pt}[0](10,75){$R=$\psPrintValue{RR}\hspace{2em}$\Omega$} +\uput{0pt}[0](10,65){$C=$\psPrintValue{CCmy}\hspace{0.75em}$\mu$F} +\uput{0pt}[0](10,55){$L=\psPrintValue{LL}\hspace{0.75em}\text{H}$} +\pscircle*[linecolor=Red1](!omegam phimax){2pt} +\end{psgraph} +\end{center} +\end{postscript} +\end{lstlisting} + +\resizebox{\linewidth}{!}{% +\begin{postscript} +\pstVerb{/LL 1 def /RR 140 def /CCmy 6 def /RsqC RR dup mul 1000 div CCmy mul 1000 div def /omegam +LL RR div 1000 mul RR div CCmy div 1000 mul 1 sub sqrt RR mul 3 sqrt div LL div def /phiomegafunc +{/omega exch def LL RsqC sub omega CCmy mul 1000 div omega mul 1000 div LL mul LL mul sub omega mul +dup 0 ge {RR atan}{RR atan 360 sub} ifelse} def /phimax omegam phiomegafunc def} +\begin{psgraph}[axesstyle=frame,yAxisLabel=$\varphi$,xAxisLabel=$\omega$/Hz, + yticksize=0 16cm,xticksize=-90 + 90,subticksize=1,Dy=20,Dx=100,xsubticks=2](0,0)(0,-90)(800,90){16cm}{8cm} +\psplot[linecolor=Blue1,plotpoints=200,linewidth=2pt]{0}{800}{x phiomegafunc} +\uput*{0pt}[0](10,75){$R=$\psPrintValue{RR}\hspace{2em}$\Omega$} +\uput*{0pt}[0](10,65){$C=$\psPrintValue{CCmy}\hspace{0.75em}$\mu$F} +\uput*{0pt}[0](10,55){$L=\psPrintValue{LL}\hspace{0.75em}\text{H}$} +\psdot[linecolor=Red1](!omegam phimax) +\end{psgraph} +\end{postscript}% +} + +(Example by Poul Riis) %-------------------------------------------------------------------------------------- \section{\texttt{pstricks.tex} (v. 2.99 -- 2020/06/09)} %-------------------------------------------------------------------------------------- -New optional arguments \Lkeyword{griddx} and \Lkeyword{griddy}, which are only valid +New optional arguments \texttt{griddx} and \texttt{griddy}, which are only valid for \Lcs{psgrid}: -\begin{LTXexample}[pos=t,vsep=10mm] +\begin{lstlisting}[basicstyle=\small\ttfamily] \psset{unit=5mm} \newpsstyle{gridstyle}{gridlabels=8pt, gridfont=Helvetica, gridcolor=red, subgridcolor=gray, subgriddiv=5, gridwidth=.8pt, subgridwidth=.4pt, @@ -57,9 +95,19 @@ for \Lcs{psgrid}: griddx=5, griddy=2 } \begin{pspicture}[showgrid](25,25) \end{pspicture} -\end{LTXexample} +\end{lstlisting} -\newpage + +\bigskip +\begin{postscript} +\psset{unit=5mm} +\newpsstyle{gridstyle}{gridlabels=8pt, gridfont=Helvetica, gridcolor=red, + subgridcolor=gray, subgriddiv=5, gridwidth=.8pt, subgridwidth=.4pt, + griddots=10, subgriddots=5, + griddx=5, griddy=2 } +\begin{pspicture}[showgrid](25,25) +\end{pspicture} +\end{postscript} %-------------------------------------------------------------------------------------- \section{\texttt{pstricks.pro}} @@ -67,11 +115,10 @@ for \Lcs{psgrid}: The function \texttt{Grid} supports GridDX and GridDY. + \nocite{*} \printbibliography -\printindex - \end{document} -- cgit v1.2.3