Wednesday, 21 July 2010

Conversion from word to lyx

  1. sudo apt-get install abiword
  2. open the word document in abiword
  3. save as latex (.tex) document (from "save file as type" select latex )
  4. Once you have .tex, open lyx and import the .tex into it

Sunday, 27 June 2010


  1. sudo apt-get install texlive-publishers
  2. Download and save on your Desktop the ACM .cls file from
  3. cd /usr/share/texmf-texlive/tex/latex/acmtrans
  4. sudo mv ~/Desktop/acm_proc_article-sp.cls acmtrans2e.cls
  5. sudo cp /usr/share/lyx/layouts/article.layout ~/.lyx/layouts/acmtrans2e.layout
  6. sudo gedit ~/.lyx/layouts/acmtrans2e.layout
  7. Change second line # \DeclareLaTeXClass{article} to # \DeclareLaTeXClass[acmtrans2e]{article (ACM)}
  8. sudo texhash
  9. In Lyx: Tools --> Reconfigure
  10. Restart Lyx
  11. In Lyx: Douments ---> Setting
In document class listing you must now see the "article (ACM)"
and right click on the added "BibTex Generated Bibliography" at the end of the lyx document and select settings and "Style" drop down has the "acm".

Tuesday, 1 June 2010

Installing leksah, gtk, gtk2hs, and glade on Ubuntu 10.04 LTS -the Lucid Lynx

  1. sudo apt-get install cabal-install
  2. sudo apt-get install libghc6-zlib-dev
  3. cabal update
  4. sudo cabal install cabal-install --global
  5. sudo apt-get install libgtk2.0-dev
  6. sudo apt-get install libgtksourceview2.0-dev
  7. sudo cabal install alex --global
  8. sudo cabal install happy --global
  9. sudo cabal install gtk2hs-buildtools --global
  10. sudo apt-get install libglade2-dev
  11. sudo cabal install glade --global
  12. sudo cabal install leksah --global

Friday, 21 May 2010

Configuring Lyx for including "Document Class" for "article (Springer LNCS)"

  1. Download
  2. Extract to or copy extracted folder llncs2e to /usr/share/texmf/tex/latex
  3. In terminal: sudo texhash
  4. In Lyx: Tools --> Reconfigure
  5. Restart Lyx
  6. In Lyx: Douments ---> Settings
In document class listing you must now see the "article (Springer LNCS)"

Monday, 22 March 2010

Cabalized gtk2hs: errors

Cabalized version available at

During installation of cairo-0.10.5:

[1 of 1] Compiling Main ( Setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cairo-0.10.5...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
cairo-0.10.5 failed during the configure step. The exception was:
exit: ExitFailure 1

Issues in the installation of darcs version of gtk2hs on windows

With ghc-6.10.3

$ autoreconf error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /mingw/bin/autoconf failed with exit status: 1

Redoing autoreconf works

$ ./configure

./configure: line 5002: syntax error near unexpected token `GLIB,glib-2.0'
./configure: line 5002: `PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.0.0 gobject-2.0 >=
2.0.0, , as_fn_error "'

With Haskell Platform (ghc-6.10.4)

There was an error saying that the ghc is not found in the included path. However, it was already there.

Thursday, 18 February 2010

eduroam configuration on Android

The Following are the steps for configuring eduroam WLAN on Android 1.6 (HTC-Magic).

(Note: The settings are applicable specially for TU Wien campus)

In Wi-Fi networks list press eduroam

Credential storage password: enter your wireless account password

Setting Preferences

EAP method: TTLS
Phase 2 authentication: MSCHAP2
CA certificate: N/A
Client certificate: N/A
Private key password: leave blank
Identity: your wireless account username (e.g.
Anonymous identity: leave blank
Wireless password: your wireless account password (same as credential storage password)