Quote formatting and hyperref package

I am using hyperref in my document. One of the things he does is bookmark my pdf based on the table of contents. Some section headings contain a link to a quote.

\section{Some title \citep{BibTeXkey}}

Bookmark label now looks like

Some title BibTeXkey

But I would like it to be

Some title (Author, year)

Same as in the text and table of contents. Thus, only bookmarks are confused.

I used the sequence pdflatex, bibtex, pdflatex, pdflatexto compile the document.

How to change the bookmark shortcut to use the same format as in the table of contents?

+3
source share
1 answer

, PDF, \texorpdfstring. (, ) , PDF-, .

\section{The section with \texorpdfstring{LaTeX symbols}{plain text version}}

" LaTeX", " ".

\section{Some title \texorpdfstring{\citep{BibTeXkey}}{(Author, year)}}

, , "(Author, year)" , , , (, , ), .

"(Author, year)" , \show, , \citep . , : , , aux, blg, brf bbl .

+5

Source: https://habr.com/ru/post/1715704/


All Articles