Document Classespstricks subpackage

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

pstricks subpackage

Post by jonysatie »

Hi everybody.

Well, I have been using pst-func package, which says that it automatically loads the basic packages of pstricks, that is, pstricks, pst-plot, pstricks-add, pst-math, pst-xkey.

The problem is that when I set the \psaxes command, I obtain 4 errors, and I don't know how to solve this. \psaxes needs the pst-plot package, but I must be load automatically.

The errors are as follow:

Code: Select all

! Undefined control sequence.
\pst@@vlabels ->\psDEBUG 
                         [pst@@vlabels]{yticksizeC=\the \pst@yticksizeC }\vb...
l.15 \end
         {pspicture}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 15.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 15.
! Undefined control sequence.
\pst@@vlabels ->\psDEBUG 
                         [pst@@vlabels]{yticksizeC=\the \pst@yticksizeC }\vb...
l.15 \end
         {pspicture}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\pst@@hlabels ->\psDEBUG 
                         [pst@@hlabels]{xticksizeC=\the \pst@xticksizeC }\vb...
l.15 \end
         {pspicture}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
And this is the tex code:

Code: Select all

\documentclass[10pt,letterpaper]{article}

\usepackage[spanish]{babel}
\usepackage[ansinew]{inputenc}

\usepackage{pst-func}
\begin{document}

{\red hola.}

\psset{yunit=0.5cm,xunit=1cm}
\begin{pspicture}[showgrid=false](-3,-5)(5,10)
\psaxes[Dy=2]{->}(0,0)(-3,-5)(5,10)
\end{pspicture}

\end{document}
I will be very thank if you have any recommendation.
Greetings.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

pstricks subpackage

Post by gmedina »

Hi jonysatie,

I compiled (using LaTeX, not PDFLaTeX) your sample code and got no errors. I attach the resulting pdf obtained through LaTeX->DVItoPS->PStoPDF.

Can you please post the .log file that you get when you compile your sample code? Maybe looking at this file we can give some advise.
Attachments
test.pdf
(4.38 KiB) Downloaded 310 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Re: pstricks subpackage

Post by Stefan Kottwitz »

Hi jonysatie,

welcome to the board!
I can confirm too that the code is working. I compiled with LaTeX using texlive 2007-13 on Ubuntu Linux 8.04 with PSTricks v1.15, pst-func 2006/04/22 and pst-plot v97 patch 2.

Stefan
LaTeX.org admin
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Re: pstricks subpackage

Post by jonysatie »

Thank you for your answers.
It won't be neccessary to post the .log file. I already solved my problem. I went to CTAN and I updated the pst-plot package.

Greetings.
Post Reply