Linked Questions

4 votes
0 answers
695 views

I would like to make a deep copy of macro that I don't have control of, because various packages might change it. So I want to take the current meaning of the macro, patching it, but without changing ...
mafp's user avatar
  • 19.6k
0 votes
0 answers
31 views

For most of my purposes, I use \varepsilon, so I have a \renewcommand{\epsilon}{\varepsilon} in my personal .sty file. A recent homework problem in my numerical calculus class has meant that I would ...
Eric Williams's user avatar
403 votes
5 answers
170k views

Inspired by a question about \let and \def, I have some that essentially all boil down to asking What are the differences between \def and \newcommand? In particular, I wonder Is it possible to have ...
Michael Underwood's user avatar
84 votes
4 answers
23k views

When you write \edef\a{\b} \let\a\b the results are often identical. What is the difference between these two commands? When do they behave the same? When do they not? (The question isn't for me; ...
Will Robertson's user avatar
21 votes
5 answers
3k views

When I need to retrieve the value of a key in a macro, I use the key handlers .get and .store in. Here is what is written in the pgfkeys documentation: Key handler key /.get= macro Executes a \let ...
remjg's user avatar
  • 2,556
21 votes
2 answers
6k views

I'm beginning to learn LaTeX and I need some help with counters. My goal is to store the value a certain counter reaches at some point in the document and use it later. This is my attempt: \...
Eric's user avatar
  • 213
18 votes
1 answer
2k views

Here's an example of some code from LaTeX's \DeclareFontFamily: \def\reserved@a{#3} \global \expandafter\let\csname #1+#2\expandafter\endcsname \ifx \reserved@a\@empty \@empty \...
Will Robertson's user avatar
6 votes
2 answers
3k views

The Subfiles package makes compiling individual parts of a LaTex document convenient. The package works so that each subfile inherits the master preamble main.tex and the user is able to compile ...
hhh's user avatar
  • 8,923
8 votes
1 answer
2k views

I've overwritten the \bullet command using \renewcommand (which in hindsight, was a bad idea...). After using the new \bullet command for quite a while, I've realized that it behaves badly in certain ...
Roman Bruckner's user avatar
12 votes
2 answers
339 views

I have a collection of documents that I want to read into a LaTeX environment. The problem is that these documents are not exactly formatted the way I would like. I would like to create an ...
A.Ellett's user avatar
  • 51.7k
11 votes
2 answers
355 views

Let's say I'm working on a LaTeX document collaboratively with someone else. I have defined a bunch of command aliases (such as \true for \top and \false for \bot); their precise purpose doesn't ...
Lover of Structure's user avatar
7 votes
2 answers
448 views

I've got myself into a stupid situation: I am writing a document about entropy, and decided to use \H as a macro for \mathbf{H}. But then I had a problem because I had written the name Erd\H{o}s ...
gowers's user avatar
  • 171
7 votes
1 answer
981 views

Is there a merged command \maybenewcommand that is either \newcommand or \renewcommand, depending on the situation: if the command is not yet defined, use \newcommand and use \renewcommand otherwise. ...
Christian's user avatar
  • 525
1 vote
1 answer
3k views

I found this question Adding some common text to enumerated description lists to be the closest: \documentclass{scrbook} \usepackage{enumitem} \newcounter{descriptcount} \newlist{enumdescript}{...
user's user avatar
  • 4,995
4 votes
1 answer
1k views

I would like to ask, please, by which code it may be possible to change the rule belonging to a specific series of footnotes in reledmac. As I have learned from a previous answer, it is possible to ...
Jens Bakker's user avatar

15 30 50 per page