In my current document I have quite a lot \section commands containing \cite commands. Using hyperref or bookmark (as shown in the mwe below), the pdf bookmarks just print the corresponding key rather than the number.
Output: chapter titleFirst
Desired output: chapter title [1]
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{First,
author = {First, A.},
journal = {Journal},
pages = {1762--1776},
volume = {27},
year = {2017}
}
\end{filecontents*}
\documentclass{scrreprt}
\usepackage{hyperref}
\usepackage{bookmark}
\usepackage[style=numeric]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{chapter title\cite{First}}
\cite{First}
\end{document}
As the \cite command is not expandable, the desired output is not obtained. Is there instead any possibility to get access to the counter that corresponds to the key, so that one can use the \texorpdfstring method to print the number to the pdf bookmarks while using the normal \cite command in the .tex file?
Finally, I as well found the following possibility (by egreg) that ensures, that the keys are not printed in the bookmarks, but as stated above, I would prefer to have the numbers in the bookmarks as well.
\makeatletter
\pdfstringdefDisableCommands{\let\cite\@gobble}
\makeatother
