# repstopdf issue on Cygwin

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
%
\ProvidesFile{epstopdf-sys.cfg}%
[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
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdf@shellescape\endcsname\relax
\else
\ifcase\pdf@shellescape
\or
\def\epstopdf@sys@cmd{epstopdf}% unrestricted if \pdfshellescape == 1
\fi
\fi
\epstopdfsetup{%
program@epstopdf=\epstopdf@sys@cmd
}%
\endinput


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?

• 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
• 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

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