添加书签以供参考

添加书签以供参考

我有以下简单的代码

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Hussein Eid}
\begin{document}

\section{Section A}
This is section one 

\section{Section B}
This is section two

\begin{thebibliography}{3}
\bibitem{adnan}
  A. Tercan and C.C. Yucel: \textit{Module Theory, Extending Module and 
  Generalization} (Birkhäuser Basel, Basel, 2016).
\end{thebibliography}
\end{document}

我需要在 .pdf 文件中为“参考文献”部分添加书签,如下图所示: 在此处输入图片描述

我怎样才能实现这个目标?!提前致谢。

答案1

好吧,我找到了答案:

\documentclass[10pt,a4paper]{article}
\usepackage[bookmarks]{hyperref}
\begin{document}

\section{Section A}
This is section one 

\section{Section B}
This is section two

\begin{thebibliography}{3}
% To add a bookmark for the references in the .pdf file
\addcontentsline{toc}{section}{\refname}
\bibitem{adnan}
  A. Tercan and C.C. Yucel: \textit{Module Theory, Extending Module and 
  Generalization} (Birkhäuser Basel, Basel, 2016).
\end{thebibliography}
\end{document}

相关内容