You are on page 1of 17

ctex

ctex.org
v1.02

2010/10/17

LAT

ctex
EX CCT CJK xeCJK
LATEX ctex LATEX
ctex CCT CJK xeCJK
ctexart.clsctexrep.clsctexbook.cls ctex.styctexcap.sty
ctex ctex.org

2.1

CJK xeCJK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2

CCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.1

. . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.2

ctexcap.sty . . . . . . . . . . . . . . . . . .

2.3.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.5

CCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.6

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.7

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3.8

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.4.1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.4.2

. . . . . . . . . . . . . . . . . . . . . . . . .

http://www.ctex.org

2.4.3
2.5

2.6

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.5.1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.5.2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2.5.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2.5.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

2.5.5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

15

17

cjkbook.cls
GB.cap
2003 doc
docstrip 2007 oseen
ctex UTF-8 ctexutf8 2009 5
Google Code ctex-kit 1 ctex
XeTEX ctex.org v0.9
doc docstrip

Knuth TEX
TEX LATEX CJK
LATEX

LATEX ctex
ctex.org

ctex ctexart.clsctexrep.clsctexbook.cls ctex.sty


ctexcap.sty ctex.sty
ctexcap.sty ctex.sty LATEX
ctexart.cls ctexrep.cls
ctexbook.cls ctex.styctexcap.sty
ctex.styctexcap.sty

1 http://code.google.com/p/ctex-kit/

XeLATEX ctex.tex
ctex

ctex ctex ctexartctexrep


ctexbook ctex.sty
ctexcap.sty

2.1

CJK xeCJK

ctex ctex TEX CJK


xeCJK
ctex \begin{document} \end{document} CJK
CJK CJK \begin{document} \end{document}

1
\documentclass{ctexart}
\begin{document}

\end{document}

2
\documentclass{article}
\usepackage{ctex}
\begin{document}

\end{document}

2.2

CCT
CCT

ctex CCT ctex CCT


CCT CJK CCT
CCT CCTfont
3CJK
\documentclass[CCT]{ctexart}
\begin{document}

\end{document}

2CCT
\documentclass[CCT,CCTfont]{ctexart}
\begin{document}

\end{document}

2.3

2.3.1 2.3.2
2.3.1

ctexart ctexrep
ctexbook

cs4size
c5size ctex
2.3.2

ctexcap.sty

ctexcap.sty
sub3section \paragraph section \subparagraph
\paragraph
sub4section \paragraph \subparagraph section
2.3.3

ctex
GBK GBK ctex
UTF8 UTF-8
XeTEX UTF-8
GBK

2.3.4


TEX
ctexfonts.cfg
nofonts
winfonts Windows
XeTEX
ctex

adobefonts xeCJK Adobe CJK


XeTEX winfonts
zhmap winfonts zhmetrics
ttf ctex
nozhmap winfonts
Type1
2.3.5

CCT


CJK xeCJK
CCT CCT CJK
CCTfont CCT CCT
2.3.6

cap ctexcap.cfg
ctex.sty ctex

nocap
punct ctex
nopunct

space CJK

%

\CTEXnospace nospace

nospace CJK CJK* CJK



\CTEXspace
space ctex
indent
ctex
noindent
2.3.7

fancyhdr fancyhdr fancyhdr


hyperref fancyhdr
hyperref
fntef CJKfntef CCTfntef CJKfntef
CCTfntef
2.3.8

ctex GBK zhmap nospace cap punct indentctex


GBK zhmap nospace cap punct indent c5size

2.4

ctex
CJK CCT CCT

2.4.1

CJK

\songti
\heiti
\fangsong
\kaishu
\lishu
\youyuan

\songtiCJK \CJKfamily{song}
\heitiCJK \CJKfamily{hei}
\fangsongCJK \CJKfamily{fs}
\kaishuCJK \CJKfamily{kai}
\lishuCJK \CJKfamily{li}
\youyuanCJK \CJKfamily{you}
TEX CTEX
CJK

2.3.4
CCT CCT
CCT CJK

2.4.2
\zihao

\zihao{}\zihao{3}16

-0

-4

-1

-5

-2

-6

-3

\ziju

\ziju{}
\ziju{5} 5 \ziju{0.5}

\ccwd

\ccwd

\CTEXindent

\CTEXnoindent
\CTEXsetfont

\CTEXsetfont

2.4.3

\CTEXnumber

CJK \CJKnumber LATEX


\CJKnumber
PDF
\CTEXnumber
\CTEXnumber{result}{number }
result TEX
\CTEXnumber{\test}{100002005}

\test

\CTEXdigits

\CTEXdigits \CTEXnumber CJK \CJKdigits


\CTEXnumber

\CTEXdigits{result}{number }
result TEX
\CTEXdigits{\test}{100002005}
\test

\chinese

\chinese
\roman\Roman
\chinese{counter }
counter LATEX counter
\newcounter
sectionfigure

\Chinese

ctex \setcounter, \stepcounter \addtocounter \CTEXcounter{counter }


\chinese

\chinese \CTEXcounter ctex \Chinese


\Chinese{page}
\section

2.5
\CTEXoptions

ctex \CTEXoptions
\CTEXoptions[key1 =val1 , key2 =val2 , ...]

key1 , key2 val1 , val2

\CTEXsetup

\CTEXsetup \CTEXoptions

\CTEXsetup[key1 =val1 , key2 =val2 , ...]{type}


type part, chapter, section, subsection, subsubsection,
paragraph, subparagraph key1 , key2 name, number, format,
nameformat, numberformat, aftername, titleformat val1 , val2

v0.7 \begin{document}
v0.7

2.5.1

\CTEXsetup \CTEXsetup

v0.7 cap

\begin{document} ctexcap.cfg
\begin{document}
v0.7 ctexcap.cfg

name={prename,postname}

\CTEXsetup[name={,}]{section}
section 1

part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap
{,}
{,}

nocap
{Part\space,}
{Chapter\space,}
{,}
{,}
{,}
{,}
{,}

number={number }
\CTEXsetup[number={\roman{section}}]{section}
section
\chinese{counter }: , , , ...
\arabic{counter }: 1, 2, 3, ...
\roman{counter }: i, ii, iii, ...
\Roman{counter }: I, II, III, ...
\alph{counter }: a, b, c, ...
\Alph{counter }: A, B, C, ...

10

part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap
{\chinese{part}}
{\chinese{chapter}}

nocap
{\Roman{part}}
{\arabic{chapter}}
{\thesection}
{\thesubsection}
{\thesubsubsection}
{\theparagraph}
{\thesubparagraph}

format={format}

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap

nocap

{\centering}
{\centering}
{\centering}
{\Large\bfseries\centering}

{\raggedright}
{\centering}
{\raggedright}
{\Large\bfseries}
{\large\bfseries}
{\normalsize\bfseries}
{\normalsize\bfseries}
{\normalsize\bfseries}

nameformat={nameformat}

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap

nocap
{\Large\bfseries}
{\huge\bfseries}
{\huge\bfseries}
{}
{}
{}
{}
{}

numberformat={numberformat}

aftername={aftername}

11

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap
{\quad}

{\quad}

nocap
{\par\nobreak}
{\par\vskip 20pt}
{\par\vskip 20pt}
{}
{}
{}
{}
{}

titleformat={titleformat}

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap
{\Large\bfseries}
{\huge\bfseries}
{\huge\bfseries}

nocap
{\huge\bfseries}
{\Huge\bfseries}
{\Huge\bfseries}
{}
{}
{}
{}
{}

beforeskip={beforeskip}

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap

nocap
{4ex}

{50pt}
{-3.5ex plus -1ex minus -.2ex}
{-3.25ex plus -1ex minus -.2ex}
{-3.25ex plus -1ex minus -.2ex}
{3.25ex plus 1ex minus .2ex}
{3.25ex plus 1ex minus .2ex}

section
LaTeX

afterskip={afterskip}

12

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph

cap

nocap
{3ex}

{40pt}
{2.3ex plus .2ex}
{1.5ex plus .2ex}
{1.5ex plus .2ex}
{-1em}
{-1em}

section section

paragraph

indent={indent}

part (article)
part
chapter
section
subsection
subsubsection
paragraph
subparagraph
2.5.2

cap

nocap
{0pt}

{0pt}
{0pt}
{0pt}
{0pt}
{0pt}
{\parindent}

\CTEXsetup[format+={\zihao{1}}]{section}
section
format, nameformat, numberformat,
aftername titleformat
2.5.3

appendix\CTEXsetup appendix
name number \appendix

13

article section report book


chapter
section chapter
\appendix \appendix

name (article)
name
number (article)
number
2.5.4

cap

{}

nocap
{}
{Appendix\space}
{\Alph{section}}
{\Alph{chapter}}

\CTEXoptions
contentsname
listfigurename
listtablename
figurename
tablename
abstractname
indexname
bibname

\CTEXoptions[indexname={}]

2.5.5

\today

\CTEXoptions \today

1.

14

\CTEXoptions[today=small]
\today 2010 10 17

2.
\CTEXoptions[today=big]
\today

3. LATEX
\CTEXoptions[today=old]
\today October 17, 2010

\CTEXoptions \caption
:
\CTEXoptions[captiondelimiter={string}]
string

2.6

ctexopts.cfg
ctexcap.cfg, ctexcap-gbk.cfg, ctexcap-utf8.cfg
ctex.cfg
ctexopts.cfg 2.3.4

ctexcap.cfg cap
ctexcap.cfg

ctexcap-gbk.cfg ctexcap-utf8.cfg
ctex.cfg

TeX

15

v1.02 2010/10/17 hook expl3


v1.01 2010/09/27 format BUG\subsection

xunicode.sty v0.95 \beth


v1.00 2010/09/18 zhwinfonts.tex map
v0.99b 2010/07/11 BUG\chinese* \Chinese
v0.99a 2010/07/11 \chinese* \CTEXcounter \chinese

v0.99 2010/07/08 expl3 \chinese expl3

v0.98 2010/06/19 xeCJK indentfirst xeCJK


winfonts
v0.97 2010/01/22 pdfLATEX XeLATEX PDF
v0.96 2009/11/24 zhmap nozhmap zhwinfonts
v0.95 2009/10/20 CJKnumb cjkfonts winfonts

v0.94 2009/09/13 hyperref


v0.93 2009/07/10 hyperref hyperref
v0.92 2009/06/25 Add backward compatibility to old ctexutf8 packages
v0.91 2009/05/23 cjkfonts, winfonts, adobefonts
v0.9 2009/05/05 ctexutf8 UTF-8 XeTEX
xeCJK
v0.8a 2007/05/06 bold
v0.8 2006/06/09 ctex.sty ctex.sty ctexcap.sty
\stepcounter calc
v0.7f 2006/04/12 \AtBeginDocument \AtEndDocument
CJK
v0.7e 2006/03/22 \DeclareRobustCommand \CTEXnumber \CTEXcounter
\CTEXdigits \CTEX@getdigit

16

v0.7d 2005/12/28 fntef \normalem \em


v0.7c 2005/12/20 \if@mainmatter amsbook
v0.7b 2005/12/09 fntef
v0.7a 2005/11/28 ctex.cfg
v0.7 2005/11/25 tercelxy
CJKfntef CCTfntef chenyu 21cn
v0.6b 2005/11/07 aftername
v0.6a 2005/09/30 \CCT@set@fontsize
v0.6 2005/09/24 cct 0.6180 \set@fontsize: cct 0.6180 \oset@fontsize
\CCT@set@fontsize
v0.5c 2004/09/29 CJK
v0.5b 2004/09/29 CJK \AtEndDocument

v0.5a 2004/09/06
v0.5 2004/08/23 General: Move Chinese definitions from ctex.cfg to ctex.def
v0.4d 2004/08/14 \ps@fancy: mainmatter \refstepcounter: \ref

v0.4c 2004/07/26 \setcounter \addtocounter


v0.4b 2004/07/13 \baselinestretch: \baselinestretch 1.2 1.3
v0.4a 2004/05/15 \CTEXdigits: \CTEXdigits \ziju: CCT

v0.4 2004/05/13 General: LATEX


pt \zihao: \CTEX@fontsize
\fontsize
v0.3b 2004/05/11 General: fancyhdr
v0.3a 2004/04/30 General: \CCTpuncttrue
v0.3 2004/04/24 General:
\S\chinese sub3section sub4section
\ps@fancy: fancyhdr

17

v0.2d 2004/04/23 General: Change option c5size to base on 10pt basic class
\CTEX@bp
v0.2c 2004/02/13 General: Add CJKpunct as standard configuration\ifCTEX@punct:

v0.2b 2004/02/13 General:


v0.2a 2004/02/11 \baselinestretch: \CTEX@spaceChar:
CJKpunct
v0.2 2004/01/16 General: Add support for CCT
\CTEXsetfont: \CTEXfontinfo
\CTEXsetfont\ziju:
v0.1f 2003/12/24 \refname: article
v0.1e 2003/11/05 \refstepcounter: \ref
v0.1d 2003/09/27 \addtocounter: \setcounter \addtocounter

v0.1c 2003/08/19 General: .out


v0.1b 2003/08/17 \zihao: \newcount
v0.1a 2003/08/15 General: ctex.sty sub3section sub4section

v0.1 2003/08/15 General: First beta release


v0.0 2003/04/26 General: Initial version

4
(aloft@ctex.org)
(gzjjgod@gmail.com)
(yuleopen@gmail.com)
(LeoLiu.PKU@gmail.com)
LiYanrui.m2 (LiYanrui)
(Neals)

You might also like