Linked Questions
20 questions linked to/from Please tutor the usage of patchcmd and xpatch
14
votes
4answers
19k 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?
13
votes
3answers
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}...
6
votes
1answer
301 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 ...
3
votes
1answer
1k 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) ...
3
votes
2answers
111 views
How to determine if a macro is used inside the argument of a sectioning command?
In order to further automatize a macro I have written, I would like to know if there is a possibility to determine if this macro is used inside the argument of a sectioning command or inside the text. ...
3
votes
1answer
707 views
A question about using a \renewcommand to adapt a package
This article is a sub-question of: Cross-referencing on 2 kinds of end-footnotes (separated and with different coloured numbers)
Hi,
I am trying to adapt a package called parnotes (which can be ...
2
votes
3answers
435 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 ...
2
votes
2answers
1k 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
%--------------...
2
votes
1answer
818 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 ...
2
votes
1answer
109 views
Automatically return list of all uses of a command, without repeats e.g. \compound using chemstyle
I'd like to automatically generate a comma separated list of all occurrences in my .tex file of a particular command.
Specifically, I want to ensure the correct numbering of chemical structures using ...
1
vote
2answers
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 ...
1
vote
1answer
1k 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}
\...
1
vote
2answers
718 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 ...
0
votes
1answer
443 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 ...
0
votes
2answers
177 views
Problem patching by appending to \footnote command. “Missing \endcsname inserted”
I want to test whether a macro is (a) outside or (b) inside a \footnote command, similar to what's asked in (i) How to test if I'm currently in a footnote or not, (ii) Detect whether I'm in a \...