Things to install on your fresh laptop

sudo apt-get install texlive-lang-spanish

sudo apt-get install python-setuptools

sudo apt-get install aspell aspell-es



inkscape + latex support (tex text plugin)
Download the latest version of textext from here. At the time of this writting, the latest version is textext-0.4.4.tar.gz.

Extract the content:

auraham@roku:~/Downloads$ tar xzvf textext-0.4.4.tar.gz

Copy these files to inkscape extensions directory:
auraham@roku:~/Downloads$ cp textext.* ~/.config/inkscape/extensions/

Install pstoedit:

auraham@roku:~/Downloads$ sudo apt-get install pstoedit

Restart inkscape. Textext will appear in the menu Extension/Tex Text. Before using this option, you need to save this ini template (template.ini or whatever you want):


Now, run tex text plugin. In the Preamble file option, select template.ini. Then, you will be able to write equations using latex syntax.


my touhpad is too slow (not so sensitive)!

tl;dr: use synclient to setup your touchpad instead of Mouse & Touchpad options on System Settings.

After installing Ubuntu 15.04 on my new HP 240, my first reaction was “well, my touchpad sucks, it is too slow”. But, what I tried to say was “it is not sensitive enough”. I use my touchpad (and probably you too with the tip of my finger. But, in order to use my new laptop, I need to use almost my whole fingertip! So, after googling for a while, I found this post with the solution: synclient. This utility enable us to configure our touchpad in a simple way. There is a lot of options to set up, but in order to solve this problem, you only need to change FingerLow and FingerHigh. To know what is your current configuration, execute:

synclient | grep FingerLow
synclient | grep FingerHigh

In order to change these values, execute:

synclient FingerLow=8 && synclient FingerHigh=10

Higher values implies less sensitivity. Finally, to make this change persisntent after rebooting, do the following:

cd /usr/share/X11/xorg.conf.d/
sudo cp 50-synaptics.conf 50-synaptics.conf.bak
sudo vim 50-synaptics.conf

And add “FingerLow” and “FingerHigh” in the corresponding block as follows:

Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
# added
Option "FingerLow" "8"
Option "FingerHigh" "10"

It is possible that the file


does not even exist on your computer. In this case, you can create from scratch. More info on Ian’s blog.

undefinedresource on ghostscript

TL;DR: Use ghostscript 9.05 instead of newer versions to use dvipdf

Today, I was trying to compile a DVI file with dvipdf, but I get this error:

Error: /undefinedresource in resourcestatus
Operand stack:
false ct_StyleDicts --dict:0/4(L)-- Adobe-Japan1 --dict:0/4(L)-- Serif HeiseiMin-W3-83pv-RKSJ-H Font HeiseiMin-W3 CIDFont
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1967 1 3 %oparray_pop 1966 1 3 %oparray_pop 1950 1 3 %oparray_pop 1836 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- 1915 10 11 %oparray_pop
Dictionary stack:
--dict:1185/1684(ro)(G)-- --dict:0/20(G)-- --dict:85/200(L)-- --dict:124/300(L)-- --dict:60/200(L)-- --dict:57/75(L)-- --dict:2/10(L)-- --dict:39/70(L)-- --dict:0/4(L)-- --dict:0/4(L)-- --dict:20/27(ro)(G)-- --dict:20/26(ro)(G)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.15: Unrecoverable error, exit code 1

After trying to figure out what just happen, I remember that this DVI was correctly renderred on other PC, using ghostscript (GS) 9.05. So, in order to solve this issue, you need to install a previous version of GS. In this case, I will use 9.05:

1. Download
2. Extract and install

tar xzvf ghostscript-9.05.tar.gz
cd ghostscript-9.05
sudo make install

In order to check  the GS version, type man gs and go to the end of the man pages. You should see 9.05 in the bottom of the man pages.

As far as I know, this issue is due to the EPS images in your document. In my case, I have used two EPS formats (you can check it using file image.eps command on linux):

1 Fig3.eps: PostScript document text conforming DSC level 3.0, type EPS
2 Fig4.eps: DOS EPS Binary File Postscript starts at byte 32 length 255343 TIFF starts at byte 255375 length 27871

Previous versions of GS can handle both EPS formats. However, newer version can handle only the first format.

More info:

Error en backends en matplotlib


_tkinter.TclError: no display name and no $DISPLAY environment variable

(Posible) Solución
Probablemente utilices el backend TkAgg. Como mencionan en , la mejor solución es cambiar el backend. A pesar de que es posible hacerlo desde código (usando matplotlob.use('Agg')), es más práctico definirlo en .matplotlib/matplolibrc de la siguiente manera:


# the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg
# MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template
# You can also deploy your own backend outside of matplotlib by
# referring to the module name (which must be in the PYTHONPATH) as
# 'module://my_backend'
#backend      : TkAgg
backend      : Agg