xaphirecipes

recipes for all the small things in life …

Flower

Archive for December, 2010

Barriers for floats

The placeins package defines \FloatBarrier to stop floats from floating into the next section etc. http://mirror.ctan.org/macros/latex/contrib/placeins/

Gnome customizing

compizconfig-settings-manager is the package that allows you to customize a couple of things. Amongst others I find ‘scale’ (under window management) very useful. The window picker is something similar to the F9 under mac.

useful bashrc entries

apart from the simple aliasis (for instance shortname=’ssh -CY server.address -l user’)

I just added some useful lines. This one is for my notes (which I put into files into month-folders and sync them with dropbox)

alias notes='cd ~/Dropbox/Notes/$(date +%Y)/$(date +%m)/'

The next one is for easily downloading bbc iplayer content:


function getiplayerProgNr() {
get-iplayer --get $@ --output "/media/B636-6BD9/Videos/" --modes=flashhigh,flashstd;
}

it took me 5 min to actually find out how to pass on arguments … (and no, you have to use functions, no way around it with an alias.) So now you can type getiplayerProgNr 123 and the function replaces $@ with 123.

Hope that helps

Acronym list with fitting alignment

A short quote from the acronym documentation:

The standard format of the acronym list is a \description environment. If
you pass an optional parameter to the acronym environment, the width of the
acronym-column will be fitted to the width of the given parameter (which should
be the longest acronym). For example, if HBCI is the longest acronym used, the
list should start with

\begin{acronym}[HBCI]

Openoffice.org round arrow

If you want to insert such an arrow into your document and you have the standard ubuntu gnome theme installed then look for this icon…

Looks completely different and took me quite a while to find out where to click…