星期日, 十一月 22, 2009

Windows下安装texlive2009

下载

从[1]下载DVD压缩包,用最新版的7-zip[2]将texlive2009.iso.xz解压为texlive2009.iso。

安装

用虚拟光驱软件加载texlive2009.iso
“开始”->运行"cmd",切换到texlive2009根目录
运行./install-tl.bat -gui,进入图形界面配置安装。

安装中文字体

[6]中有adobe中文字体。一般来说不用安装,如果安装以后需要更新设置。
texhash
fc-cache -fv


gVim中设置为utf8

设置为utf8是为了在linux和windows中通用。在.vimrc中加入:
" === encoding ===
function! TexSetting()
set enc=utf-8
endfunction
au FileType tex,bib call TexSetting()

使用中文模板

[5]的CASthesis.cls中line 144,157,160有问题。会导致拷贝到Word时出现乱码。
修改如下:
144c144
<     \bf \songti \zihao{-4}
---
>     \bf\songti\zihao{-4}
157c157
<       \bf \songti \zihao{-1} \CAST@value@school \\
---
>       \bf\songti\zihao{-1} \CAST@value@school \\
160c160
<       \bf \heiti \zihao{3} \CASTunderline{~\CAST@value@title~}
---
>       \bf\heiti\zihao{3} \CASTunderline{~\CAST@value@title~}
加粗、字体、字号之间用空格隔开,就没有这个问题。

参考

3. http://research.mosuma.com/faq/howto/vim-utf8
4. TeX Live 2008 中文支持安装包, http://bbs.ctex.org/viewthread.php?tid=47299

没有评论: