[pstricks] [EXTERNAL] Re: A little help, please.

Herbert Voss Herbert.Voss at fu-berlin.de
Wed Aug 4 16:38:07 CEST 2021



Am 04.08.21 um 15:26 schrieb Scott, Randy:
>
> ​Thanks for your suggestion Phillipe.
>
> I did as you suggested, but am still not getting the graphic.
>
> I have some more research to do...
>
>

show the logfile

Herbert


> ------------------------------------------------------------------------
> *From:* PSTricks <pstricks-bounces+scott_randy=sccollege.edu at tug.org> 
> on behalf of camus.philippe at free.fr <camus.philippe at free.fr>
> *Sent:* Tuesday, August 3, 2021 08:24
> *To:* Graphics with PSTricks
> *Subject:* [EXTERNAL] Re: [pstricks] A little help, please.
>
> **External Email**
>
> Hi,
> I recently had to add -dALLOWPSTRANSPARENCY manually to my postscript 
> commands (dvips, ps2pdf).
> Your code compiles fine with this on TexStudio.
>
> Philippe CAMUS
>
> ------------------------------------------------------------------------
> *De: *"Randy Scott" <Scott_Randy at sccollege.edu>
> *À: *pstricks at tug.org
> *Envoyé: *Mardi 3 Août 2021 15:21:57
> *Objet: *[pstricks] A little help, please.
>
> Hi,
>
> I wrote this code last summer to produce a graphic for a final exam. 
> It worked great last summer.
>
> This summer it doesn't create the graphic. :(
>
> I haven't used psTricks much in the last year...has there been 
> a change I'm not aware of?
>
> The errors I get are:
>
>     ​pspicture No. 1 undefined
>
>     ​File `LaTeX_PSTricks_Minimal_2021-08-03-pics.pdf' notfound
>
> Any suggestions/help would be appreciated...this summer's final exam 
> is Thursday!
>
> Randy Scott
>
> Santiago Canyon College
>
> \documentclass{report}
> \usepackage{%
> _pstricks_,
> pst-plot,
> pst-func,%conflicts with \usepackage[group-separator={,}]{siunitx} unless 
> loaded after
> pst-tree,
> pst-node,
> pst-3d,%pst-3dplot, conflicts with \includepdf{}
> pst-grad,
> pst-coil,
> pst-text,
> pst-eps,
> pst-fill,
> multido,
> pst-solides3d,
> pst-math,%conflicts with \usepackage[group-separator={,}]{siunitx} unless 
> loaded after
> pstricks-add,%conflicts with \usepackage[group-separator={,}]{siunitx} unless 
> loaded after
> pst-pdf}% everything pstricks
> \begin{document}
> \psset{algebraic, plotpoints=200}
> \begin{pspicture*}(-5,-1.25)(5,4.75)
> \psset{xunit=2cm, yunit=2cm}
> \renewcommand\pshlabel[1]{\scriptsize#1}
> \renewcommand\psvlabel[1]{\scriptsize#1}
> \psplot{0}{1.5708}{cos(x)}
> \psplot{0}{1.5708}{sin(2*x)}
> \pscustom[fillstyle=solid,fillcolor=gray!30,linewidth=0.2pt]{%
> \psplot{0.5236}{1.5708}{cos(x)}
> \psplot{1.5708}{0.5236}{sin(2*x)}
> }
> \pscustom[fillstyle=solid,fillcolor=gray!30,linewidth=0.2pt]{%
> \psplot{0}{0.5236}{cos(x)}
> \psplot{0.5236}{0}{sin(2*x)}
> }
> \psaxes[ticksize=2pt, 
> labelsep=2pt]{->}(0,0)(-0.2,-0.2)(2.25,1.75)[$x$,0][$y$,0]
> \rput[t](1.5708,-0.1){$\frac{\pi}{2}$}
> \psline[linestyle=dotted](0.5236,0)(0.5236,0.8660)
> \rput[t](0.5236,-0.1){$?$}
> \rput[bl](1.3,0.75){$y=\sin{\!\left(2x\right)}$}
> \rput[b](0.75,1.5){\colorbox{white}{$y\rnode[b]{A1}{\;=\;}\cos{\!\left(x\right)}$}}
> \rput(0.3,0.95){\rnode[t]{A2}{}}
> \nccurve[nodesep=3pt,angleA=-90,angleB=80]{->}{A1}{A2}
> \end{pspicture*}
> \end{document}​
>
>
> --
> list: https://lists.tug.org/pstricks
> archive: https://tug.org/pipermail/pstricks/
>
>
> --
> list: https://lists.tug.org/pstricks
> archive: https://tug.org/pipermail/pstricks/



More information about the PSTricks mailing list.