pdf 링크가 latex/dvips/pstopdf 실행 시 작동하지 않습니다.

pdf 링크가 latex/dvips/pstopdf 실행 시 작동하지 않습니다.

다음과 같은 간단한 LaTeX 파일이 있습니다.

\documentclass{book}
\usepackage{hyperref}
\hypersetup{%
linkcolor=blue,
colorlinks=true,%         hyperlinks will be black
pdfborderstyle={/S/U/W 1}% border style with underline of width 1pt
}
\begin{document}
\tableofcontents
\section{Hello}
Hello.
\section{World}
World.
\end{document} 

다음을 사용하여 PDF 링크 문서를 얻으려고 할 때:

latex hello.tex
latex hello.tex
dvips hello.dvi
pstopdf hello.ps

파란색 링크가 포함된 PDF 파일이 있는데 링크가 작동하지 않습니다. 내 시스템에서 명령을 사용할 수 없기 때문에 pstopdf대신 사용해야 했습니다 (TeXLive 2014).ps2pdf

여기에 이미지 설명을 입력하세요

무엇이 잘못되었을 수 있나요?

latex/dvips/pstopdfTeX 코드를 컴파일해야 하므로 명령 경로를 사용해야 합니다 .https://github.com/daly/literateclojure; 그렇지 않으면 컴파일 오류가 발생합니다.

답변1

문제는 내가 pstopdf, not 을 사용했다는 것입니다 ps2pdf. TL2014 배포판에는 가 없는 것 같아서 Mac OS X용 Brew에서 ghostscript로 ps2pdf설치해야 했습니다 .ps2pdf

brew install ghostscript

관련 정보