Graphics, Figures & TablesKile and »vaucanson-g« package

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Kile and »vaucanson-g« package

Post by OphTeX »

Hi!

I would like to draw automates using Kile on Linux. Unfortunately my testfile (which you can see below) does not compile. The error I get is somewhat cryptic, at least for me. I have tried it with Tex, Latex, PdfTex etc. but this behavior doesn't ever change. Does maybe anybody have any idea what could be wrong?

Code: Select all

\documentclass[a4paper,10pt]{book}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{vaucanson-g}
\begin{document}
\begin{VCPicture}{(-2,-6)(6,2)} 
\MediumPicture\VCDraw{
% states 
\State[A]{(0,0)}{1} 
\State[B]{(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}
Attachments
test.log
(22.7 KiB) Downloaded 196 times
Last edited by OphTeX on Sat Mar 19, 2011 12:19 am, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Kile and »vaucanson-g« package

Post by localghost »

The problem is not related to Kile. And it is not comprehensible for me because the code you provided compiles fine for me as is via LaTeX → PS → PDF (see attachment). Run LaTeX on the following minimal code and submit the file list from the log file.

Code: Select all

\documentclass{article}
\usepackage{vaucanson-g}

\begin{document}
  Test
\end{document}
My file list when compiling your example looks like shown below. Compare to yours with special attention to the vaucanson-g package.

Code: Select all

 *File List*
standalone.cls    2010/03/27 v0.3a Class to compile TeX sub-files standalone
kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
standalone.cfg    2010/03/27 v0.3a Default configuration file for 'standalone' class
 preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)
prtightpage.def
vaucanson-g.sty    2008/10/27 package wrapper for VauCanSon-G v. 0.4
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
VCColor-names.def
pstricks.sty    2010/06/17 v0.45 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2010/06/06 v2.08 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
  pst-fp.tex    2010/06/06 v2.08 `PST-fp' (hv)
pst-node.sty    2010/04/22 package wrapper for pst-node.tex
pst-node.tex    2010/06/06 1.13 `pst-node' (tvz)
pst-plot.sty    2010/01/22 package wrapper for pst-plot.tex
pst-plot.tex    2010/06/22 1.17 `pst-plot' (tvz,hv)
pst-coil.sty    2010/02/01 package wrapper for pst-coil.tex (hv)
pst-coil.tex    2010/02/01 v1.03 `PST-coil' (tvz,hv)
 multido.sty    2004/05/17 package wrapper for PSTricks `multido.tex', (HV/RN)
  pst-3d.sty    2009/07/28 package wrapper for pst-3d.tex (hv)
  pst-3d.tex    2010/02/14 v1.11 `PST-3d' (hv)
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
 ***********
If you can't get it working, try the pgf/tikZ package as a possible alternative. Here is a translation of your example.

Code: Select all

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}

\begin{document}
  \begin{tikzpicture}[%
    >=stealth,
    shorten >=2pt,
    auto,
    on grid,
    node distance=3cm
  ]
    \node[state,initial]   (A) {A};
    \node[state,accepting] (3) [right=of A] {3};
    \node[state]           (4) [below=of A] {4};
    \node[state,accepting] (5) [right=of 4] {5};
    \node[state]           (B) [right=of 3] {B};

    \path[->] (A) edge                node {a} (3)
              (A) edge                node {c} (5)
              (A) edge                node {b} (4)
              (3) edge [loop above]   node {a} ()
              (3) edge [bend left=15] node {c} (5)
              (5) edge [bend left=15] node {a} (3)
              (4) edge [bend left=15] node {c} (5)
              (5) edge [bend left=15] node {b} (4)
              (5) edge [loop below]   node {c} ()
              (3) edge [bend left=15] node {b} (B)
              (B) edge [bend left=15] node {a} (3)
              (B) edge                node {c} (5);
  \end{tikzpicture}
\end{document}

Best regards and welcome to the board
Thorsten
Attachments
Rendered output of the provided code.
Rendered output of the provided code.
vaucanson-g-xmpl.png (25.28 KiB) Viewed 2345 times
OphTeX
Posts: 7
Joined: Wed Jan 19, 2011 7:24 pm

Re: Kile and »vaucanson-g« package

Post by OphTeX »

Thank you very much for your answer! It seems that some files regarding to vaucanson-g have been misplaced. It's working now.

Kind regards
O.
Post Reply