19 questions linked to/from Please tutor the usage of patchcmd and xpatch
31 views

### How to append to definition of a macro which has arguments? [duplicate]

I’ve been using \let\oldsomething\something\renewcommand*something{\oldsomething ...} in a couple places, but it’s tedious and I guess prone to errors if I were to try to redefine again with the same ...
17k views

### Remove comma from moderncv's \cventry

This image shows the excerpt of a CV produced with the moderncv document class: Notice that after the bold text there is a comma. This seems to be produced automatically. How can I stop this?
2k views

### Are commands defined by \newcommand[.][.]{.} robust?

This question is from the comments at the foot of Abbreviations for AM, PM (small caps) for use within \textbf. Readers will get the remaining gist from there. With \newcommand\cmd[2][0]{\def\y{#1}...
366 views

### How to disable paragraphs inside my environment with \let\par\relax?

I would like to disable the automatic paragraph inside my thesis abstract which is called resumo. On the question How to disable new paragraph at empty line? they said I could use \let\par\relax to ...
2k views

### \hspace before \section?

I would like to add a space before a section heading. I have tried: \hspace[*]{5pt}\setkomafont{section}{\fontsize{45}{40}\selectfont \fontspec{Mathilde}} unsuccessfully. I realise that Latex ...
763 views

### Place a footnote in an environment in the bottom of the page

I have this code: \documentclass[11pt]{book} %---------------------------------------------------------------------------------------- % VARIOUS REQUIRED PACKAGES AND CONFIGURATIONS %--------------...
997 views

### Patch \insertshorttitle in beamer

In this answer @cfr showed me how to preserve short title color in beamer while allowing hyperlinks to work. His solution was to modify the \insertshorttitle command (defined in beamerbasetitle.sty) ...
821 views

### Table caption not left aligned in revtex

I am currently writing an APS article and use: \documentclass[% reprint, amsmath,amssymb, aps,nofootinbib, ]{revtex4-1} % \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \...
634 views

### no page number on appendix divider page

I have found some links on here (for example No page number on \appendixpage) that explain how to remove the pagenumber from the divider appendix page, but how can I use this when using the appendices ...
458 views

495 views

### One paragraph style bibliography with numbers

I am writing a document that has a two page limit. I am trying to find a way to make it so that each citation in the bibliography does not start on a new line. This would be sufficient to fit into my ...
293 views

### Why \PackageWarning is giving me LaTeX Error: Missing \begin{document} while patching standard latex list environment?

I wrote this code I started doing after on How to set \topsep=0pt on the latex standard list implementation inside an environment? I find out I could not change the standard latex \list{} environment ...
264 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 ...