Linked Questions

35 votes
2 answers
6k views

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 do ...
user541686's user avatar
  • 10.2k
5 votes
1 answer
4k views

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 \!...
Kit's user avatar
  • 17.4k
6 votes
1 answer
3k views

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 ...
Uiy's user avatar
  • 6,260
6 votes
1 answer
522 views

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 \renewcommand{...
user3461126's user avatar
0 votes
1 answer
873 views

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 \renewcommand{...
niekas's user avatar
  • 509
1 vote
0 answers
131 views

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 ...
WobblyWindows's user avatar
0 votes
0 answers
48 views

So, I've been trying to renewcommand \alpha by assigning it parameters in Latex. This is what I have for my preamble and the body...(seen below). On line 12, I attempted to create such a "function", ...
Dwight Dinkins's user avatar
0 votes
0 answers
37 views

I have a document that frequently uses the \vec command from the amsmath package. I decided I wanted to make all the vectors boldfaced, so I added the following \renewcommand: \renewcommand{\vec}[1]{\...
VirtuallyRealistic's user avatar
102 votes
10 answers
16k views

Say I want to redefine the itemize environment, or make a modified version of it. I want to know how it is currently defined. Where do I find this information? If it's some particular package command, ...
Seamus's user avatar
  • 76.5k
89 votes
1 answer
5k views

Frequently I see users redefine macros using (for example) \let\oldmacro\macro% Store \macro in \oldmacro \renewcommand{\macro}{% % ...redefined \macro \oldmacro% } and other times they use \...
Werner's user avatar
  • 626k
21 votes
6 answers
10k views

The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using. \begin{...
william007's user avatar
  • 4,931
23 votes
2 answers
3k views

We often encounter multiple definitions of certain commands/macros. Then, we often get the error, e.g.: ! LaTeX Error: Command \P already defined. Or name \end... illegal, see p.192 of ...
BVPs's user avatar
  • 363
7 votes
4 answers
4k views

I'm currently using the book class and I'm using marginpar to cite sources. I would like the marginpar on right pages to be aligned left and the marginpar on left pages to be aligned right. Is there ...
wolf_math's user avatar
  • 357
8 votes
2 answers
1k views

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{...
Anton  Lioznov's user avatar
5 votes
3 answers
16k views

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 ...
Sam Zukoff's user avatar

15 30 50 per page