xelatex의 EPSPDF변환 문제

xelatex의 EPSPDF변환 문제

저는 xelatex를 사용하고 있으며 패키지를 사용하여 epspdfconversion그림에서 불필요한 빈 여백을 즉석에서 제거하려고 합니다. 그림 자체는 동적으로 생성되며 bbox옵션을 통해 긴밀한 경계 상자를 계산하는 것이 epspdf좋은 생각인 것 같습니다.

불행히도, epspdfconversion은 xelatex에서 제대로 작동하지 않는 것 같습니다. 다음은 최소 작업 예입니다.

\documentclass{tufte-handout}

%\usepackage{xltxtra}
\usepackage{color}
\usepackage[bbox,pdftopdf=true,suffix=]{epspdfconversion}

\begin{document}
\includegraphics{unnamed-chunk-2.pdf}
\end{document}`

그러나 주석 처리를 제거 \usepackage{xltxtra}하고 xelatex를 컴파일하면 다음 메시지가 나타납니다.

Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.

epspdfconversion.sty is using epstopdf.sty with the following setup:
    update=true,
    verbose=true,
    prefersuffix=true,
    suffix=,
    option outdir not set. Default: same directory as the .eps-source-file
    append,
    enable
epspdf is used with the following command:
    epspdf --bbox <file> 
Package epspdfconversion Info: 
(epspdfconversion)             epspdf --bbox <file> is used to convert eps-pdf
(epspdfconversion)             (not epstopdf (script))
(epspdfconversion)              on input line 334.
! Undefined control sequence.
l.345 \epstopdfDeclareGraphicsRule
                                  {.eps}{pdf}{.pdf}{%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

이것은 xelatex 사이의 충돌인 것 같습니다. epspdfconversion.sty저는 추가 OTF 글꼴을 사용하고 있는데 xelatex를 사용하는 것이 필요한 것 같습니다. 이 문제를 해결하거나 우회하기 위한 권장 사항이 있는 사람이 있습니까?

답변1

epstopdf첫 번째 경고에서 알 수 있듯이 pdftex의 드라이버 에서만 작동합니다 . graphics그러나 은(는) lualatex뿐만 아니라 에서도 사용할 수 있습니다 pdflatex.

관련 정보