summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex')
-rw-r--r--macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex b/macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex
new file mode 100644
index 0000000000..a6755167b6
--- /dev/null
+++ b/macros/latex/contrib/webquiz/doc/examples/pst2pdf.tex
@@ -0,0 +1,22 @@
+\documentclass[pst2pdf]{webquiz}
+\usepackage{pst-all,pst-3dplot}
+\title{A pst2pdf example}
+\begin{document}
+ \begin{question} % a quiz question
+ Which of the equations below could describe the following surface?
+
+ \begin{pspicture*}(-4,-4)(4,4)
+ \psplotThreeD[linecolor=blue, plotstyle=curve, drawStyle=yLines,
+ yPlotpoints=30, xPlotpoints=30, linewidth=1pt](-4,1)(-4,1){
+ x dup mul y dup mul add 1.01 exp}
+ \pstThreeDCoor[linewidth=1pt, xMin=-4,xMax=4,yMin=-4,yMax=4,zMin=-2,zMax=6]
+ \end{pspicture*}
+
+ \begin{choice}
+ \incorrect \( z=\log(x^2+y^2) \)
+ \correct \( z=e^{x^2+y^2} \)
+ \incorrect \( z=1-e^{x^2+y^2} \)
+ \incorrect \( z=\dfrac1{x^2+y^2}\)
+ \end{choice}
+ \end{question}
+\end{document}