In light of the popularity of my post entitled Top LaTeX Mistakes, I thought it might be nice to list some helpful commands that make typesetting quicker. If you are not familiar with defining commands, you would define them in your preamble as follows: newcommand{COMMANDNAME}[Number of expected arguments]{Command Info}
For example, you could use newcommand{bb}[1]{mathbb{#1}}. This command allows you to type bb{R}$ to make a blackboard bold R () rather than mathbb{R}.
Below are my favorite commands.
- bb{} – Explained above. You can also define a command R, N, Z, Q, etc. to make these letters blackboard bold.
- newcommand{ip}[1]{langle #1 rangle} – For example, ip{v,w} would produce .
- newcommand{bignorm}[1]{left| #1 right|} – This will allow you to type bignorm{dfrac{a}{b}} to produce . Notice that similar commands can be defined for inner products, absolute values, curly brackets, square brackets, parentheses, etc.
- newcommand{dint}[4]{displaystyleint_{#1}^{#2} ! #3 , operatorname{d} ! #4} – This will allow you to type dint{a}{b}{f(x)}{x} to produce .
What commands do you use?