Linked Questions

30
votes
2answers
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 ...
3
votes
1answer
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 \...
5
votes
1answer
2k views

Redefine macro in terms of old one [duplicate]

Possible Duplicate: Can I redefine a command to contain itself? How can I redefine the same macro that uses the original macro? \newcommand{\macro}{zzz} \renewcommand{\macro}{xyz\macro} (this ...
6
votes
1answer
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 \...
0
votes
1answer
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 \...
1
vote
0answers
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 ...
8
votes
2answers
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{...
5
votes
3answers
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 ...
5
votes
2answers
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 ...
4
votes
2answers
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 ...
3
votes
1answer
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}}} \...
0
votes
1answer
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 ...
2
votes
2answers
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 ...
3
votes
2answers
261 views

tabu and tabularx compatibility - for htlatex, tex4ht and migration between tabu and tabularx

Is it possible to renew the tabularx environment so that it will take the tabularx style parameters? Or the other way around? \begin{tabularx}{\textwidth}{ ... } % ... \end{tabularx} \begin{tabu} to ...
3
votes
1answer
168 views

Patching a command with an optional argument or declared with \DeclareRobustCommand

To re-define a command to contain itself (patching in TeX parlance) you usually use \let. This answer by @egreg says: Never use \let on commands defined with \DeclareRobustCommand or commands ...

15 30 50 per page