Linked Questions

6
votes
1answer
685 views

Why is \patchcmd not working when also using \@ifclassloaded? [duplicate]

Why do these two MWEs produce different effects? \documentclass{article} \usepackage{etoolbox} \makeatletter \def\aeloaded{Not loaded} \def\aechanged{Not changed} \patchcmd{\l@section} {#1\...
1
vote
0answers
36 views

patchcmd, #1 as hook, and AtEndPreamble [duplicate]

I'm trying to patch some bidi footnote commands (\@footnotetext, \@LTRfootnotetext, and \@RTLfootnotetext) in biblatex. The footnote patching commands in biblatex occur in an AtEndPreamble macro in ...
14
votes
1answer
916 views

Change format of hyperref generated PDF bookmarks

In a generic way, how can I change the format of bookmarks generated automatically by hyperref (or bookmark)? By generic, I mean the ability the customize the bookmark format for part, chapter, ...
10
votes
1answer
318 views

/ActualText in small cap hyperlinks

I'm using the frenchlinks option for hyperref, which due to solicitous care of XeLaTeX + Linux Libertine, gives bona fide small-caps links on the page. The problem is, when I cut and paste out of the ...
7
votes
2answers
166 views

Trouble with patchcmd and double #

I need to patch the following macro from gloss-greek.ldf (polyglossia): \def\greek@numbers{% \let\latin@alph\@alph% \let\latin@Alph\@Alph% \if@greek@numerals \def\greek@alph##1{\...
4
votes
1answer
225 views

Adding a string “Chapter” to selected chapter numbers in TOC

Any idea how to add a string "Chapter" to TOC to a selected positions in TOC? For now, TOC looks like this: Chapter without any number A Chapter without any number B 1. This is chapter 1. 2. This is ...
4
votes
1answer
321 views

Selecting a subset of the list of figures produced by \listoffigures?

I'd like to generate a table-of-contents style list of a hand-selected group of figures---that is, a subset of the list captured by \listoffigures. Although obviously I can open the .lof file itself,...
1
vote
1answer
358 views

Formating single entry on table of contents

How to format a single entry in the table of contents? For example, how to add some horizontal space to indent some specific line, including the section number? ps: I know that I can edit the toc ...
1
vote
1answer
233 views

Reset counter with starred sections as well (example using exsheets)

I am typesetting exercise/exam sheets with the “exsheets” package. It allows me to reset the question counter with every other counter step (e.g. with every section). Unfortunately this does not work ...
1
vote
1answer
202 views

Strip environment command in hyperref PDF meta data

When adding PDF meta data using hyperref you can also use certain LaTeX commands which are magically stripped away during the conversion into a PDF string. But this doesn't seem to work with ...