|
- \documentclass[a4paper]{book}
- \usepackage{xltxtra,fontspec,xunicode}
- \usepackage[slantfont,boldfont]{xeCJK}
- % 公式中直接使用中文,不用加\text{}
- \xeCJKsetup{CJKmath=true}
- \punctstyle{kaiming}
- \usepackage{lipsum}
- \setCJKmainfont{WenQuanYi Micro Hei}
- \setCJKmonofont{WenQuanYi Micro Hei Mono}
- \setmainfont{Latin Modern Roman}
- \setmonofont{DejaVu Sans Mono}
- \setsansfont{DejaVu Sans}
- \XeTeXlinebreaklocale "zh"
- \XeTeXlinebreakskip = 0pt plus 1pt
- \usepackage{indentfirst}
- \setlength{\parindent}{2em}
- \usepackage[top=0.5in,bottom=0.5in,left=0.5in,right=0.5in]{geometry}
- %手机页面
- % \geometry{paperwidth=6cm, paperheight=11cm, width=5.0cm, height=9.5cm, left=0.5cm, right=0.5cm}
- \usepackage[small,center,pagestyles]{titlesec}
- \titleformat{\chapter}[hang]{\Large\bfseries}{\chaptername}{1em}{}
- \renewcommand{\chaptername}{}
- %section 不加编号
- \setcounter{secnumdepth}{0}
- \renewcommand{\contentsname}{目录}
- \usepackage[pdfencoding=auto,psdextra,colorlinks,linkcolor=red,anchorcolor=blue,citecolor=blue]{hyperref}
- \newCJKfontfamily\spz{TH-Tshyn-P1}
- \begin{document}
- \frontmatter
- \tableofcontents
- \addcontentsline{toc}{section}{目录}
- \mainmatter
- 有橐驼一,{\spz 𰏀}腹跪足,儑耳齝口。
- \end{document}
复制代码
然后用xelatex编译,就生成了。中间的内容简略了,只保留了生僻字的部分。
只是生僻字没那么好看,一眼就看出不一样:
|
|