先安装CTEX套装,再安装CTEX-Fonts套装:在安装完CTEX(full)套装的完整版之后,通过所有程序|CTeX|FontSetup安装CTEX-Fonts套装。
安装CTeX的同时会安装WinEdt,前者是免费的,但后者需要破解。
测试程序text.tex:
<span style="font-size:18px;">\documentclass[CJK]{cctart}
\begin{document}
中文测试文档。
\end{document}</span>
\documentclass{book} %book, report, letter ,article调用已有的模版
%\usepackage{amsmatch} %宏包
%导言区
\begin{document}
\title{This is my book}
\author{Wang Enlai}
\date{}
\maketitle
\tableofcontents %要便宜两遍才会显示目录
\mainmatter %目录以正文部分作为起始页
\part{elementary}
\chapter{introduction}
\section{first section}
\chapter{summary}
\part{advanced}
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. The $a^2+b^2=c^2$quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\% \$ \{...\} $\backslash$
$$a^2+b^2=c^2$$
\end{document}