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而不是,ps2pdf因为我的系统(TeXLive 2014)中没有该命令。

在此处输入图片描述

可能出了什么问题?

我需要使用latex/dvips/pstopdf命令路径,因为我需要从https://github.com/daly/literateclojure;否则会出现编译错误。

答案1

问题是我用的是pstopdf,而不是ps2pdf。 TL2014 发行版似乎没有ps2pdf,所以我不得不使用ps2pdfbrew 为 Mac OS X 安装 ghostscript。

brew install ghostscript

相关内容