Pinyo's Programming and Software Notes

Friday, October 27, 2006

LaTex Editors
(Oct 27, 2006)


I try to find some LaTex editors that probably sufficiently useable. WinEdt is good, but not free. TexnicCenter is free, but buggy. Now, I find another good one, texMaker. It is a free cross-platform editor downloadable from http://www.xm1math.net/texmaker/. It also features a UTF-8 editor, so we can type Thai in its editor. However, we need to configure MikTex ourselves to make our LaTex compiler able to handle Thai. texMaker can compile the whole document into HTML files as well. However, I still think that WinEdt is the best. DVI search and WinEdt's compilation and jumping to the last point are the most wanted feature indeed.

There are some other free goodies that I don't try it yet, for example, WinShell and LEd.

(Updated Nov 18, 2006)
วันนี้ทดลอง Thai MikTex Extension พบว่ามันก็ใช้ได้ดีอยู่หรอก แต่ไม่ค่อยสะดวกเรื่องการตัดคำ ขอสรุปผลการใช้งานก่อนละกัน
1. เราควรจะดาวน์โหลดตัว installer บนวินโดวส์มาจาก sourceforge เพื่อป้องกันความวุ่นวายต่างๆที่เราไม่อยากเจอ

2. ติดตั้งมันลงไปตามปรกติ เราลงไปในไดเรกทอรีที่ใกล้เคียงกับ MikTex ตัวติดตั้งมันจะทำการหา MikTex แล้วลงไฟล์ให้ถูกที่เอง

3. ต้องประกาศเรียกใช้แพ็กเกจภาษาไทยให้ถูกต้องตรงหัวเอกสาร \usepackage[english,thai]{babel} ซึ่งเราพบว่าบางที Tex compiler มันจะบ่นว่าต้องเรียกใช้ package ภาษาอังกฤษก่อน ไม่รู้เหมือนกันว่าทำไม แต่ถ้า compile ซ้ำก็จะหายไปเอง

4. พิมพ์ไทยไปตามที่อยากจะทำ ซึ่งงานนี้ก็นับว่าทำได้สะดวกดีใน texMaker เพราะมันพิมพ์ออกมาเป็นภาษาไทยบนจอภาพได้เลย

5. มันตัวคำไทยไม่ได้ทำให้การแสดงผลไม่สวยงามนัก เราจำเป็นที่จะต้องรันโปรแกรม swath ซึ่งจะแทรก script \wbr ให้ ทำได้ดังนี้ swath -f latex \lessthan testThaiLatex.tex \greater testSwath.tex
(\lessthan และ \greater คือเครื่องหมายน้อยกว่าและมากกว่าตามลำดับ)

6. compile เอกสาร testSwath.tex แทน ก็จะได้เอกสารภาษาไทยที่ตัดคำไทยได้สวยงาม

1 Comments:

  • WinEdt อ่านภาษาไทยไม่ได้ พิมพ์ภาษาไทยไปแล้วกลายเป็นภาษาต่างดาว อ่านไม่รู้เรื่อง แต่ run ออกมากลายเป็นภาษาไทย ต้องทำยังไงถึงจะทำให้ WinEdt อ่านไทยได้ครับ

    By Blogger Jo, at 12:55 AM  

Post a Comment

<< Home