6

我在我的乳胶文档中使用了 hyperref。在参考文献中,我有一个 URL,hyperref 包会自动创建一个可点击的链接。

但是,我需要该 URL 未链接;但文档的其余部分应该是内部链接。

我找不到一种方法来告诉乳胶避免那个。对于参考资料,我使用的是 bib 文件。

我已经尝试过\nolinkurl{ulr}宏,但在最终的 pdf 中,无论如何都会创建链接。

4

1 回答 1

11

您确定这是您的pdf而不是pdf查看器的问题吗?

为了测试,我创建了这个简单的 LaTeX 文档。在内置的 Chrome pdf 查看器中,所有三个 url 都是链接的。在 Adob​​e Reader 中,实际上只有一个 \url{} 是链接的。Foxit 也只为显式的 \url{} 宏创建一个链接。

\documentclass{article}
\usepackage{hyperref}
\begin{document}
This one should link \url{http://www.google.com}

This one should explicitly not link \nolinkurl{http://www.google.com}

This one is absolutely plain text http://www.google.com
\end{document}
于 2011-03-09T02:21:46.603 回答