23 questions linked to/from Can I redefine a command to contain itself?
5k views

### How to redefine a command properly to avoid recursive call to itself? [duplicate]

I'm trying to renew a command in terms of its old definition... something similar to this: \renewcommand{\vec}[1]{\vec{\mathbf{#1}}} But this seems to send the interpreter in an infinite loop. How ...
3k views

### Redefine a built-in math command [duplicate]

Possible Duplicate: Can I redefine a command to contain itself? I'm trying to redefine the \int command so that it will always do \int \!. So here's my attempt at that: \renewcommand{\int}{\int \...
2k views

### Redefine macro in terms of old one [duplicate]

202 views

### Simple macro for new # symbol [duplicate]

I was unsatisfied with how the # symbol looked in my document and had a look at this question. I tried to create a simple macro to replace # with \texttt{\#} I thought that a simple \...
330 views

### How to set default footnote linespacing? [duplicate]

How to set default footnote linespacing? Now for each footnote I have to write \footnote{\onehalfspacing ...} But I would like to set the line spacing once. I guess its possible to use \...
48 views

### can't renew math command '\exp', why? [duplicate]

In the preamble of the main.tex file I've written \renewcommand{\exp}[1]{ \exp \left( {#1} \right) } so that the math function \exp automatically includes the round brackets. In the file I wrote ...
400 views

### Environment decorators

I'm looking for a way to write a "decorator" (in Python terminology) or a "wrapper" for LaTeX environments: a way to give addition behaviour with save of the notation. For example, before every \begin{...
881 views

### Using the basic \approx symbol with MnSymbol

I want to use MnSymbol (to get various sorts of down arrows), but I don't like its \approx symbol. I'd like to use the basic one instead. I've tried using savesym (as below), but this still outputs ...
3k views

### Left-align the date for all cvitems

All contents (mostly dates) of the first argument of \cvitem should left-align in Austria - as explained to me in the career center. I want to redefine the command \cvitem (like in Can I redefine a ...
968 views

### Hyphens in mathmode

Whenever I write a hyphenated word inside \mathit or \mathbf or whatever ... \mathit{long-variable-name} ... I always intend for the hyphens to be hyphens, not minus signs. There is a webpage giving ...
639 views

### file ended while scanning use of \path

MWE: \documentclass{article} \usepackage[obeyspaces]{url} \usepackage{xcolor,letltxmacro,booktabs,longtable,tabu} \LetLtxMacro{\oldpath}{\path} \renewcommand{\path}[1]{\color{gray}{\oldpath{#1}}} \...
257 views

### Can this summation and zeta be created in LaTeX?

Can the above \zeta and \sum symbol be produced exactly in latex? If yes what package to use? Kindly help. Thanks. EDIT: This is not a duplicate. I am looking for a math typeface which gives ...
375 views

### Change colour of italics font for the whole document

I would like to see the following in my latex file: once I use the \textit{...} command, I would like to see that this text does not only get the italics font, but also gets the colour blue. I want to ...