[pstricks] A little help, please.

Scott, Randy Scott_Randy at sccollege.edu
Tue Aug 3 15:21:57 CEST 2021


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}?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20210803/745d2b98/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LaTeX_PSTricks_Minimal_2021-08-03.tex
Type: application/x-tex
Size: 1513 bytes
Desc: LaTeX_PSTricks_Minimal_2021-08-03.tex
URL: <https://tug.org/pipermail/pstricks/attachments/20210803/745d2b98/attachment.tex>


More information about the PSTricks mailing list.