Skip to content

Commit

Permalink
Merge pull request #243 from IACR/bookmarktoreference
Browse files Browse the repository at this point in the history
ToC entry points to reference section header
  • Loading branch information
jwbos authored Mar 25, 2024
2 parents ca71b4e + 90a554d commit 33851cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 10 additions & 2 deletions iacrcc/iacrcc.cls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\def\fileversion{0.61}
\def\fileversion{0.62}
\def\filedate{2024/03/24}

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
Expand Down Expand Up @@ -904,7 +904,15 @@
\gdef\@IACR@docdate@defined{1}%
}
\apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc}{section}{\refname}}{}{}
% Ensure the bookmark for the reference points to the section header
% Insert a PDF anchor into the beginning of \refname
\let\oldrefname\refname%
\def\refname{\texorpdfstring{\vbox to 0pt{\vss\pdfdest name{references}XYZ\vskip\baselineskip}\relax\oldrefname}{\oldrefname}}%
\apptocmd{\thebibliography}{%
\def\@currentHref{references}\relax%
\addcontentsline{toc}{section}{References}%
}{}{}
% if the author decides to use biblatex, then we pass options for the style to enforce
% consistent look and feel.
Expand Down
Binary file modified iacrcc/iacrdoc.pdf
Binary file not shown.
3 changes: 1 addition & 2 deletions iacrcc/iacrdoc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
\def\BibLaTeX{Bib\LaTeX}

\title[running = {The iacrcc class},
subtitle = {iacrcc LaTeX Class Documentation (v0.61)}
subtitle = {iacrcc LaTeX Class Documentation (v0.62)}
]{How to Use the IACR Communications in Cryptology Class}

\genericfootnote{This is a generic footnote produced with \cmd[...]{genericfootnote}.}
Expand Down Expand Up @@ -559,6 +559,5 @@ \section{Further information}
documentation} is useful for learning how to typeset mathematics.
\end{itemize}

\renewcommand{\refname}{Sample References}
\bibliography{biblio}
\end{document}

0 comments on commit 33851cf

Please sign in to comment.