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

learn more… | top users | synonyms

5
votes
1answer
91 views

How to patch a command from leipzig.sty

As shown in Issues with leipzig and glossaries used together, there is a problem when using the package leipzig with the glossaries package since the leipzig package relies on deprecated commands from ...
5
votes
1answer
62 views

biblatex: how to plagiarize a (book) entry type?

I'd like to provide a biblatex's entry type, bookreview, similar to the book one with the following differences: it supports an additional type=list,datatype=name field, reviewer (for the book's ...
1
vote
0answers
22 views

Biblatex \usepackage{xpatch} [duplicate]

In november i posted this question: @online bibliography biblatex The question was how to modify the bibliography to how i wanted it to look. I wanted the webpage reference to look like this: [#] ...
7
votes
1answer
106 views

Does LaTeX3 have something for patching (or appending code to) commands?

Item #12 of http://tex.stackexchange.com/a/148734/18401 suggests that LaTeX3 maybe has something for patching (or appending code to) commands, à la etoolbox or xpatch. Is it the case?
4
votes
1answer
45 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
68 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
58 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
167 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
385 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
75 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
190 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} ...
28
votes
2answers
1k 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
214 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
291 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
136 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
960 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 ...