Using ThuThesis

June 14th, 2009

It is time to write final thesis. There is a LaTeX thesis template called thuthesis. It is good, but the document is not well maintained and the installation and configuration of latex with Chinese support to compile thuthesis template is quite complex and also time consuming. Luckily, we have this. Just download an iso and replace your latex (if you have installed one) with the version in the iso (by mounting or mirroring or extracting to some place) and then add the bin directory into your path, then the thuthesis will be able to compile correctly.

Tip 1: To modify the $PATH in linux, please modify .profile instead of .bashrc. This will make your $PATH modification applied to every program including GUI program (such as scite) after a reboot, instead of only interactive command line programs.

Tip 2: You do not really need to use make clean thesis to rebuild it every time. I personally prefer a script like this (utf-8 version only):

pdflatex main.tex
bibtex main
pdflatex main.tex
pdflatex main.tex

I named it as build.bat so that it is useful in both linux and window command line. You need to build it twice to make the content list updated correctly. To deal with the gbk verison, an additional command line gbk2uni main must be inserted between the two main.tex. (ref)

Tip 3: The blank line for signatures of the second page (acknowledgement page) are too long by default and the last one wraps to next line (probably because of font rendering in my ubuntu is different from windows). To fix this (for bachelor template), I modified thuthesis.cls at line 700 and line 701 (line number for thuthesis-4.5.1 utf-8 version). I replaced each \thu@underline in these two lines with \thu@underline[5em] (by default, it is 6em).

If you want to learn more on TeX, you may visit TeX board on newsmth.net. There are a bunch of skilful folks hanging around but they seemingly do not write easy-to-read documents and maintain them very often (this is a quite common problem for open-source and also closed-source tech-supporting…) It is somehow a shame that they do not make Chinese support for TeX a really good module or package or patch or something for LaTeX system. Although some people have brunched the CTeX and CTeXLive for easy installation and using, it is still a little bit complex to add Chinese support to an existing general LaTeX distribution to for example make it suitable for thuthesis. Maybe it is because thuthesis is using out-of-date packages (I do not like the CJK environment by the way, it makes me somehow feel wierd to use an environment before using any Chinese character). Anyway, it is just a layout and printing tool for me; why bother?

Leave a Reply