Latex xeCJK安装

kain posted @ 2012年12月17日 00:19 in c&c++ with tags linux , 2922 阅读

最近在小某某的感召下用起了shell编程,进而拷来了texlive,中文支持的时候出了些小小的问题,现在分享下简单的解决方法。

先是利用安装盘里的texlive的包install.sh到本地硬盘,做得貌似就是复制i386的工作?

简单的英文文档支持没有问题,为了支持中文

 

cp -r /usr/local/texlive/2012/texmf-dist/tex/xelatex/xecjk  /usr/local/texlive/texmf-local/tex/xelatex/ 中,

注意root权限

 

利用texlive中的命令/usr/local/texlive/2012/bin/i386-linux/mktexlsr 更新包信息

 

简单的测试程序如下:

1.tex

 

\documentclass[12pt]{article}
\usepackage{xeCJK}
\setCJKmainfont{AR PL UKai CN}
\begin{document}
这是测试要显示的内容
\end{document}
 
利用xelatex命令
xelatex 2.tex 生成2.pdf
Avatar_small
model-paper.com 说:
2023年4月16日 14:59

In certain cases your mail may be exposed to public that Modelpapers works on giving out better service in different forms and we do not sell or giveaway your personal information other than public info giving out by you. We are very conscious about mail spam model-paper.com and we try to protect every email as much as possible.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter