%% %% This is file `zhmCJK-test.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% zhmCJK.dtx (with options: `test') %% %% This is a generated file. %% %% Copyright (C) 2012--2016 by Leo Liu %% -------------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% \documentclass[12pt,a4paper]{article} \usepackage{zhmCJK} \setCJKmainfont{simsun.ttc}[BoldFont=simhei.ttf,ItalicFont=simkai.ttf] \setCJKsansfont{simhei.ttf}[AutoFakeBold=0] \setCJKmonofont{simfang.ttf}[AutoFakeSlant] \setCJKfamilyfont{xinwei}{STXINWEI.TTF} \title{\bfseries 一个华丽的 zhmCJK 测试} \author{Leo Liu} \date{2016 年 11 月 23 日} \begin{document} \maketitle 正文是宋体字,\textbf{加粗变成黑体},\textit{意大利体变成楷体}。 \textsf{这是黑体字,\textbf{禁用自动加粗},\textsl{默认不自动倾斜}} \texttt{这是仿宋字,\textbf{默认自动加粗},\textsl{打开自动倾斜}} {\CJKfamily{xinwei}还有华文新魏} \end{document}