linux tex 中文,Linux-下TeXLive-2016的中文字体

查看系统的中文字体库

$ sudo fc-list :lang-zh

安装中文字体

第一步 建立一个字体目录:

$ sudo mkdir /usr/share/fonts/WinFonts

第二步 把中文字体复制到上述目录中,然后进行如下操作:

$ sudo chmod 644 # 赋予执行权限

$ sudo mkfontscale # 刷新字体缓存

$ sudo mkfontdir # 刷新字体缓存

$ sudo fc-cache -fsv # 刷新字体缓存

第三步 配置环境变量,在 ~/.bashrc 和 ~/.profile 文件结尾添加如下代码:

#自己为texlive配置的环境变量

PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH;

export PATH

MANPATH=/usr/local/texlive/2016/texmf-dist/doc/man:

$MANPATH; export MANPATH

INFOPATH=/usr/local/texlive/2016/texmf-dist/doc/info:

$INFOPATH; export INFOPATH

配置全局的环境变量,可在 /etc/manpath.config 文件的 # set up PATH to MANPATH mapping. 下添加:

MANPATH_MAP

/usr/local/texlive/2016/bin/x86_64-linux

/usr/local/texlive/2016/texmf-dist/doc/man

第四步 测试安装是否成功

askuyue@malegbasy:~$ tex --version

TeX 3.14159265 (TeX Live 2016)

kpathsea version 6.2.2

Copyright 2016 D.E. Knuth.

There is NO warranty. Redistribution of this software is

covered by the terms of both the TeX copyright and

the Lesser GNU General Public License.

For more information about these matters, see the file

named COPYING and the TeX source.

Primary author of TeX: D.E. Knuth.

第五步 XeTEX 和 LuaTEX 的系统字体配置

texlive-fontconfig.conf 文件复制到 /etc/fonts/conf.d/09-texlive.conf:

$ sudo cp

/usr/local/texlive/2016/texmf-var/fonts/conf/texlive-fontconfig.conf

/etc/fonts/conf.d/09-texlive.conf

刷新字体缓存

$ sudo fc-cache -fv

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值