{xpatch} is for questions addressing issues related to the generalization of the macro {patching} commands.

learn more… | top users | synonyms

4
votes
1answer
14 views

How to change the format of the “and” bibstring using xpatch?

When using biblatex's textcite command with a two-authored reference I want the "and" between them to be in italics. I managed to get the same for the "et al." \bibstring using the following code ...
2
votes
1answer
57 views

Patch \part to do something with optional and mandatory argument

I am basically trying to patch \part of scrreprt to do something with the optional argument (if present) or the mandatory argument instead. In the example below the short caption would be added in red ...
3
votes
0answers
26 views

Biblatex ibid in lowercase if prenote is present

I've defined my own biblatex style (see MWE) which uses citations in footnotes. I've patched the prenote command, because otherwise biblatex writes the prenote text in lowercase (note: I don't want to ...
2
votes
1answer
100 views

Answers package modification

I'm using answers package and 2 levels of enumerate environment. Sample: (a) Excercise 1a (b) Excercise 1b (a) Excercise 2a (b) Excercise 2b Inside the answers file I want to get the first level ...
2
votes
1answer
214 views

Problems installing xpatch

I need to install the xpatch package to make changes to my biblatex setup. The readme file in the install package simply says to run “latex xpatch.ins.” I've moved the xpatch folder (including ...
2
votes
0answers
64 views

Appendices looking like section AND subsections in the bookmarks

I am writing a thesis and i would like the appendices, which are declared as \chapter to be grouped under one chapter "Appendices" in the bookmarks, and then each appendix to appear as a section. The ...
9
votes
3answers
186 views

Writing TeX file name at the top of the processed document for article class

Consider the following MWE. \documentclass{article} \usepackage{textpos} \newcommand{\insertname}{% \begin{textblock}{2}(5,-0.5) \bfseries{\jobname.tex} \end{textblock} } \begin{document} ...
23
votes
2answers
683 views

Please tutor the usage of patchcmd and xpatch

I understand that the patchcmd package provides a command \patchcommand that can be used to add material at the beginning and/or end of the replacement text of an existing macro. It works for macros ...
17
votes
2answers
210 views

Pretending a package has been loaded

I am trying to use imakeidx and the regexpatch package in the same class. Since imakeidx depends on the xpatch package and xpatch provides the same commands (same names, improved implementation) as ...
3
votes
1answer
285 views

Patch beamerouterthemedefault.sty to remove mini slide on Beamer notes pages

In a previous question, I pointed out that the mini slides (thumbnails) inserted into Beamer notes pages cause replication of labels and broken hyperref links as a result (see comment 2 under ...
0
votes
1answer
132 views

Apparent Instability in REVTeX4 After Adding xpatch Package

This is a follow-up question to How can Acrobat features be controlled from within LaTeX? It seems that xpatch package makes REVTeX unstable and even appears to turn off some of its features. Thus, ...
3
votes
1answer
865 views

How to install the xpatch package in MiKTeX?

This is a follow up question to \nameref only shows reference as a red rectangle, no name in it. In the answers to the question cited @Werner suggested to have the package xpatch installed so that ...