10 questions linked to/from Patching arguments inside a macro
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\...
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 ...
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, ...
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 ...
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{\...
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 ...
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,...
358 views

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 ...