June 30th, 2011

## backref with natbib’s compress option

June 9th, 2011

in a latex document where the citations are handled by natbib and where the compress option is active, citations can end up as [1-4]. if the backref option is active, the items in the bibliography will show on which page they are cited. this does not work in the present case though: only references 1 and 4 will show which page they were cited on, 2 and 3 won’t. this can be fixed by changing natbib.sty:

 --- natbib.sty.old 2009-07-23 10:44:10.000000000 -0400 +++ natbib.sty 2009-11-01 17:07:53.309765500 -0500 @@ -408,6 +408,7 @@ \@ifnum{\NAT@nm=\@tempcnta}{% \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}% }{% + \Hy@backout{\@citeb\@extra@b@citeb}% \advance\@tempcnta by\@ne \@ifnum{\NAT@nm=\@tempcnta}{% \ifx\NAT@last@yr\relax 

## find latex symbols easily

June 9th, 2011

more easily than in http://mirrors.ctan.org/info/symbols/comprehensive/symbols-a4.pdf, latex symbols can be found at http://detexify.kirelabs.org/classify.html

## bash auto completion

May 31st, 2011

to get the final slash for symbolic links to directories, either press tab twice or add
 set mark-symlinked-directories on 
to the ~/.inputrc

## silent thunderbird

May 23rd, 2011

thunderbird displays a “sending message” notice which is notoriously in the way. it can be hidden in the config editor by setting the key mailnews.show_send_progress to false.

## silent ubuntu

May 16th, 2011

ubuntu natty 11.04 announces the login screen always with the annoying drums. they can be disabled with
 sudo -u gdm gconftool-2 --type=bool --set /desktop/gnome/sound/event_sounds false 

## bottom panel in unity

May 13th, 2011

in ubuntu natty 11.04 with unity, there is no bottom panel any more which shows the open windows etc. this can be changed following http://askubuntu.com/questions/39069/how-do-i-use-the-gnome-panel-in-unity:

• Run gnome-panel in the terminal (Don’t close the terminal until finished with the instructions)
• A Gnome Classic desktop will appear over unity
• Remove the top panel for we can use the Unity panel

## special characters in postscript

May 2nd, 2011

Warning: WP_Syntax::substituteToken(): Argument #1 (\$match) must be passed by reference, value given in /homepages/15/d790331382/htdocs/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

in the postscript files produced by FRIDA, there is a macro to insert special characters:

1 2 3 4 5 6 7 8 /grec { showif /Symbol findfont fontsize scalefont setfont } def /endgr { showif regularfont setfont } def

so for example a small omega is produced by {() grec (w) endgr ()}.

it can be used to print special characters, using this map

take value of column times ten (that’s what the x means) and add the number of the column. example: degree sign: 26*10+0=260.

then use: {() grec (\260) endgr ()}

## blog…

April 30th, 2011

i’ve decided to delete the main page and replace it with the blog — it tended to be incomplete, and i found myself not using it but the sidebar and the search, anyway.

i’ll use the opportunity to advertise the free software foundation newsletter. you might have guessed already: it’s free! 😉