Math & ScienceSignal Processing Block Diagrams: pst-sigsys woes

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
vikramp
Posts: 2
Joined: Fri Sep 24, 2010 4:57 am

Signal Processing Block Diagrams: pst-sigsys woes

Post by vikramp »

I'am using MacTex Live 2010 (just updated to see if it would solve my problem, sadly it didn't).

I need to draw basic signal processing block diagrams in my paper, and after googling found that the package pst-sigsys would be able to do this. Since this package was already installed, I went ahead and tried some basic examples given in the pst-sigsys documentation. So far I have failed miserably.

The tex file I made to test pst-sigsys is as follows (test2.tex):

Code: Select all

\documentclass[11pt]{amsart}
\usepackage{geometry}         
\geometry{letterpaper}         
\usepackage{pst-sigsys}

\title{Brief Article}
\author{The Author}

\begin{document}
\maketitle
\section{}

\begin{figure}[ht]
\begin{pspicture}[showgrid=true](-2,-1)(2,1) 
\psaxeslabels(0,0)(-2,-1)(2,1){$\Re$}{$\Im$}
\end{pspicture}
\end{figure}

\end{document}  
I have attached the log file, but am pasting the first few errors which came up:

Code: Select all

./test2.tex:14: Undefined control sequence.
<recently read> \c@lor@to@ps 
                             
l.14 \begin{pspicture}[showgrid=true](-2,-1)(2,1)
                                                 
? r
OK, entering \nonstopmode...
./test2.tex:14: Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@ 
                                                  \fi \space 
l.14 \begin{pspicture}[showgrid=true](-2,-1)(2,1)
                                                 
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.

./test2.tex:14: Undefined control sequence.
<recently read> \c@lor@to@ps 
Someone please help me here, I have tried google and havent come up with any solutions so far.

Also, if any of you know any other package for drawing signal processing blocks, please let me know.
Attachments
test2.log
(19.21 KiB) Downloaded 313 times

Recommended reading 2024:

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

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

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

Signal Processing Block Diagrams: pst-sigsys woes

Post by gmedina »

Hi,
vikramp wrote:

Code: Select all

./test2.tex:14: Undefined control sequence.
<recently read> \c@lor@to@ps 
                             
l.14 \begin{pspicture}[showgrid=true](-2,-1)(2,1)
                                                 
? r
OK, entering \nonstopmode...
./test2.tex:14: Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@ 
                                                  \fi \space 
l.14 \begin{pspicture}[showgrid=true](-2,-1)(2,1)
                                                 
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.

./test2.tex:14: Undefined control sequence.
<recently read> \c@lor@to@ps 
This error typically comes from compiling directly with pdflatex. Since you are using some PS-Tricks code, you cannot compile directly with pdflatex; you'll have to compile with latex or to use some additional package such as pst-pdf or pdf-tricks.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
vikramp
Posts: 2
Joined: Fri Sep 24, 2010 4:57 am

Re: Signal Processing Block Diagrams: pst-sigsys woes

Post by vikramp »

gmedina, thanks a lot. I can't believe the solution was something so simple.
I compiled to .dvi with latex and everything was fine.

Thanks a lot again.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Signal Processing Block Diagrams: pst-sigsys woes

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that a reminder will not be necessary anymore.


Best regards and welcome to the board
Thorsten
Post Reply