Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
dot2tex with pdfeTeX
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alastair  
View profile  
 More options Oct 1 2008, 11:28 am
From: Alastair <alastair.and...@gmail.com>
Date: Wed, 1 Oct 2008 08:28:44 -0700 (PDT)
Local: Wed, Oct 1 2008 11:28 am
Subject: dot2tex with pdfeTeX
Hi,

I've been trying to get dot2tex working on my MacBook Pro running Mac
OS X 10.5.5. I've installed the packages and dependencies but I've
been having trouble getting it to work properly using the \input{}
command. I ran the test_buildexamples.py in the test directory to
diagnose the problem and the test fails whilst trying to process the
balls.dot file. The problem appears to be during the ps2eps conversion
it can't find the balls.ps file. I think this stems from the fact that
the latex command in my TeX distribution is actually pdfeTeX and so
only a .pdf is generated rather than a .ps. Is there anything I can do
to get dot2tex to skip the ps conversion phase since pdfeTeX should
have already done that or does dot2tex only work with ps producing
versions of LaTeX?

Any suggestions or tips would be most welcome.
Thanks,
Alastair


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 1 2008, 1:51 pm
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Wed, 1 Oct 2008 19:51:10 +0200
Local: Wed, Oct 1 2008 1:51 pm
Subject: Re: [dot2tex-users] dot2tex with pdfeTeX

Hi Alastair,

The LaTeX code generated by dot2tex should work fine with pdf(e)tex
unless you use the pstricks output format. The pgf(default) and TikZ
output format generate code that can be compiled directly with pdftex.

I don't remember why I have used ps2eps in the test_buildexamples.py
file. Probably because I wanted to use the same code to build the
pstricks examples.

If you run the following commands you should be able to get some hints
in the generated log files:

$ dot2tex -s --debug --prog fdp balls.dot > balls.tex
$ pdflatex balls.tex

A file dot2tex.log will be created. If you want you can send me the
dot2tex.log file and I can take a look.

You mentioned that you have problems with the \input command. Could
you give an example of how you use it?

Regards,
Kjell Magne Fauske


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alastair  
View profile  
 More options Oct 2 2008, 9:39 am
From: Alastair <alastair.and...@gmail.com>
Date: Thu, 2 Oct 2008 06:39:40 -0700 (PDT)
Local: Thurs, Oct 2 2008 9:39 am
Subject: Re: dot2tex with pdfeTeX
Hi Kjell,

I've been trying to use the \input{} command in this simple file.

\documentclass{article}
\usepackage{dot2texi}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\begin{dot2tex}
\input{graph.dot}
\end{dot2tex}
\end{document}

where graph.dot is located in the same directory and just contains
digraph G{
Hello->World

}

I use a program called TeXShop to edit and compile my .tex files and
when I try to compile this file it returns the following errors:

Opening dot2tex stream dot-dot2tex-fig1.dotsh: dot2tex: command not
found
Package dot2texi Warning: Conversion of dot-dot2tex-fig1.dot failed..
Package dot2texi Warning: Please convert dot-dot2tex-fig1.dot
manually.

However if I open a terminal and type:
$ dot2tex

then it finds the command, the problem is as if the internal shell
process spawned to automatically run dot2tex is using a different path
from the normal user terminal.

In relation to your other advice about the running dot2tex then
pdflatex, it worked fine, there were no problems. I think it was just
as part of the test suite that problems were occurring.

I did notice in the log file there was a warning about using a
deprecated command.

Package tikz Warning: Snakes have been superseded by decorations.
Please use th
e decoration libraries instead of the snakes library on input line 14.

Thanks for all you help,
Alastair

On Oct 1, 6:51 pm, "Kjell Magne Fauske" <kjel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 2 2008, 10:43 am
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Thu, 2 Oct 2008 16:43:09 +0200
Local: Thurs, Oct 2 2008 10:43 am
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX

Strange. I see that you have shell escape enabled, so that can't be
the problem. Just a shot in the dark. Does it help to write:

\documentclass{article}
\usepackage{dot2texi}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\begin{dot2tex}[]
\input{graph.dot}
\end{dot2tex}
\end{document}

?

With only
\begin{dot2tex}
\input{graph.dot}
\end{dot2tex}
I get an error. It seems to be an issue with the TeX parser when a \
follows immediately after \begin{dot2tex}. I should add a note about
this in the documentation...

If this does not help, you could try to add:

\usepackage[debug]{dot2texi}

That will generate at dot2tex.log file with more information.

Hope this helps.

Regards,
Kjell Magne Fauske


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 2 2008, 11:15 am
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Thu, 2 Oct 2008 17:15:35 +0200
Local: Thurs, Oct 2 2008 11:15 am
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX
On Thu, Oct 2, 2008 at 4:43 PM, Kjell Magne Fauske <kjel...@gmail.com> wrote:

> If this does not help, you could try to add:

> \usepackage[debug]{dot2texi}

> That will generate at dot2tex.log file with more information.

If pdftex can't find dot2tex this will of course not help. The log
file generated by latex could give some hints. Under MikTeX the
following command is used:

Opening dot2tex stream demo-dot2tex-fig1.dot
system(dot2tex --figonly -ftikz     --debug     -o
demo-dot2tex-fig1.tex  demo-dot2tex-fig1.dot)...executed.

>> Package tikz Warning: Snakes have been superseded by decorations.
>> Please use th
>> e decoration libraries instead of the snakes library on input line 14.

Just ignore the warnings. The balls.dot example has not been updated
to reflect the syntax changes introduced in PGF 2.0.

- Kjell Magne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alastair  
View profile  
 More options Oct 2 2008, 11:50 am
From: Alastair <alastair.and...@gmail.com>
Date: Thu, 2 Oct 2008 08:50:51 -0700 (PDT)
Local: Thurs, Oct 2 2008 11:50 am
Subject: Re: dot2tex with pdfeTeX

On Oct 2, 4:15 pm, "Kjell Magne Fauske" <kjel...@gmail.com> wrote:

After setting the debug argument and using \begin{dot2tex}[] the
process still fails.
Looking at the log file the command used shows up as:

 Opening dot2tex stream example-dot2tex-fig1.dot
system(dot2tex --figonly -ftikz     --debug    -o example-dot2tex-
fig1.tex  exa
mple-dot2tex-fig1.dot)...executed.
Package dot2texi Warning: Conversion of example-dot2tex-fig1.dot
failed..
Package dot2texi Warning: Please convert example-dot2tex-fig1.dot
manually.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 2 2008, 12:10 pm
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Thu, 2 Oct 2008 18:10:28 +0200
Local: Thurs, Oct 2 2008 12:10 pm
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX

On Thu, Oct 2, 2008 at 5:50 PM, Alastair <alastair.and...@gmail.com> wrote:

> After setting the debug argument and using \begin{dot2tex}[] the
> process still fails.
> Looking at the log file the command used shows up as:

>  Opening dot2tex stream example-dot2tex-fig1.dot
> system(dot2tex --figonly -ftikz     --debug    -o example-dot2tex-
> fig1.tex  exa
> mple-dot2tex-fig1.dot)...executed.
> Package dot2texi Warning: Conversion of example-dot2tex-fig1.dot
> failed..
> Package dot2texi Warning: Please convert example-dot2tex-fig1.dot
> manually.

What is the contents of the  example-dot2tex-fig1.dot file?
Is the file dot2tex.log generated?

. Kjell Magne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alastair Neil Andrew  
View profile  
 More options Oct 2 2008, 12:31 pm
From: "Alastair Neil Andrew" <alastair.and...@gmail.com>
Date: Thu, 2 Oct 2008 17:31:16 +0100
Local: Thurs, Oct 2 2008 12:31 pm
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX

Hi,

The example-dot2tex-fig1.dot just contains this:
\input{graph.dot}
As far as I can see there is no dot2tex.log generated only an example.log
file which I sent you the excerpt from last time.

Thanks,
Alastair

2008/10/2 Kjell Magne Fauske <kjel...@gmail.com>

--
.... things took a turn for the worse when we realised the Gin was finished.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 2 2008, 12:49 pm
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Thu, 2 Oct 2008 18:49:56 +0200
Local: Thurs, Oct 2 2008 12:49 pm
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX
On Thu, Oct 2, 2008 at 6:31 PM, Alastair Neil Andrew

<alastair.and...@gmail.com> wrote:
> Hi,
> The example-dot2tex-fig1.dot just contains this:
> \input{graph.dot}
> As far as I can see there is no dot2tex.log generated only an example.log
> file which I sent you the excerpt from last time.
> Thanks,
> Alastair

I am sorry. It seems that you initial theory that the shell
process spawned by latex is set up differently than your ordinary
command line shell is correct. I have experienced similar issues on
web servers. I am not familiar with OS-X so unfortunately I don't know
how to solve it.

The post in this link seems related:
http://www.nabble.com/Re%3A-latex-pgfplots-cannot-find-gnuplot-tables...
The post mentions TextMate. Maybe you can use a similar approach for TeXShop?

- Kjell Magne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alastair  
View profile  
 More options Oct 2 2008, 7:18 pm
From: Alastair <alastair.and...@gmail.com>
Date: Thu, 2 Oct 2008 16:18:32 -0700 (PDT)
Local: Thurs, Oct 2 2008 7:18 pm
Subject: Re: dot2tex with pdfeTeX
Not to worry, I'll consult the TeXShop forums and if I find a solution
I'll post it up here.

Thanks for all your help,
Alastair

On Oct 2, 5:49 pm, "Kjell Magne Fauske" <kjel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alastair  
View profile  
 More options Oct 3 2008, 10:08 am
From: Alastair <alastair.and...@gmail.com>
Date: Fri, 3 Oct 2008 07:08:54 -0700 (PDT)
Local: Fri, Oct 3 2008 10:08 am
Subject: Re: dot2tex with pdfeTeX
It was indeed a path issue. I solved it by including a link from my
dot2tex binary into the bin directory on the path of pdflatex. Perhaps
not the most elegant way but it works.

On Oct 3, 12:18 am, Alastair <alastair.and...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kjell Magne Fauske  
View profile  
 More options Oct 3 2008, 2:13 pm
From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Fri, 3 Oct 2008 20:13:47 +0200
Local: Fri, Oct 3 2008 2:13 pm
Subject: Re: [dot2tex-users] Re: dot2tex with pdfeTeX

On Fri, Oct 3, 2008 at 4:08 PM, Alastair <alastair.and...@gmail.com> wrote:

> It was indeed a path issue. I solved it by including a link from my
> dot2tex binary into the bin directory on the path of pdflatex. Perhaps
> not the most elegant way but it works.

I am glad to hear that you found a solution, and thanks for posting it here!

- Kjell Magne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »