
我正在嘗試設定我的 hyperref 環境來複製本文的風格:https://iopscience.iop.org/article/10.1088/1126-6708/2000/04/018/pdf
但我似乎無法理解它,而且我找到的所有 hyperref 手冊都非常技術性且非說明性,你們能幫助我嗎?
答案1
這是您正在尋找的東西嗎?在您連結的範例中,除了腳註之外,似乎每種類型的連結周圍都有一個藍色虛線邊框。我盡力重新創建減去腳註的內容,我用 禁用了腳註hyperfootnotes=false
。
在下面的程式碼中pdfborderstyle
, 中的兩個數字[3.5 2.5]
分別控制每個破折號的長度以及破折號之間的間隙大小(以點為單位測量)。後面的數字W
是以點為單位的虛線的寬度(厚度)。
\documentclass{article}
\usepackage{amsmath}
\usepackage[hyperfootnotes=false]{hyperref}
\hypersetup{
allcolors=blue,
allbordercolors={0 0 1},
pdfborderstyle={/S/D/D[3.5 2.5]/W 1}
}
\begin{document}
\section{Hi there!}
\subsection{Nice to meet you}
\label{sec:greeting}
This is the first sentence in Section \ref{sec:greeting}.
According to some great mathematicians \cite{ExampleCitation}, it can be proved that
\begin{equation}
1 + 1 \neq -1. \tag{Amazing Lemma} \label{eq:astonishing_theorem}
\end{equation}
The \ref{eq:astonishing_theorem} has revolutionized mathematics.\footnote{Want to know a secret? This theorem is actually pretty trivial.}
\begin{thebibliography}{1}
\bibitem{ExampleCitation}
Audrey Author and Carrie Coauthor. 1999. \emph{Example citation}. Retrieved from \url{https://www.example.com}
\end{thebibliography}
\end{document}