Saturday, May 2, 2009

TeX: Sociology Bib Style

(1) Download asr.bst and ajs.bst into /usr/share/texmf-texlive/bibtex/bst/Sociology

(2) To update texmf information, run:
$ sudo texhash

* Matching bib styles by journal
- ASA bibstyle: ajs or asr
(ASR, AJS, SMR)
- APA bibstyle: apacite
(W&O, SSR)

Kile spell check

Install "ispell" using Synaptic Package Manager.

TeX: Kile 2.0 +KDVI inverse search

1) In Kile, choose Settings-> Configure Kile -> Build -> Latex -> General
In Options, change it to :
--src-specials -interaction=nonstopmode '%source'

2) In Kile, choose Settings-> Configure Kile -> Build -> ViewDVI
In Advanced, choose Run Embedded in Kile for Type. In General it should display "kviewerpart" for Library, "KViewPart" for Library Class, "dvi" for Options

3) In Kdvi, choose Settings-> Configure Kile -> DVI Specials
Choose Kile for Editor, for Shell Command:
kile %f --line %l

Thursday, April 23, 2009

Open stata-se in Emacs

The easiest way to open "stata-se" instead of "stata" in Emacs+ESS is making a symbolic link:

$ cd /usr/local/bin
$ sudo ln -s /usr/local/stata10/stata-se stata

"Meta+x stata" should open stata-se.

Tuesday, April 14, 2009

rename in linux

Rename all .TXT extension to .txt.

$ rename 's/\.TXT$/\.txt/' *.TXT

Rename all uppercase file names to lowercase file names

$ rename 'y/A-Z/a-z/' *

Wednesday, April 1, 2009

Wine: Beautiful Korean fonts

Non-unicode Korean fonts under the linux wine environment may look ugly.

To fix it, copy a font you like under "/usr/share/fonts/truetype/unfonts" to "/home/username/.wine/drive_c/windows/Fonts". That will change the ugly default font to a beautiful un-type font. I personally prefer UnDotum.

Sunday, March 29, 2009