参考网页:
点击(此处)折叠或打开
- documentclass[12pt,a4paper]{article}
- usepackage{fontspec,xunicode,xltxtra}
- usepackage{titlesec}
- usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry}
- titleformat{section}{Largesong}{thesection}{1em}{}
- XeTeXlinebreaklocale "zh"
- XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
- newfontfamilysong{SimSun}
- newfontfamilykai{KaiTi_GB2312}
- newfontfamilyhei{SimHei}
- newfontfamilywhei{WenQuanYi Zen Hei}
- newfontfamilyfsong{FangSong_GB2312}
- newfontfamilylishu{STLiti}
- setmainfont{SimSun}
- renewcommand{baselinestretch}{1.25}
- begin{document}
- title{whei XeTeX使用小结}
- author{fsong 何勃亮}
- date{kai2009年6月21日}
- maketitle
- section{简介}
- 以前使用CJK进行中文的排版,需要自己生成字体库,近日,出现了XeTeX,可以比较好的解决中文字体问题,不需要额外生成LaTeX字体库,直接使用计算机系统里的字体。
- section{字体列表}
- 本文使用了大量本机自带的字体。
- begin{table}[htbp]
- caption{字体列表}
- centering
- begin{tabular}{|l|c|r|}
- hline
- hei 字体 & hei 命令 & hei 字体效果 \
- hline
- kai 宋体 & verb+song+ & song 宋体 \
- kai 楷体 & verb+kai+ & kai 楷体 \
- kai 黑体 & verb+hei+ & hei 黑体 \
- kai 仿宋体 & verb+fsong+ & fsong 仿宋体 \
- kai 文泉驿黑体 & verb+whei+ & whei 文泉驿黑体 \
- kai 隶书 & verb+lishu+ & lishu 隶书 \
- hline
- end{tabular}
- end{table}
- end{document}