PS-Tricks nicht erkannt?
Verfasst: Mi 6. Jun 2012, 21:06
Ich bin gerade am Verzweifeln. Ich will mit Hilfe von pstricks eine Funktion plotten. Mein Dokument sieht wie folgt aus:
[code] \usepackage{inputenc}
\usepackage[german]{babel}
\usepackage{pstricks,pst-node,pst-plot,pst-all}
\usepackage{filecontents}
\setlength{\parindent}{0cm}
\begin{document}
\begin{figure}
\centering
\begin{pspicture}(-1,-1)(6,6)
\psaxes[arrows=->](0,0)(6,6)
\psset{algebraic=true}
\psplot{1}{5}{((x-3)^2)+1}
\psline[linestyle=dashed](0,1)(3,1)
\psline[linestyle=dashed](3,0)(3,1)
\psline[linestyle=dotted](1,0)(1,5)
\psline[linestyle=dotted](5,0)(5,5)
\rput(2.5,5){$y=(x-3)^2+1$}
\end{pspicture}
\caption{Plotten von Funktionen mit \texttt{psplot}}
\end{figure}
\end{document} [/code]
Allerdings werden alle ps-Befehle nicht erkannt bzw. steht: The control sequence at the end of the top line of your error message was never defined. Und das in jeder Zeile mit dem Befehl ps.
Ich habe eingestellt das Pakete automatisch geladen werden.
Kann mir jemand helfen das Problem zu lösen?
[code] \usepackage{inputenc}
\usepackage[german]{babel}
\usepackage{pstricks,pst-node,pst-plot,pst-all}
\usepackage{filecontents}
\setlength{\parindent}{0cm}
\begin{document}
\begin{figure}
\centering
\begin{pspicture}(-1,-1)(6,6)
\psaxes[arrows=->](0,0)(6,6)
\psset{algebraic=true}
\psplot{1}{5}{((x-3)^2)+1}
\psline[linestyle=dashed](0,1)(3,1)
\psline[linestyle=dashed](3,0)(3,1)
\psline[linestyle=dotted](1,0)(1,5)
\psline[linestyle=dotted](5,0)(5,5)
\rput(2.5,5){$y=(x-3)^2+1$}
\end{pspicture}
\caption{Plotten von Funktionen mit \texttt{psplot}}
\end{figure}
\end{document} [/code]
Allerdings werden alle ps-Befehle nicht erkannt bzw. steht: The control sequence at the end of the top line of your error message was never defined. Und das in jeder Zeile mit dem Befehl ps.
Ich habe eingestellt das Pakete automatisch geladen werden.
Kann mir jemand helfen das Problem zu lösen?