Original artical url:
http://www.ylzx8.cn/linux/linux-unix/280361.html
手把手教你在Linux下安装LaTeX环境
LaTeX(LATEX,音译“拉泰赫”)是一种基于TeX的排版系统,由美国计算机学家莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天,甚至几小时内生成很多具有书籍质量的印刷品。
LaTeX在Windows、Linux、Mac OS上都有发行版:
操作系统 | 发行版 | 编辑器 |
Windows | MikTeX | TeXnicCenter、WinEdt |
Unix/Linux | TeX Live | Emacs、vim、Kile |
Mac OS | MacTeX | TeXShop |
#cd Downloads
#su
passwd:
# mount -t iso9660 -o loop texlive2012-20120701.iso /mnt/
mount: warning: /mnt/ seems to be mounted read-only.
#./install-tl
# mkdir /usr/share/fonts/winfonts/
# cp ~/Fonts/msyh.ttf /usr/share/fonts/winfonts/
# cp ~/Fonts/simfang.ttf /usr/share/fonts/winfonts/
# cp ~/Fonts/simhei.ttf /usr/share/fonts/winfonts/
# cp ~/Fonts/simkai.ttf /usr/share/fonts/winfonts/
# cp ~/Fonts/simsun.ttf /usr/share/fonts/winfonts/
# sudo chmod a+x /usr/share/fonts/winfonts/
# cd /usr/share/fonts/winfonts/
# mkfontscale
# mkfontdir
# fc-cache
# sudo fc-list :lang=zh-cn
NSimSun,新宋体:style=Regular
KaiTi,楷体:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
SimSun,宋体:style=RegularUnibit:style=Regular
WenQuanYi Zen Hei,文泉驛正黑,文泉驿正黑:style=Regular
SimHei,黑体:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
WenQuanYi Zen Hei Mono,文泉驛等寬正黑,文泉驿等宽正黑:style=Regular
WenQuanYi Zen Hei Sharp,文泉驛點陣正黑,文泉驿点阵正黑:style=Regular
# cat /usr/local/texlive/2012/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def
% ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体
% vim:ft=tex
\setCJKmainfont[BoldFont={SimHei},ItalicFont={[SIMKAI.TTF]}]
{SimSun}
\setCJKsansfont{SimHei}
\setCJKmonofont{[SIMFANG.TTF]}
\setCJKfamilyfont{zhsong}{SimSun}
\setCJKfamilyfont{zhhei}{SimHei}
\setCJKfamilyfont{zhkai}{[SIMKAI.TTF]}
\setCJKfamilyfont{zhfs}{[SIMFANG.TTF]}
% \setCJKfamilyfont{zhli}{LiSu}
% \setCJKfamilyfont{zhyou}{YouYuan}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
% \newcommand*{\lishu}{\CJKfamily{zhli}} % 隶书
% \newcommand*{\youyuan}{\CJKfamily{zhyou}} % 幼圆
\endinput
# cat /usr/local/texlive/2012/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def
% ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体
% vim:ft=tex
\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]
{SimSun}
\setCJKsansfont{SimHei}
\setCJKmonofont{[SIMFANG.TTF]}
\setCJKfamilyfont{zhsong}{SimSun}
\setCJKfamilyfont{zhhei}{SimHei}
\setCJKfamilyfont{zhkai}{KaiTi}
\setCJKfamilyfont{zhfs}{[SIMFANG.TTF]}
% \setCJKfamilyfont{zhli}{LiSu}
% \setCJKfamilyfont{zhyou}{YouYuan}
\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}} % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}} % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
% \newcommand*{\lishu}{\CJKfamily{zhli}} % 隶书
% \newcommand*{\youyuan}{\CJKfamily{zhyou}} % 幼圆
\endinput
【1】 http://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf
【2】 http://www.aboutlinux.info/2005/12/adding-windows-fonts-in-linux.html
【3】 http://hi.baidu.com/defeattroy/blog/item/5df1ffcac3348415be09e6de.html
【4】 http://learningloong.blog.163.com/blog/static/1623081242011731102219361/
【5】 http://forum.ubuntu.com.cn/viewtopic.php?f=35&t=350882
【6】http://blog.csdn.net/defeattroy/article/details/7581846