LaTeX MSC package error
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:
- LaTeX compile it (Shift+Ctrl+L).
- Then convert the .dvi file to .ps with DVIPS.
- Finally use PS2PDF to get the PDF.
Any other sugestions are welcome.
Related posts:
- LaTeX Concatenation Symbol
- “LaTeX source files more than 5 years old!”
- Windows 7 Login Error “The referenced account is currently locked out and may not be logged on to”
- Bosnian alphabet characters in LaTeX
- “Unable to find vcvarsall.bat” error when trying to install rdflib