Skip to main content
3 votes
Accepted

Supplying data to hyperref's pdfauthor: different command types give different results

Your problem is one of expansion, see for example What is "expansion"? and What is the difference between Fragile and Robust commands? When and why do we need \protect? for some info on that....
schtandard's user avatar
  • 15.4k
3 votes
Accepted

Hyperref doesn't work with filename including Chinese characters

"unicode" file names need some special support in the PDF and legacy hyperref doesn't have it. But if you use the new PDF management, that you load with \DocumentMetadata the needed key will ...
Ulrike Fischer's user avatar
2 votes

Theorems display error with hyperref

(too long for a comment, hence posted as an answer) I am unable to generate any problems with the OP's code on an up-to-date MacTeX2024 system, under pdfLaTeX, LuaLaTeX, or XeLaTeX. (I've streamlined ...
Mico's user avatar
  • 514k
2 votes
Accepted

How to capitalize ToC entries using \capitalisewords and \titlecontents

You can use etoc as a kind of a broker, I started from 28. Another compatibility mode in its documentation. \documentclass{report} \usepackage{lipsum, mfirstuc, titletoc} \usepackage[colorlinks = true]...
user691586's user avatar
  • 2,298
2 votes

How to capitalize ToC entries using \capitalisewords and \titlecontents

Well the argument the last command in the content declaration receives is not simple text. In the case of the chapter, it is for example \Hy@toclinkstart {\numberline {1}chapter title}\Hy@toclinkend ...
Ulrike Fischer's user avatar
2 votes
Accepted

Building a bidirectional index jump for the question-answering environment

You should use \refstepcounter for counters that you want to reference. With hyperref this also sets the anchor for links. For correct links you also must ensure that \theH<counter> is unique ...
Ulrike Fischer's user avatar
2 votes
Accepted

Problem with labels when there are multiple tex files

hyperref uses the section and equation number to create anchors. And if you reset the section manually to zero you get duplicate names and pdftex will ignore the second anchor. There is then a warning ...
Ulrike Fischer's user avatar
1 vote

Adding acknowledgments and abstract in PDF bookmarks and referring to them correctly

The second argument of \pdfbookmark is a label: it has to be unique! For the table of contents, I explicitly add a pagebreak to put the bookmark on the right page. \documentclass[12pt,a4paper,openany]{...
NBur's user avatar
  • 5,136
1 vote
Accepted

Remove parentheses in "(1)" from hyperlink

The idea is to simply redefine \footnote and \@makefntext for the bottom text. \documentclass{article} \usepackage[colorlinks]{hyperref} \makeatletter % From latex.ltx \def\footnote{\@ifnextchar[\@...
Gargantuar's user avatar
  • 1,241
1 vote

\pagestyle{fancy} from fancyhdr seems to break \label-\ref if \label happens to be placed close to the upper edge of a page

As I have noted in my comments, I think paragraph hooks in the main text shouldn't be processed by fancyhdr. So I am preparing a new version (4.3) of fancyhdr, with a fix that disables paragraph hooks ...
Pieter van Oostrum's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible