1.正文中文支持
- 1.安装 texlive
sudo apt-get install texlive-xetex
- 2.安装 pandoc
sudo apt-get install pandoc
- 3.安装 微软雅黑 字体 (msyh.ttf)
sudo cp msyh.ttf /usr/share/fonts sudo fc-cache -f -v
- 4.修改article.tplx
# @article.tplx add \usepackage{xeCJK} \setCJKmainfont{Microsoft YaHei} # match font name after \documentclass[11pt]{article}
2.标题中文支持
- 1.注销fontenc
%\usepackage[T1]{fontenc}
- 2.修改tittl生成规则
((* block title *))\title{((( resources.metadata.name | ascii_only | escape_latex )))} ((* endblock title *))
修改为
((* block title *))\title{((( resources.metadata.name | escape_latex )))}((* endblock title *))