Skip to main content
QUICK REVIEW

[Paper Review] Axodraw Version 2

John C. Collins, J. A. M. Vermaseren|arXiv (Cornell University)|May 27, 2016
Mathematics, Computing, and Information ProcessingComputer Science27 citations
TL;DR

Axodraw Version 2 is an enhanced LaTeX package for creating high-quality Feynman diagrams and other graphics directly within LaTeX documents. It supports modern LaTeX compilers like pdflatex, lualatex, and xelatex via an auxiliary program called axohelp, which processes diagram specifications and embeds PDF-compatible graphics code, enabling full compatibility with contemporary document workflows while maintaining backward compatibility with the original axodraw.

ABSTRACT

We present version two of the Latex graphical style file Axodraw. It has a number of new drawing primitives and many extra options, and it can now work with \program{pdflatex} to directly produce output in PDF file format (but with the aid of an auxiliary program).

Motivation & Objective

  • To modernize the original axodraw package for compatibility with current LaTeX compilers like pdflatex, lualatex, and xelatex.
  • To support direct PDF output without relying solely on the latex-dvips pipeline.
  • To extend graphical capabilities with new primitives such as Bézier curves, dashed lines, and flexible arrow configurations.
  • To improve color handling for better integration with modern LaTeX color packages.
  • To maintain backward compatibility with legacy documents using the original axodraw package.

Proposed method

  • Introduce axodraw2.sty as a new style file to avoid conflicts with the original axodraw.
  • Use an auxiliary program, axohelp, to process diagram specifications from .ax1 files and generate optimized .ax2 files containing both PDF graphics code and original object specifications.
  • Integrate with pdflatex by having it read the .ax2 file during compilation to validate and embed preprocessed graphics.
  • Implement a two-step compilation process: first run LaTeX to generate .ax1, then run axohelp to produce .ax2, then re-run LaTeX to embed the graphics.
  • Support advanced drawing features such as Bézier lines, curved lines, double lines, and configurable arrows through extended command syntax and internal rendering logic.
  • Use a modular C-based axohelp program that maps axodraw commands to PDF output using optimized, reusable graphics utility functions.

Experimental results

Research questions

  • RQ1How can an existing LaTeX graphics package be extended to support modern LaTeX compilers like pdflatex while preserving backward compatibility?
  • RQ2What is the most robust and secure way to integrate external graphics processing into a LaTeX compilation pipeline without enabling arbitrary code execution?
  • RQ3How can complex graphical elements like Bézier curves, dashed lines, and configurable arrows be efficiently encoded and rendered in LaTeX using PDF output?
  • RQ4What architectural patterns enable extensibility for new graphical primitives in a LaTeX-based graphics system?
  • RQ5How can color handling in the package be improved to interoperate seamlessly with modern LaTeX color packages?

Key findings

  • Axodraw Version 2 successfully enables direct PDF output via pdflatex, lualatex, and xelatex using the axohelp auxiliary program, eliminating dependency on the legacy latex-dvips stack.
  • The package supports a wide range of new drawing primitives, including Bézier curves, arcs, dashed curves, and double lines, significantly enhancing diagram expressiveness.
  • The axohelp program correctly validates and embeds graphics by comparing current diagram specifications with preprocessed .ax2 files, ensuring consistency and reducing redundant processing.
  • The system maintains backward compatibility by using a new style file name (axodraw2.sty), allowing legacy documents using axodraw.sty to compile unchanged.
  • Improved color handling allows seamless integration with modern LaTeX color packages, with support for named colors and configurable stroke/fill color spaces.
  • The modular design of axohelp, with dedicated PDF utility functions, enables future extensibility to support new graphics formats or rendering languages with minimal code changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.