I wanted to draw automata with latex, I install the package
Vaucanson-G, and I inserted this code but it does not work, I know where
it is the treatment problems. Thank you for helping me
Here is my code:
\documentclass[a4paper,10pt]{book}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{vaucanson-g}
\begin{document}
\MediumPicture\VCDraw{%
\begin{VCPicture}{(-2,-6)(6,2)} \officialeuro\officialeuro
% states
\State[A]{(0,0)}{1}
\State{(8,0)}{2}
\FinalState[3]{(4,0)}{3}
\State[4]{(0,-4)}{4}
\FinalState[5]{(4,-4)}{5}
% initial--final
\Initial{1}
%\Final{10}
% transitions
\EdgeL{1}{3}{a}
\EdgeL{1}{4}{b}
\EdgeL{1}{5}{c}
\ArcL{2}{3}{a}
\EdgeL{2}{5}{c}
\LoopN{3}{a}
\ArcL{3}{2}{b}
\ArcL{3}{5}{c}
\ArcL{4}{5}{c}
\ArcL{5}{3}{a}
\ArcL{5}{4}{b}
\LoopS{5}{c}
\end{VCPicture}
}\\
\end{document}
Graphics, Figures & Tables ⇒ Draw Automata with LaTeX
NEW: TikZ book now 40% off at Amazon.com for a short time.

Draw Automata with LaTeX
As far as I can tell the only problem here is the command \officialeuro which requires that you load the eurosym package:
Code: Select all
\usepackage{eurosym}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Draw Automata with LaTeX
"Does not work" is a trivial statement and not helpful. Error messages from the log file are much better to get a clue of what might be going wrong.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10