[pstricks] PSTricks Digest, Vol 219, Issue 6
Pablo González
pablgonz at yahoo.com
Wed Aug 4 18:23:35 CEST 2021
Try this, it compiles for me without major problems, it is better to use the `auto-pst-pdf` package instead of `pst-pdf`, of course you must compile using `pdflatex -shell-escape`.
\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
} % everything pstricks
\usepackage[cleanup={log,aux,dvi,ps,pdf},pspdf={-dALLOWPSTRANSPARENCY}]{auto-pst-pdf}
\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}
Saludos
More information about the PSTricks
mailing list.