Closed GeeLaw closed 3 weeks ago
Indeed, this does not seem to work with Babel. I had a look how Babel works and I propose a slightly different solution (see: 1308cb28004a6b60a09de624e800ea74f8f028a5).
\AtEndPreamble{%
\@ifpackageloaded{babel}{%
% Ensure the bookmark for the reference points to the section header
% Insert a PDF anchor into the beginning of \refname
% Add this to captionsenglish to avoid problems when babel is used
\addto\captionsenglish{%
\gdef\refname{\leavevmode\texorpdfstring{\vbox to 0pt{\vss\pdfdest name{references}XYZ\vskip\baselineskip}\relax\oldrefname}{\oldrefname}}%
}%
}{}%
}
The idea is to reuse the solution we have but to add this to Babel by adding to \captionsenglish
.
The downside is that we need to do this for other languages but since the journal is in English I don't expect an issue.
@GeeLaw can you test if this resolves your issue? If so, I will merge this change.
Fixed. See: 1308cb28004a6b60a09de624e800ea74f8f028a5
Package
babel
is listed as supported. From the current version ofiacrdoc.tex
, perform the following change:Run
The log file contains
and the PDF bookmark "References" will take the user to the top of the PDF, instead of the "References" section.
If
babel
is not used, the problem goes away.A workaround is to further make the following change: