Graphics, Figures & Tablesmultido with pstricks : Undefined control sequence

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hrt500
Posts: 1
Joined: Thu Mar 05, 2009 1:23 am

multido with pstricks : Undefined control sequence

Post by hrt500 »

Hello,

everytime I want to set a picture, I receive this error:

"C:\Program Files\MiKTeX 2.7\tex\generic\multido\multido.tex(28): Error: ! Undefined control sequence.

It seems to be that there is an error somewhere within multido.tex. So I can't write a picture with pstricks.

Can anybody help me with this problem?

I will be very grateful to you!
This is the simple picture I want to make:

Code: Select all

\documentclass{report}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\begin{document}

\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-2.33)(3.84,2.33)
\psline[linewidth=0.04cm](0.38,2.31)(0.38,-2.31)
\psline[linewidth=0.04cm](0.0,-1.95)(3.82,-1.97)
\end{pspicture} 
}
\end{document}

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multido with pstricks : Undefined control sequence

Post by localghost »

The compiler gives more detailed information about the error such as the line number where it occurs. But I guess you only need an update of the multido package. Start the MiKTeX Update and get the current versions of all installed packages.

There is a much better way to scale pstricks pictures.

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage[margin=2cm]{geometry}
\usepackage[usenames,dvipsnames]{pst-grad,pstricks-add}

\begin{document}
  \begin{pspicture}[showgrid=true,unit=5mm](-1,-1)(7,5)
    \psaxes[arrows=->,ticks=none](0,0)(7,5)
  \end{pspicture}
\end{document}
For drawing graphs you may take a look at the psgraph environment provided by the pstrick-add package. Use the graphicx package instead of the obsolete epsfig package.


Best regards and welcome to the board
Thorsten¹
Post Reply