我试图添加一个链接到我的项目,但在添加超链接时我无法将其加粗,任何人都可以帮忙..
如果您想使用\url
,请参阅
此。
如果您使用
\href
包中的 hyperref
,您可以简单地将文本包装在 \textbf
中。
示例:
\documentclass{article}
\usepackage{hyperref}
%% Removes boxes around link and makes them blue
\usepackage{xcolor}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
%%
\begin{document}
This is an example of a \textbf{\href{https://stackoverflow.com}{bold link}}.
Where this is \href{https://stackoverflow.com}{not a bold link}.
\end{document}
结果:
如果您想将链接中的特定单词加粗并保留常规格式,这将起作用。
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{your-link-here}{\textbf{Bond} Link}
\end{document}