从 LaTeX 中的超链接目录中删除框

发布于 2024-07-13 18:52:16 字数 47 浏览 7 评论 0原文

如何从使用 LaTeX 中的 hyperref 包创建的超链接目录中删除红色框。

How do I remove the red boxes from my hyperlinked table of contents created by using the hyperref package in LaTeX.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一生独一 2024-07-20 18:52:16

删除边框:

\hypersetup{%
    pdfborder = {0 0 0}
}

colorlinks 选项将打开链接颜色并删除边框。 (这就是为什么alamodey将所有链接颜色设置为黑色。)

To remove the borders:

\hypersetup{%
    pdfborder = {0 0 0}
}

The colorlinks option will turn on the link colors and also remove the borders. (This is why alamodey set all the link colors to black.)

泪是无色的血 2024-07-20 18:52:16
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
薄情伤 2024-07-20 18:52:16

hyperref 6.82a 版本于 2011 年 2 月发布,引入了新的 hidelinks 选项,可以更轻松地完成此操作。 您现在需要的是:

\usepackage[hidelinks]{hyperref}

Version 6.82a of hyperref, released in February 2011, introduced a new hidelinks option that accomplishes this more easily. All you need now is:

\usepackage[hidelinks]{hyperref}
新一帅帅 2024-07-20 18:52:16

我意识到现在回答有点晚了,但根据我的经验,有一种更简单的方法,

\usepackage[colorlinks=true]{hyperref}

这会将超引用从丑陋的边框转变为链接着色,这正是您通常想要的。 请参阅此处了解更多选项:

http://en.wikibooks.org/wiki/LaTeX/Hyperlinks

I realize it's a bit late to answer but there's a simpler way, in my experience

\usepackage[colorlinks=true]{hyperref}

This will shift hyperref from ugly borders to link coloring, which is what you usually want. See here for more options:

http://en.wikibooks.org/wiki/LaTeX/Hyperlinks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文