需要 Hyperref 協助

需要 Hyperref 協助

我正在嘗試設定我的 hyperref 環境來複製本文的風格:https://iopscience.iop.org/article/10.1088/1126-6708/2000/04/018/pdf

但我似乎無法理解它,而且我找到的所有 hyperref 手冊都非常技術性且非說明性,你們能幫助我嗎?

答案1

這是您正在尋找的東西嗎?在您連結的範例中,除了腳註之外,似乎每種類型的連結周圍都有一個藍色虛線邊框。我盡力重新創建減去腳註的內容,我用 禁用了腳註hyperfootnotes=false

在下面的程式碼中pdfborderstyle, 中的兩個數字[3.5 2.5]分別控制每個破折號的長度以及破折號之間的間隙大小(以點為單位測量)。後面的數字W是以點為單位的虛線的寬度(厚度)。

這是由本答案中的程式碼產生的文件的編輯螢幕截圖。這是螢幕截圖中的文字:這是第 1.1 節中的第一句話。根據一些偉大的數學家的說法,可以證明一加一不等於負一(Amazing Lemma)。神奇引理徹底改變了數學。註腳:想知道秘密嗎?這個定理其實非常簡單。螢幕截圖底部有一個引用。引用章節編號、定理名稱和引文的文字均採用藍色並帶有虛線邊框。

\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}

相關內容