Document ClassesAxodraw problem?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
fliptomato
Posts: 12
Joined: Tue Jun 24, 2008 3:19 am

Axodraw problem?

Post by fliptomato »

Hi everyone -- I'm having some strange problems with some axodraw (axodraw.sty) figures, which I've traced back to the \GBox command. Here's the offending piece of code condensed into a .tex file:

Code: Select all

Code, edit and compile here:
\documentclass[12pt]{article}
\usepackage{amssymb,amsmath,amsbsy}
\usepackage{axodraw}
\begin{document}
\begin{figure*}[h]
\begin{center}
\begin{picture}(100,100) (0,0)
\GBox(1,1)(99,99){0.882}
% \BBox(1,1)(99,99)
\end{picture}
\end{center}
\end{figure*}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I'm able to LaTeX and then dvips this code. However, the resulting postscript file doesn't draw the box correctly. Further, ps2pdf gives an error:

Code: Select all

Error: /stackunderflow in --exch--
Operand stack:
y1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringGPL Ghostscript 8.61: Unrecoverable error, exit code 1
val-- --nostringval--
Dictionary stack:
--dict:1151/1684(ro)(G)-- --dict:0/20(G)-- --dict:93/200(L)-- --dict:175/300(L)-- --dict:107/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 32899
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If you comment out the \GBox line and uncomment the \BBox line, then the tex works just fine. But I have no idea what's going on. The code worked on a different distribution of TeX, but it has problems compiling on TeXLive and MacTex.

Any suggestions?

Thanks,
F
Last edited by fliptomato on Fri Jun 27, 2008 1:49 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.

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

Axodraw problem?

Post by localghost »

Looking at the axodraw.sty file, I would consider this package obsolete. If you could show an example of what you want to realise, we might be able to show alternatives with other packages.


Best regards
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Re: Axodraw problem?

Post by Stefan Kottwitz »

Hi,

I compiled this code, converted it using dvips to postscript and then to pdf by ps2pdf, without errors, I've got the expected output.
To find out where the problem is you could post the dvi and the ps file.

But I agree with Thorsten that axodraw is just too old, it's designed for LaTeX 2.09, the README file says the current version is of 5-mar-1998.

Stefan
LaTeX.org admin
fliptomato
Posts: 12
Joined: Tue Jun 24, 2008 3:19 am

Re: Axodraw problem?

Post by fliptomato »

Hello -- thank you both for such prompt replies! After you said that you got the code to compile properly, I attempted it on a different computer and indeed it now seems to work. (I'm not sure what was going on previously -- if the first computer is still wonky I'll post a follow up reply when I get a chance to test it again.)

Regarding the use of axodraw, it's one of the popular packages for drawing Feynman diagrams in particle physics. See, for example, the jaxodraw front end: http://jaxodraw.sourceforge.net/

I know there are a few other options out there, but this seems to be the easiest with a graphical interface. (However, any suggestions would be greatly welcome!)

Thanks very much again -- I really appreciate the feedback.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Axodraw problem?

Post by Stefan Kottwitz »

Hi,

just to mention it - there's also the feynmf package.
If axodraw is working for you, nice, it's good to hear that older packages still work well.

Stefan
LaTeX.org admin
Post Reply