Graphics, Figures & TablesVaucanson-G & (auto-)pst-pdf Clash

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
youngprof
Posts: 8
Joined: Thu Apr 08, 2010 9:18 pm

Vaucanson-G & (auto-)pst-pdf Clash

Post by youngprof »

Hi,

I'd like to use the vaucanson-g package to draw some automatons but I'm not an expert in using ps/dvi. I found an older post in the forum that suggested (auto)pst-pdf would do the job and I think it will but when I run my compiler (TeXShop) I'm informed there is an option clash related to some package xcolor (which I guess is called by vaucanson-g ?). Does anyone know how to get around it? I don't need the colors in vaucanson-g so if there's an easy way to just turn that off I'd be perfectly fine with that.


Example:

Code: Select all

\documentclass{article}
\usepackage{pst-pdf}
%\usepackage{auto-pst-pdf}
\usepackage{vaucanson-g}
\begin{document}
\begin{VCPicture}{(0,-2)(6,2)} 
% states 
\State[p]{(0,0)}{A} \State{(3,0)}{B} \State[r]{(6,0)}{C} 
% initial--final 
\Initial{A} \Final{C} 
% transitions 
\EdgeL{A}{B}{a} \ArcL{B}{C}{b} \ArcL{C}{B}{b} 
\LoopN{A}{a} \LoopS{C}{d} 
% 
\end{VCPicture} 
abc
\end{document}
I know the VCPicture is right because I copied it from the documentation and I feel like the packages are probably ok because i can run them each individually with no problems.

If i reverse the order of the vaucanson-g and pst-pdf packages I get a different problem that seems trickier to solve (\begin{pspicture} ended by \end{VCPicture}) but that might also be something helpful to one wiser than I.

Thank you!

Recommended reading 2024:

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

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

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Vaucanson-G & (auto-)pst-pdf Clash

Post by CrazyHorse »

youngprof wrote:
I know the VCPicture is right because I copied it from the documentation and I feel like the packages are probably ok because i can run them each individually with no problems.

If i reverse the order of the vaucanson-g and pst-pdf packages I get a different problem that seems trickier to solve (\begin{pspicture} ended by \end{VCPicture}) but that might also be something helpful to one wiser than I.
put the VCpicture into a postscript environment!

Code: Select all

\documentclass{article}
\usepackage{auto-pst-pdf}
\usepackage{vaucanson-g}
\begin{document}
\begin{postscript}
\begin{VCPicture}{(0,-2)(6,2)}
% states
\State[p]{(0,0)}{A} \State{(3,0)}{B} \State[r]{(6,0)}{C}
% initial--final
\Initial{A} \Final{C}
% transitions
\EdgeL{A}{B}{a} \ArcL{B}{C}{b} \ArcL{C}{B}{b}
\LoopN{A}{a} \LoopS{C}{d}
%
\end{VCPicture}
\end{postscript}
abc
\end{document}
and then run it with

pdflatex --shell-escape file

the --shell-escape option is important

Herbert
Post Reply