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 <span id="8_nwp" style="width: auto; height: auto; float: none;"><a target=_blank id="8_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?c=news&cf=5&ch=0&di=128&fv=11&jk=d4075488539088f&k=iso&k0=iso&kdi0=0&luki=1&n=10&p=baidu&q=v77y4_cpr&rb=0&rs=1&seller_id=1&sid=8f0839854875400d&ssp2=1&stid=0&t=tpclicked3_hc&tu=u2102575&u=http%3A%2F%2Fwww%2Eylzx8%2Ecn%2Flinux%2Flinux%2Dunix%2F280361%2Ehtml&urlid=0" target="_blank" mpid="8" style="color: rgb(1, 70, 108); text-decoration: none;"><span style="color: rgb(0, 0, 255); width: auto; height: auto;">iso</span></a></span>9660 -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,新宋体:<span id="6_nwp" style="width: auto; height: auto; float: none;"><a target=_blank id="6_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?c=news&cf=5&ch=0&di=128&fv=11&jk=d4075488539088f&k=style&k0=style&kdi0=0&luki=7&n=10&p=baidu&q=v77y4_cpr&rb=0&rs=1&seller_id=1&sid=8f0839854875400d&ssp2=1&stid=0&t=tpclicked3_hc&tu=u2102575&u=http%3A%2F%2Fwww%2Eylzx8%2Ecn%2Flinux%2Flinux%2Dunix%2F280361%2Ehtml&urlid=0" target="_blank" mpid="6" style="color: rgb(1, 70, 108); text-decoration: none;"><span style="color: rgb(0, 0, 255); width: auto; height: auto;">style</span></a></span>=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,文泉驛等寬正黑,文泉驿等宽正黑:<span id="7_nwp" style="width: auto; height: auto; float: none;"><a target=_blank id="7_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?c=news&cf=5&ch=0&di=128&fv=11&jk=d4075488539088f&k=style&k0=style&kdi0=0&luki=7&n=10&p=baidu&q=v77y4_cpr&rb=0&rs=1&seller_id=1&sid=8f0839854875400d&ssp2=1&stid=0&t=tpclicked3_hc&tu=u2102575&u=http%3A%2F%2Fwww%2Eylzx8%2Ecn%2Flinux%2Flinux%2Dunix%2F280361%2Ehtml&urlid=0" target="_blank" mpid="7" style="color: rgb(1, 70, 108); text-decoration: none;"><span style="color: rgb(0, 0, 255); width: auto; height: auto;">style</span></a></span>=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 字体设置,默认为六种中易字体 % <span id="5_nwp" style="width: auto; height: auto; float: none;"><a target=_blank id="5_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?c=news&cf=5&ch=0&di=128&fv=11&jk=d4075488539088f&k=vim&k0=vim&kdi0=0&luki=9&n=10&p=baidu&q=v77y4_cpr&rb=0&rs=1&seller_id=1&sid=8f0839854875400d&ssp2=1&stid=0&t=tpclicked3_hc&tu=u2102575&u=http%3A%2F%2Fwww%2Eylzx8%2Ecn%2Flinux%2Flinux%2Dunix%2F280361%2Ehtml&urlid=0" target="_blank" mpid="5" style="color: rgb(1, 70, 108); text-decoration: none;"><span style="color: rgb(0, 0, 255); width: auto; height: auto;">vim</span></a></span>: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 字体设置,默认为六种中易字体 % <span id="4_nwp" style="width: auto; height: auto; float: none;"><a target=_blank id="4_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?c=news&cf=5&ch=0&di=128&fv=11&jk=d4075488539088f&k=vim&k0=vim&kdi0=0&luki=9&n=10&p=baidu&q=v77y4_cpr&rb=0&rs=1&seller_id=1&sid=8f0839854875400d&ssp2=1&stid=0&t=tpclicked3_hc&tu=u2102575&u=http%3A%2F%2Fwww%2Eylzx8%2Ecn%2Flinux%2Flinux%2Dunix%2F280361%2Ehtml&urlid=0" target="_blank" mpid="4" style="color: rgb(1, 70, 108); text-decoration: none;"><span style="color: rgb(0, 0, 255); width: auto; height: auto;">vim</span></a></span>: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