Sunday, May 19, 2013

Inkscape + psfrag + latex

Inkscape 0.46 works nicely with psfrag and LaTeX. However, since version 0.47 it has a bug that hinders this. As a workaround I still use INKSCAPE 0.46 for WINDOWS running under WINE. In order to do this, I use the following macro, which I located into ~/bin:

#!/bin/bash
wine /opt/windows/inkscape/inkscape.exe "$*"

Saturday, April 27, 2013

How to install the "dict" dictionary

dict is a very powerful console dictionary for linux:

Installation:
Download libmaa from http://sourceforge.net/projects/dict/files/libmaa/
$ ./configure
$ make
$ make install


Download dictd from http://sourceforge.net/projects/dict/
$ ./configure
$ make
$ make install


Create the configuration file:
either /etc/dict.conf  or   ~/.dictrc with:

# This file is used to specify the dict servers to talk to.  See the
# CONFIGURATION section of dict(1) for the full syntax.
#
# A list of public dict servers is available at
#  http://luetzschena-stahmeln.de/dictd/index.php
# but one of the following should work.
#

server dict.org
server dict.trit.org
server dict.die.net



---------------------


 Some useful commands:
$ dict -D
List all available dictionaries in the servers listed in ~/.dictrc

$ dict -d deu-eng Haus
Searchs for Haus in the German-English dictionary

$ dict dict://dict.org/d house
Looks up a word using the server dict.org