Feeds:
Posts

## LaTeX tip: Create a new symbol

Hi people.

If you write in LaTeX as much as I do, you could find this tip useful.

Since I’m a physicist, I work a lot with Fourier Transformations, which could carry an annoying factor of $2\pi$ in the denominator.

$\phi(x) = \int \frac{d^n x}{(2\pi)^n} e^{\imath p\cdot x}\tilde{\phi}(p).$

A notation that might be useful for reducing the typing is the use of the bar notion as in “hbar”, $\hbar = \frac{h}{2\pi}$.

Thus, I search for it, and finally got the following,

\newcommand{\dbar}{\ensuremath{\mathchar'26\mkern-12mu d}}

will define a command \dbar which allows us to write

$\phi(x) = \int {\mathchar'26\mkern-12mu d}^n x e^{\imath p\cdot x}\tilde{\phi}(p).$

Enjoy,

Dox