Latex 是专业的表现,不只是表现复杂,操作起来好维护,还有更多理由需要我们慢慢体会。关于Latex的前世今生有多的故事,这里是个简介。
http://zh.wikipedia.org/wiki/LaTeX
步骤:
1)下载 CTeXLive2009-100414.iso
地址:http://thinfilm.ustc.edu.cn/~liangzi/software/CTeXlive/
2)将 iso文件挂载到 /mnt
sudo mount -o loop ~/CTexLive2009-100414.iso /mnt
liufeng@ubuntu:~$ sudo mount -o loop /media/FpxBackUpDiskI/XeLatex2012June/CTeXLive2009-100414.iso /mnt
liufeng@ubuntu:~$ cd /mnt
liufeng@ubuntu:/mnt$
3) liufeng@ubuntu:/mnt$ ls
CTeXLive2009.url squashfs_recovery_CTeXLive2009.squashfsv4_17104
CTeXLive_ChangeLog.txt test
CTeXLive_init.bat texlive2009-update.txt
current texmf-local
Documents TeXworks!.exe
LaTeXIDE tl-portable.bat
LaTeX IDE!.exe tl-portable.sh
quit tools
readme.txt update
Setup.exe WinEdt
Setup.sh WinEdt!.exe
Source
liufeng@ubuntu:/mnt$
4) 原来装过Texlive 可以用新立德去掉(未试过)
运行上述脚步 ./Setup.sh 即可 (./ 是本目录下运行程序的基本方式,.表示本子区)
5)按其要求 做好 source 的工作;
6) 制作自己的中文系统文件,放到 /usr/share/fonts/truetype/myfonts 中,建立自己的myfonts 文件夹放入各种字体文件(可以用windows 里的字体,Windows->fonts-->各种特定的文件,可以见下面的介绍
http://hi.baidu.com/wang_song85/blog/item/cf8606c155bb20db38db493b.html
7)用测试模板,xelatex example.tex
\documentclass[12pt]{article} \usepackage[cm-default]{fontspec} \usepackage{xunicode} \usepackage{amsmath} \title{\LaTeX} \author{} \date{} \begin{document} \maketitle \LaTeX{} is a document preparation system for the \TeX{} typesetting program. It offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout, bibliographies, and much more. \LaTeX{} was originally written in 1984 by Leslie Lamport and has become the dominant method for using \TeX; few people write in plain \TeX{} anymore. The current version is \LaTeXe. \setmainfont[BoldFont=Adobe Heiti Std]{SimSun} 這是一個測試。 \\ \textbf{測試環境}:XeTeX TeXLive2008 \\ \begin{align} E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align} \end{document}
编译上述文件可以通过emacs 的shell模式建立,Alt X ---->shell
xelatex example.tex
https://wiki.freebsdchina.org/doc/x/xelatex