Environment: Cygwin with Cygwin Ports packages enabled for doxygen/graphviz/mscgen/texlive-latex/texlive-latex-extras.

Configuration: doxygen is configured to generate LaTeX output and I have PDF output via pdflatex. The refman.pdf is generated but is lacking some

When building this documentation, repstopdf is called from the build process, even though repstopdf has been removed from the packages.

sh: repstopdf: command not found

The epstopdf-sys.cfg contains something that looks like a redirection from epstopdf to repstopdf.

% Public domain.
% History:
% 2010/06/06 v1.2
% 2010/07/13 v1.3
% * Use `epstopdf' instead of `repstopdf' if \pdfshellescape == 1
  [2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live]%
\def\epstopdf@sys@cmd{repstopdf}% default is restricted epstopdf
% epstopdf-sys loads pdftexcmds, \pdf@shellescape is provided
% for LuaTeX as well
\expandafter\ifx\csname pdf@shellescape\endcsname\relax
    \def\epstopdf@sys@cmd{epstopdf}% unrestricted if \pdfshellescape == 1

Apparently somewhere else the command line arguments are changed to use repstopdf args so simply changing repstopdf to epstopdf doesn't work.

Does anyone else build LaTeX docs in Cywgin with this toolchain?

  • 1
    On my system repstopdf is just a symbolic link to epstopdf; when the script is called as repstopdf, some of its features are disabled. I don't see why this link should have been removed. However, if you call pdflatex with the -shell-escape option, there should be no problem. – egreg May 16 '13 at 21:57
  • When I attempt that epstopdf simply returns it's usage text. – emrainey May 16 '13 at 22:03
  • On Cygwin epstopdf is a ruby script with doesn't support the command line options that repstopdf does. – emrainey May 16 '13 at 22:06
  • I don't think so; the file epstopdf just points to a Perl script. – egreg May 16 '13 at 22:48
  • 1
    That's a bad epstopdf, I believe. TeX Live binaries usually don't reside in /usr/bin. Try renaming it to something else. – egreg May 17 '13 at 15:52

I removed the cygwin packages for texlive completely and manually installed TexLive from the installation instructions on their webpage, and modified the PATH to include the specific path for this package. When I ran the doxygen latex conversion, the repstopdf conversions passed without issue as the tools actually now existed.


Install the texlive-collection-fontutils package using the Cygwin package manager. It provides the repstopdf script.

For details of which binaries are provided by the package, see: https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Ftexlive-collection-fontutils%2Ftexlive-collection-fontutils-20180414-1&grep=repstopdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.