Home > Fixes, LaTeX > LaTeX MSC package error

LaTeX MSC package error

November 23rd, 2009 Leave a comment Go to comments

While using the MSC (Message Sequence Chart) package (msc.sty) I couldn’t compile my document by using PDF Texify in WinEdt. With the following sample code

\documentclass{article}
\usepackage{msc}
\begin{document}

\begin{msc}{Example}

\declinst{usr}{User}{}
\declinst{m1}{Machine 1}{control}
\declinst{m2}{Machine 2}{drill}
\declinst{m3}{Machine 3}{test}

\mess{startm1}{usr}{m1}
\nextlevel
\mess{startm2}{m1}{m2}
\nextlevel
\mess{continue}{m2}{m3}
\mess{log}{m1}{envleft}
\nextlevel
\mess{output}{m3}{usr}[2]
\nextlevel
\mess{free}{m1}{usr}
\nextlevel

\end{msc}

\end{document}

I get this error

! Undefined control sequence.
..
\declinst

I don’t know why exactly this happens, but the error suggests that it probably calls a command that doesn’t exist. Anyway, a quick fix (in WinEdt – MikTeX) is to do the following:

  1. LaTeX compile it (Shift+Ctrl+L).
  2. Then convert the .dvi file to .ps with DVIPS.
  3. Finally use PS2PDF to get the PDF.

Any other sugestions are welcome.

Related posts:

  1. LaTeX Concatenation Symbol
  2. “LaTeX source files more than 5 years old!”
  3. Windows 7 Login Error “The referenced account is currently locked out and may not be logged on to”
  4. Bosnian alphabet characters in LaTeX
  5. “Unable to find vcvarsall.bat” error when trying to install rdflib

Categories: Fixes, LaTeX Tags:
  1. No comments yet.
  1. No trackbacks yet.
*