I want to be able to put .png images in my document and as well drawings with the package axodraw2. The problem is that to draw a picture and see it in the document I have to compile with LaTeX + dvips + ps2pdf + View Pdf and to see and ordinary .png image I have to compile with Pdf LaTeX + View Pdf.

For example, if I write the following things, which includes an image and a drawing with axodraw2






And try to compile with Pdf LaTeX + View Pdf I get (the drawing should appear below the image but only the letters that are in the drawing appear)

enter image description here

If I doesn't include the image and I compile with LaTeX + dvips + ps2pdf + View Pdf I get the drawing with axodraw2 right

enter image description here

And including both and trying to compile with LaTeX + dvips + ps2pdf + View Pdf yields and error message

enter image description here

Is there a way to include .png images and use axodraw drawings in the same document? I would really appreciate some help. Thanks for the attention.

  • No, what I did was transform every .png image in .eps or .ps. Axodraw then runs normally.
    – Slayer147
    Mar 12, 2019 at 23:39
  • first time hear about ‘axopicture’. Is it better than TikZ?
    – Black Mild
    Aug 16, 2019 at 4:07
  • Never used this program.
    – Slayer147
    Aug 16, 2019 at 4:45

1 Answer 1


Yes, see the axodraw manual section 4.3.3.

By running an auxiliary program, similar to the way you run BibTeX or Biber for bibliographies, you can use axodraw2 with pdflatex. The compilation sequence becomes

pdflatex filename
axohelp filename
pdflatex filename

I think it should be possible to run axohelp from Texmaker (User -> User commands), but I couldn't make it work. But running from a terminal should work.

  • When I write axohelp it appears command not found, but I have axohelp.exe in my folder. Am I doing right? I haven't much experience with the ubuntu terminal.
    – Slayer147
    Jul 21, 2018 at 18:09
  • @Slayer147 Ehm, I'd expect that axohelp was installed along with the axodraw2 package in TeX Live, you shouldn't need to manually place an executable somewhere (I didn't at least). I'd also expect that a .exe file was a Windows executable, don't know if it would work on Linux. (I've never used axodraw/axohelp before, I just opened the manual, found the section I referred to, and tested it successfully with your example, so I don't really know much about it. Personally I'd use TikZ for a diagram like that.) Jul 21, 2018 at 20:14
  • I download this files for axodraw2 ctan.org/tex-archive/graphics/axodraw2
    – Slayer147
    Jul 21, 2018 at 21:27
  • For Ubuntu, if you downloaded the files manually, you also need to create the executable manually (the axohelp.exe file is only for Windows and does not work in Ubuntu). See the INSTALL file on CTAN (i.e., the link you mentioned) for instructions.
    – Marijn
    Jul 21, 2018 at 21:43
  • 1
    @Slayer147 those errors look like a problem with finding libraries, this is a rather complex topic which is out of scope for this site. You could search on Stack Overflow for 'c undefined reference to' it you feel like spending more time on it. On topic: there is an alternative solution to first compile the the axodraw figure with LaTeX-dvips-ps2pdf as a standalone document, and then include that pdf with \includegraphics in your main document (which is probably more or less what axohelp will do for you automatically).
    – Marijn
    Jul 23, 2018 at 11:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .