[pstricks] A little help, please.

camus.philippe at free.fr camus.philippe at free.fr
Tue Aug 3 17:24:35 CEST 2021


Hi, 
I recently had to add -dALLOWPSTRANSPARENCY manually to my postscript commands (dvips, ps2pdf). 
Your code compiles fine with this on TexStudio. 



Philippe CAMUS 


----- Mail original -----

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 


<blockquote>

​File `LaTeX_PSTricks_Minimal_2021-08-03-pics.pdf' notfound 
</blockquote>



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= 2 cm, yunit= 2 cm} \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.2 pt]{ % \psplot { 0.5236 }{ 1.5708 }{cos(x)} \psplot { 1.5708 }{ 0.5236 }{sin( 2 *x)} } \pscustom [fillstyle=solid,fillcolor=gray! 30 ,linewidth= 0.2 pt]{ % \psplot { 0 }{ 0.5236 }{cos(x)} \psplot { 0.5236 }{ 0 }{sin( 2 *x)} } \psaxes [ticksize= 2 pt, labelsep= 2 pt]{->}( 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]{A 2 }{}} \nccurve [nodesep= 3 pt,angleA=- 90 ,angleB= 80 ]{->}{A 1 }{A 2 } \end { pspicture* } 
\end {document}​ 



-- 
list: https://lists.tug.org/pstricks 
archive: https://tug.org/pipermail/pstricks/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20210803/486928a5/attachment-0001.html>


More information about the PSTricks mailing list.