MiKTeX and proTeXtProblem with Graphs package

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
msgj
Posts: 9
Joined: Tue Nov 20, 2007 3:12 pm

Problem with Graphs package

Post by msgj »

I wonder if anyone else here uses the graphs package by Frank Drewes. It was working fine until a few weeks ago (possibly when I updated to MikTeX 2.6)

An error is produced by dvips, which says is can't find a header file:
C:\Program Files\MiKTeX 2.5\miktex\bin\dvips.exe: ! Couldn't find header file C:/Program Files/MiKTeX 2.5/tex/latex/graphs/graphs.header

It then terminates without producing any postscript output.

The location of the header file is given in a \special command in a file called graphs_config.tex:

Code: Select all

\special{header=C:/Program Files/MiKTeX 2.5/tex/latex/graphs/graphs.header}

The forward slashes are the correct format. The file graphs.header (and all the other files in the package) is definitely in the following directory: C:\Program Files\MiKTeX 2.5\tex\latex\graphs

If anyone could give me any help, I'd be most grateful. As I said, it was working perfectly until a few weeks ago, and now I can't get it to work at all.

Martin

Recommended reading 2024:

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

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

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

Problem with Graphs package

Post by localghost »

What about replacing the "5" by the "6" in the path?

Code: Select all

\special{header=C:/Program Files/MiKTeX 2.6/tex/latex/graphs/graphs.header}
For future projects I recommend to use either PSTricks or pgf/tikz for generating such graphs. Both come with your MiKTeX distribution. Just start the package manager and take a look.
msgj
Posts: 9
Joined: Tue Nov 20, 2007 3:12 pm

Problem with Graphs package

Post by msgj »

localghost, you are very observant. However the solution was not quite as simple as that. I realised when I checked again, that I hadn't actually upgraded to version 2.6 as I stated. The problem must have been caused by an update to version 2.5.

Therefore I immediately went ahead and upgraded to 2.6 and the problem was no longer there. So I don't know why it stopped working with 2.5, but I don't care anymore!

Thanks.
msgj
Posts: 9
Joined: Tue Nov 20, 2007 3:12 pm

Problem with Graphs package

Post by msgj »

Regarding your suggestion to use PSTricks or pgf/tikz, I have some experience with the latter. Graphs seems quite simple and does what I need. Are there any other advantages with the others? I'd rather not learn how to use yet another package.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with Graphs package

Post by localghost »

msgj wrote: […] Are there any other advantages with the others? […]

Well, the most outstanding advantage is that they are maintained. The actual version of the graphs package is nearly seven(!) years old. Modern packages are always under development. It may work, but in the end it is only an extension of the standard picture environment like the pict2e package in combination with the curve2e package. The packages I mentioned are much more powerful. I wouldn't know what I should do without. But if the capability of the graphs packages is enough for you, keep it. Until you introduced your problem here, I didn't even know that it actually exists. And it hasn't even yet an entry on CTAN.
Post Reply