目录为红色

目录为红色

如果我删除这个,我创建的最小示例中的问题就会消失:

\usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref}

然而,在我的真实文档中,我希望有链接显示为

万维网。http://tex.stackexchange.com

那么,如何才能将内容的颜色重新设置回黑色呢?


最小的例子是这样的:

\documentclass{article}

% If I uncomment that, the contents are colored red!
%\usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref}

\author{George Samaras}

%\usepackage{graphicx}
%\usepackage{amsmath}
%\usepackage{bm}
%\usepackage{enumitem}

\newcommand{\tab}{\hspace*{1.2em}}

\begin{document}

\title{Software \& algorithms survey for a distributed linear algebra library}

\maketitle

\begin{abstract}
 In this document, we list packages that aim to provide linear algebra operations (such us inversion) in a distributed environment. Moreover, we briefly present some relevant algorithms.
\end{abstract}\par

\tableofcontents

\section{bla}
fdhfkd
\subsection{foo}
dsjhkds
\end{document}

答案1

您可以\hypersetup稍后在文档中使用声明设置。

\documentclass{article}

% If I uncomment that, the contents are colored red!
\usepackage{hyperref}

\author{George Samaras}

%\usepackage{graphicx}
%\usepackage{amsmath}
%\usepackage{bm}
%\usepackage{enumitem}

\newcommand{\tab}{\hspace*{1.2em}}

\hypersetup{colorlinks=true, linkcolor=black}

\begin{document}

\title{Software \& algorithms survey for a distributed linear algebra library}

\maketitle

\begin{abstract}
 In this document, we list packages that aim to provide linear algebra operations (such us inversion) in a distributed environment. Moreover, we briefly present some relevant algorithms.
\end{abstract}\par

\tableofcontents

\hypersetup{colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}}

\section{bla}
fdhfkd
\subsection{foo}
dsjhkds
\end{document}

在此处输入图片描述

相关内容