Thursday, May 27, 2010

Mac OS X Skype Tab switch shortcuts

Since I had a hard time finding out what the command is for switching the tab in the conversation window, let it be known that it is Command+Shift+left/right Arrow

Monday, May 3, 2010

big/small delimiters fontsize

Ok this is old news but i am sick of googling it now.

Delimiters can be sized manually (i.e. not with \left \right) with \big \Big \bigg \Bigg. The sizing of these is adjusted (to the better when loading the amsmath package)

Non delimiters (and this includes Integrals and Sums) can be resized with \tiny
\scriptsize
\footnotesize
\small
\normalsize
(default)
\large
\Large
\LARGE
\huge
\Huge

Saturday, May 1, 2010

overlapping/embracing braces

I recently had trouble trying to tex this:



If you have some experience with latex you see the trouble with the overlapping here. It took a while and it's a load of patchwork, but it works beautifully.

\contraction{a_{n'} + \makebox[0pt][l]{$
\displaystyle{\cuntraction{\phantom{a_r(k) +
\overline\psi(x) \gamma^\mu \psi(x) A_\mu(x)}}}$}
a_r(k) + \overline\psi(x)} \gamma^\mu \makebox[0pt][l]
{$\displaystyle{\contraction{\phantom{\psi(x)
A_\mu(x) a^{+}_{n}}}}$} \psi(x) A_\mu(x) a^{+}_{n}
\ket{0}

It looks like this:


contraction was defined here and cuntraction is the same with an overbrace instead. To understand all ingredients review this pdf

The main idea is that makebox collapses the bounding box that latex uses to position items on a page without touching the content, so the under/overbrace will be displayed and dimensioned according to the lenght of its argument, which in turn won't be displayed because it's hidden via phantom. Since the bounding box is collapsed the following text will start as if there hadn't been any box.

PS:
I thought the above was complicated. Well i stand corrected, the following is plain ridiculous: