Vous êtes sur la page 1sur 41

CTEX FAQ

Version 0.4 beta (89)


(aloft@ctex.org)

2007 1 30 Rev. 82

CTEX 0.4 89
CTEX

TEX LATEX 86 87

LATEX



17 18 35 68 78 83 85
3 12 14 20 39 40 44 53

Copyright 20032009 CTEX and all the Contributors to CTEX FAQ. All rights reserved.

Contents
A FAQ 5
1 CTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 CTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 . . . . . . . . . . . . . . . . . . . . . . . . . . 5

B 5
5 TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
6 EX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LAT 6
7 AMS-TEX/AMS-LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
8 TEX LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
9 LATEX 2.09 LATEX 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
10 MiKTEX fpTEX teTEX CTEX . . . . . . . . . . . . . . . . . . . . . . . 7
11 CTAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


CONTENTS 2

C 7
12 CTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
13 MiKTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
15 MiKTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
16 . . . . . . . . . . . . . . . . . . . . . 8
17 CTEX Basic Full . . . . . . . . . . . . . . . . . . . . 9
18 CTEX-Fonts CTEX-CS CTEX-Ext CTEX . . . . 9

D 9
19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
21 EX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LAT 10
22 (preamble) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

E 11
24 CJK CCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
25 CCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
26 CJK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
27 CJK . . . . . . . . . . . . . . . . . . . . . . . . . . 12
28 CJK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
29 CJK CJK* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
32 CJK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
34 PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
35 Plain TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

F 14
36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
42 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
44 New Time Roman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


CONTENTS 3

G 18

G.1 18
45 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
46 . . . . . . . . . . . . . . . . . . . . . . . . . . 18
47 (1a) (1b) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
48 . . . . . . . . . . . . . . . . . . . . 19

G.2 19
49 R C . . . . . . . . . . . . . . . . . . . . . . . . . . 19
50 . . . . . . . . . . . . . . . . . . . . 20

G.3 20
51 . . . . . . . . . . . . . . . . . . . 20
52 . . . . . . . . . . . . . . . . 20

H 21

H.1 21
53 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
54 EX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LAT 22
55 DVI EPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

H.2 23
56 p . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

H.3 24
58 . . . . . . . . . . . . . . . . . . . . . . . . . 24
59 . . . . . . . . . . . . . . . . . . . . . . . . . . 25
60 . . . . . . . . . . . . . . . . . . . . . . . . . 25

I 26
61 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
62 [2,48] . . . . . . . . . . . . . . . . . . . 26
63 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
65 . . . . . . . . . . . . . . . . . . . . . . . 27
66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
68 . . . . . . . . . . . . . . . . . . . . . . . . . . 28

J 28

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


CONTENTS 4

J.1 28
69 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
70 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
71 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

J.2 31
73 . . . . . . . . . . . . . . . . . . . . . . . . . . 31
74 . . . . . . . . . . . . . . . 31

J.3 31
75 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
76 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
77 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

K 32
79 \makeatletter \makeatother . . . . . . . . . . . . . . . . . . . . . . . . 32
80 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

L 33
81 WinEdt GSview . . . . . . . . . . . . . . . . . . . 33
82 WinEdt . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
83 WinEdt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
84 Yap EPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

M 33
85 Error: pdflatex (file simsun.ttf): cant find table maxp . . . . . . . . . . . . . . . . . . . . 33

N 34
86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
87 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
88 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
89 . . . . . . . . . . . . . 35

References 35

Index 36

Contributors 40

ChangeList of v0.4 41

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


B 5

A FAQ
1 CTEX

CTEX TEX CTEX TEX CTEX TEX


CTEX CTEX
TEX TEX CTEX

2 CTEX

CTEX

http://www.ctex.org

http://bbs.ctex.org

ftp://ftp.ctex.org FTP

3 FAQ Revised
v0.4
FAQ CTEX
TEX LATEX FAQ

FAQ
CTEX
FAQ

GNU


GNU

B
5 TEX

TEX
TEX 900 TEX
TEX TEX TEX
AMS-TEX
LATEX

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


B 6

TEX (AMS) TEX


Kluwer Addison-Wesley TEX

TEX Knuth TEX


TEX DVI (DeVice Independent) DVI
TEX

6 LATEX
Leslie Lamport LATEX TEX Plain TEX
TEX LATEX
LATEX TEX
LATEX
LATEX 2.09
LATEX
LATEX 2.09 (NFSS) LATEXSLiTEX
AMS-LATEX
Frank Mittelbach LATEX3
LATEX 3 1994
LATEX 2 LATEX 2 NFSS LATEX 2.09 LATEX 2
6 LATEX3 LATEX 2
LATEX

7 AMS-TEX/AMS-LATEX
AMS-TEX Plain TEX TEX
AMS-TEX
AMS-TEX AMS-LATEX amsmath LATEX
AMS-TEX 2.1
AMS-LATEX amsmath
amscls AMS-LATEX 2.0
AMS-TEX AMS-LATEX AMSFonts
TEX Computer Modern
AMSFonts 2.2 Metafont Type1

8 TEX LATEX
LATEX TEX (format) TEX LATEX
TEX

LATEX

9 LATEX 2.09 LATEX 2


LATEX 2.09 LATEX LATEX 2 6 LATEX 2 LATEX 2.09
LATEX 2.09 \documentstyle

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


C 7

\documentstyle[twoside,epsfig]{article}

LATEX 2 \documentclass \usepackage

\documentclass[twoside]{article}
\usepackage{epsfig}

LATEX LATEX 2 LATEX 2.09


LATEX 2 LATEX 2
LATEX 2.09 LATEX 2.09 LATEX 2.09
LATEX 2 LATEX 2.09 \documentclass \usepackage
\documentstyle LATEX 2 latexsym LATEX
2.09

10 MiKTEX fpTEX teTEX CTEX

TEX C
Linux gcc Windows Visual C++ TEX
Unix/Linux TEX teTEX Windows MiKTEX fpTEX CTEX
CTEX MiKTEX GSview WinEdt

11 CTAN

CTAN Comprehensive TEX Archive Network TEX


FTP WWW TEX
CTAN TEX

http://www.ctan.org

CTAN 14

C
12 CTEX Revised
v0.4
CTEX

http://www.ctex.org/CTeXDownload

CTEX FTP

ftp://ftp.ctex.org/pub/tex/systems/ctex/

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


C 8

13 MiKTEX
MiKTEX

http://www.miktex.org

CTEX CTAN

ftp://ftp.ctex.org/CTAN/systems/win32/miktex/setup/setup.exe

setup.exe CTEX FTP

14 Revised
v0.4
CTAN 11 TEX
CTAN

CTAN

http://www.ctan.org/search.html

CTAN CTAN
CTAN FTP

CTAN CTEX FTP

/CTAN/

FTP

15 MiKTEX
CTEX MiKTEX MiKTEX
MiKTEX 2.2 MiKTEX MiKTEX Update Wizard
setup.exe
MiKTEX Update Wizard (local folder)

16
.sty .cls

localtexmf\tex\latex\

TEX
23
TEX

.ins .dtx
readme.txt .ins
LATEX .sty
TEX .dtx LATEX
lshort [1]

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


D 9

17 CTEX Basic Full New


v0.4
CTEX Basic Full CTEX
MiKTEX Basic MiKTEX LATEX
MiKTEX LATEX Basic
Full MiKTEXFull

18 CTEX-Fonts CTEX-CS CTEX-Ext CTEX New


v0.4
CTEX CTEX CTEX-Fonts CTEX-CS CTEX-
Ext CTEX-Fonts Type1 CTEX-Fonts
CTEX Windows TrueType 31 32
Windows 2000 Windows CTEX-Fonts
85
CTEX-CS CTEX CJK CCT CTEX
CTEX-CS CTEX CTEX
MiKTEX CTEX-CS fpTEX TEXLive

CTEX-Ext CTEX TEX


ConTEXt

D
19

lshort [1] LATEX


MiKTEX fpTEX
CTEX Linux
teTEX
20 25
26


CTEX TEX CTEX

20 Revised
\documentclass{article} v0.4
\begin{document}
This is a test file.
\end{document}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


D 10

.tex LATEX DVI DVI


dvips PostScript test.tex PostScript

latex test
dvips test

21 LATEX
LATEX LATEX
LATEX LATEX

Windows LATEX WinEdt MiKTEX fpTEX


WinEdt
WinEdt LATEX
UltraEdit Editplus
LATEX
WinEdt LATEX WinTeX
TeXnicCenter LATEX
Linux/Unix vi Emacs LATEX

22 (preamble)
LATEX

\documentclass{article}
...
\begin{document}
...
\end{document}
...

\begin{document} \end{document} \documentclass{article}


\begin{document}
preamble \end{document} LATEX
postamble (preamble)

23
TEX
TEX
TEX teTEX fpTEX

texhash

MiKTEX Dos

initexmf --update-fndb

MiKTEX MiKTEX Options MiKTEX Options


General Refresh Now

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


E 11

E
24 CJK CCT

CJK CCT

1. LATEX NFSS DVI CCT patchdvi


GB LATEX

2. TrueType Type1 PDF

3.

CCT CJK

CCT CCT CJK


patchdvi CCT

ftp://ftp.cc.ac.cn/pub/cct/

CTEX CTEX-CS

25 CCT

CCT

\documentclass{cctart}
\begin{document}
\kaishu
\end{document}

.ctx cct .tex LATEX


DVI patchdvi DVI dvips PostScript
test.ctx

cct test
latex test
patchdvi -r600x600 -b test.dvi temp.dvi
del test.dvi
ren temp.dvi test.dvi
dvips test

CCT TEX
cct.exe .ctx
cct
CJK CJK
patchdvi DVI \documentclass CJK

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


E 12

\documentclass[CJK]{cctart}
\begin{document}
\kaishu

\end{document}

20

26 CJK

CJK 20

\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{kai}

\end{CJK*}
\end{document}

27 CJK

CJK

\CJKindent

28 CJK

CJK \CJKglue \CJKglue

\renewcommand{\CJKglue}{\hskip b plus p minus m}

b p m TEX 0.05pt b
p m
CJK \hskip 0pt plus 0.08\baselineskip

29 CJK CJK*

CJK

\begin{CJK}....
...
\end{CJK}

CJK

\begin{CJK*}....
...
\end{CJK*}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


E 13

CJK* CJK* CJK CJK


TEX
CJK TEX
TEX
% TEX
CJK
CJK*

\ CJK*
\ ~ 30

\CJKnospace

CJK*

\CJKspace

CJK

30
TEX
TEX
CJK
~ ~ CJK

\CJKtilde

\standardtilde

CJK* \ ~

31

16x16 24x24

Type1 TrueType

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


F 14

32 CJK

CJK Type1 TrueType

1. dvips PostScript

dvips Type1 PostScript



dvips TrueType ttf2pk pk
PostScript

2. dvipdfm PDF dvips Type1 ttf2pk


TrueType

3. pdfLATEX PDF

4. dvipdfmx PDF
TrueType PDF

33

config map

34 PDF

PDF dvipdfmx dvipdfm-cjk


TrueType

35 Plain TEX New


v0.4
CCT Plain TEX CCT TEX

\let\CCTCJKfonts=1
\input CCT.sty

F
36

indentfirst

\usepackage{indentfirst}

37

\renewcommand{\baselinestretch}{}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


F 15

38

\iffalse

\fi

LATEX
verbatim comment
...
\usepackage{verbatim}
...
\begin{comment}
This is comment.
\end{comment}
...

39 Revised
v0.4
\documentclass twocolumn

\documentclass[twocolumn]{article}

multicol multicols

\usepackage{multicol}

\begin{multicols}{}

\end{multicols}

40 Revised
v0.4
LATEX twocolumn
LATEX

twocolumn multicol
39 multicol 59
twocolumn
twocolumn \newpage LATEX
\newpage \clearpage

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


F 16

\newpage
\newpage
flushend LATEX \flushend
\raggedend \flushend flushend

balance flushend
balance \balance \nobalance
flushend \balance


multicol

41

\documentclass[twocolumn]{article}
...
\begin{document}
...
\title{...}
\author{...}
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
\begin{abstract}
...
\end{abstract}
\end{@twocolumnfalse}
]
...
\end{document}

\maketitle

\thanks \title \author

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


F 17

...
\title{...}
\author{...\thanks{}} % \thanks
\twocolumn[
...
]
{
\renewcommand{\thefootnote}{\fnsymbol{footnote}} %
\footnotetext[1]{}
}
...

abstract \saythanks onecolabstract

...
\title{...}
\author{...\thanks{...}}
\twocolumn[
\maketitle
\begin{onecolabstract}
...
\end{onecolabstract}
]
\saythanks
...

42
landscape
\documentclass[landscape]{article}

dvips -t landscpae dvipdfm/dvipdfmx -l

43
lscape landscape
...
\usepackage{lscape}
...
\begin{landscape}
This is a landscape page.
\end{landscape}
...

PostScript PDF

44 New Time Roman Revised


v0.4
times Times New Roman MathTime
mathtime Times New Roman
\usepackage{times}
\usepackage[mtbold,mtpluscal,mtplusscr]{mathtime}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


G 18

G.1

45

1.1
1.2 1.3

\newtheorem{thm}{Theorem}[section] %[section]
\newtheorem{defn}[thm]{Definition} %defnthm
\newtheorem{lem}[thm]{Lemma} %lemthm

46

LATEX (1.1) (1.2)


(2.1) (2.2) \theequation

\renewcommand{\theequation}{\thesection.\arabic{equation}}

1 \setcounter

amsmath \numberwithin

\numberwithin{equation}{section}

\numberwithin

47 (1a) (1b)

amsmath subequations

\begin{subequations}
\begin{equation}
A = B
\end{equation} A=B (1a)
\begin{equation}
C = D C=D (1b)
\end{equation}
\end{subequations}

subequations 1
subequations
\theequation

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


G 19

\begin{subequations}
\renewcommand{\theequation}
{\theparentequation-\arabic{equation}}
\begin{equation}
A = B A=B (2-1)
\end{equation}
\begin{equation} C=D (2-2)
C = D
\end{equation}
\end{subequations}

parentequation equation
subequations

\newenvironment{mysubequations}
{\begin{subequations}\renewcommand{\theequation}{\theparentequation-\arabic{equation}}}
{\end{subequations}}

subequations

48


amsmath \tag LATEX

\begin{equation} \label{eq:original}
A = B
\end{equation}
... A=B (3)
\begin{equation}
...
\tag{\ref{eq:original}$$} \label{eq:origprime}
A=B+1 (3 )
A = B + 1
\end{equation} ... ??eq:original 3 ...
...~~\ref{eq:origprime}~
~\ref{eq:original}~~...

G.2

49 R C

amsfonts

\mathbb{}

$x \in \mathbb{R}$ and $c \in \mathbb{C}$ x R and c C

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


G 20

50

bm

\bm

${\bm x}^T {\bm y}$ xT y

G.3

51

\limits

\nolimits

\nolimits \limits


n
$$\sum_{i=1}^{n} i^2 = 0$$ i2 = 0
i=1

If $\sum_{i=1}^{n} i^2 = 0$ then ... n 2


If i=1 i = 0 then ...

n
$$\sum\nolimits_{i=1}^{n} i^2 = 0$$ i2 = 0
i=1


n
If $\sum\limits_{i=1}^{n} i^2 = 0$ then ... If i2 = 0 then ...
i=1

52

amsmath

\xleftarrow[]{}

\xrightarrow[]{}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


H 21

n=0 n>0
$ A \xleftarrow{n=0} B \xrightarrow[T]{n>0} C $ A B C
T

 amsmath ExtendSymbol

...
\usepackage{amsmath}
...
\makeatletter
\def\ExtendSymbol#1#2#3#4#5{\ext@arrow 0099{\arrowfill@#1#2#3}{#4}{#5}}
\def\RightExtendSymbol#1#2#3#4#5{\ext@arrow 0359{\arrowfill@#1#2#3}{#4}{#5}}
\def\LeftExtendSymbol#1#2#3#4#5{\ext@arrow 6095{\arrowfill@#1#2#3}{#4}{#5}}
\makeatother

ExtendSymbol

\newcommand\myRightarrow[2][]{\RightExtendSymbol{|}{=}{\Rightarrow}{#1}{#2}}

\newcommand\myArrow[2][]{\ExtendSymbol{\Leftarrow}{=}{\Rightarrow}{#1}{#2}}

0 rule

A=B
A |================ B
$$ A \myRightarrow[\rule{3cm}{0cm}]{A=B} B $$
$$ A \myArrow[A=B^2]{B=A^2} B $$ B=A2
A === B
$$ A \myArrow{B^2=A^2} B $$ A=B 2

B 2 =A2
A ==== B

H.1
53 LATEX Revised
v0.4
DVI PostScript LATEX EPS Encapsulated
PostScript PostScript LATEX 2 graphics
graphicx graphics LATEX graphicx

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


H 22

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{file.eps}
\end{document}

\includegraphics
figure

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics{file.eps}
\caption{This is caption of figure}
\end{figure}
\end{document}

figure \caption
\listoffigures
LATEX LATEX [3] LATEX

54 LATEX

LATEX EPS TeX JPEG


DVI PostScript PDF
EPS

 JPEG PNG
ctex-j.jpg ctex-p.png

%%BoundingBox: 0 0 width height

ctex-j.bb ctex-p.bb width height ebb


ebb dvipdfm BoundingBox MiKTEX fpTEX

\documentclass{article}
\usepackage{graphicx}
\DeclareGraphicsRule{.jpg}{eps}{.bb}{}
\DeclareGraphicsRule{.png}{eps}{.bb}{}
\begin{document}
\includegraphics{ctex-j.jpg}
\includegraphics{ctex-p.png}
\end{document}

\includegraphics EPS dvipdfm DVI


PDF MiKTEX dvips PostScript DVI
yap 0.99e fpTEX DVI windvi

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


H 23

55 DVI EPS
EPS DVI DVI PostScript
PostScript EPS DVI
DVI EPS DVI EPS BoundingBox
TEX MiKTEX fpTEX teTEX DVI
(Yap, Windvi, Xdvi) Ghostscript EPS EPS
psfrag PostScript
DVI DVI DVI PostScript PDF

H.2
56 p
p
\centering
\flushleft \flushright
p

... & \centering ... \\

... misplaced \noalign ...

\\ tabular
\centering \flushleft \flushright
box
& \\
LATEX 2.09 \\
\def\PBS#1{\let\temp=\\%
#1%
\let\\=\temp}

... & \PBS\centering ... \\

array
\begin{tabular}{...>{\PBS\centering}p{50mm}}
...
\end{tabular}

LATEX 2 \\

\tabularnewline

... & \centering ... \tabularnewline

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


H 24

57
LATEX

tabular* tabular*
\extracolsep

\begin{tabular*}{5cm}{@{\extracolsep{\fill}}lllr}
\hline
1 & 2 & 3 & 4 \\ 1 2 3 4
21 & 22 & 23 & 24 \\ 21 22 23 24
\hline
\end{tabular*}

\begin{tabular*}{5cm}
{@{\extracolsep{\fill}}|l|l|l|r|}
\hline
1 2 3 4
1 & 2 & 3 & 4 \\
21 22 23 24
21 & 22 & 23 & 24 \\
\hline
\end{tabular*}

tabular p
p
56
tabularx tabularx tabular*
X X p

array
ltxtable longtable tabularx

H.3
58
figure table

center flushleft flushright LATEX


list list

\begin{figure}
\begin{center}
\includegraphics{...}
\caption{...}
\end{center}
\end{figure}

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


H 25

\begin{figure}
\begin{center}
\includegraphics{...}
\end{center}
\caption{...}
\end{figure}

list

\begin{figure}
\centering
\includegraphics{...}
\caption{...}
\end{figure}

LATEX LATEX 2 psfig epsf

59

LATEX twocolumn figure table


figure* table*
multicol multicols figure table
figure* table*
twocolumn
multicols float [H]

\begin{figure}[H]
...
\caption{...}
\end{figure}

60

59 [htbp]
h b t
p twocolumn multicol multicols
b h
twocolumn b
stfloats
h midfloat strip

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


I 26

I
61

overcite

\usepackage{overcite}

natbib super

\usepackage[super]{natbib}

\makeatletter
\def\@cite#1#2{\textsuperscript{[{#1\if@tempswa , #2\fi}]}}
\makeatother

62 [2,48]

LATEX \cite{a,b,c,d,e,f} LATEX


[6,2,5,8,4,7]
[2,48] cite
natbib numbers sort&compress BibTEX natbib
plainnat.bst unsrtnat.bst
hyperref cite
natbib
natbib hypernat

63

.bst

custom-bib
makebst.tex

latex makebst

64

bibentry .bst

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


I 27

inlinebib inlinebib.bst
jurabib

footbib
jurabib
65

citeref backref citeref


hyperref backref hyperref backref
pageref

ref
pageref
hyperref ref
hyperpageref pageref
hyperref hyperref backref pagebackref backref
[5,6,7] [56]

66

chapterbib
\include
\include
bibunits \bibliographyunit
bibunit \putbib
bibunits BibTEX

67

66
BibTEX
multibbl \newbibliography
.aux LATEX

\bibliography MiKTEX
CTAN
multibib \newcites
sec
\bibliographysec \bibliographystylesec \citesec \nocitesec
.bib

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


J 28

bibtopic
.bib btSect

\begin{btSect}{english} % english.bib
\section{References (English)}
\btPrintCited
\end{btSect}
\begin{btSect}{chinese} % chinese.bib
\section{}
\btPrintCited
\end{btSect}
\begin{btSect}{chinese} % chinese.bib
\section{}
\btPrintNotCited
\end{btSect}

68 New
v0.4
mcite phaip.bst mcite \cite *

\cite{paper1, paper2, *paper3, *paper4, paper5, *paper6}

paper1 paper2 paper3 paper4


paper5 paper6

J.1
69
LATEX \footnote
table minipage

This is text ...

\begin{minipage}{\textwidth}
\begin{tabular}{|c|c|c|} This is text ...
\hline aaaa bbb ccc
aaa\footnote{test} & bbb & ccc \\
a test
\hline
\end{tabular} This is another text ...
\end{minipage}

This is another text ...

threeparttable
tabular

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


J 29

1.

\footnotemark[]

tabular

\footnotetext[]{}

Lamport [6]

2. LATEX 2 tabularx longtable tabular


3. footnote tabular savenotes

\makesavenoteenv{tabular}

4. minipage

5. threeparttable

6. mdwtab

70

\footnote (fragile) LATEX \section


\footnote \protect LATEX


\section[]{\footnote{}}

footmisc stable
71

\caption 69 70

LATEX
minipage

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


J 30

\begin{figure}
\begin{minipage}{\textwidth}
...
\caption[]{\footnote{}}
\end{minipage}
\end{figure}

LATEX
caption2 ccaption

72

\footnotemark

...\footnote{}
...
...\footnotemark[1]

1
LATEX


\newcounter{fnnumber}
...
...\footnote{}%
\setcounter{fnnumber}{\thefootnote}%
...
...\footnotemark[\thefnnumber]

LATEX

...\footnote{\label{fn:repeat}}
...
...\footnotemark[\ref{fn:repeat}]

LATEX \footnotemark
\ref LATEX
footmisc memoir \footref
\footref

...\footnote{\label{fn:repeat}}
...
...\footref{fn:repeat}

\label \footnote
fixfoot \DeclareFixedFootnote

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


J 31

\DeclareFixedFootnote{\rep}{}
...
...\rep{}
...\rep{}

LATEX

J.2
73

\clearpage % (openright) \cleardoublepage


\addcontentsline{toc}{chapter}{}

74

\addcontentsline \addcontentsline

\clearpage

book openright report

\cleardoublepage

hyperref PDF

\phantomsection

J.3
75

LATEX verbatim

\verb|^| and \verb|~| is special characters. ^ and ~ is special characters.

\textasciicircum

\textasciitilde

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


K 32

76

\textvisiblespace

Hello\textvisiblespace world\textvisiblespace ! Hello world !

77

\textcircled{letter }

\textcircled{\scriptsize 1}
\textcircled{\scriptsize 2}
\textcircled{3}
\textcircled{4}
\textcircled{\scriptsize a}
O O O3 O4 O O Oc Od
1 2 a b

\textcircled{\scriptsize b}
\textcircled{c}
\textcircled{d}


\copyright

78 New
v0.4
textcomp

\textperthousand

within 1\textperthousand{} error within 1 error


K
79 \makeatletter \makeatother
LATEX @ \@addtoreset
\makeatletter \makeatother

\documentclass{article}
...
\makeatletter % @ is now a normal "letter" for TeX
\renewcommand\theequation{\thesection.\arabic{equation}}
\@addtoreset{equation}{section}
\makeatother % @ is restored as a "non-letter" character for TeX
\begin{document}
...

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


M 33

80 LATEX

LATEX (.dtx)
LATEX
LATEX

texmf\source\latex\

LATEX

texmf\source\latex\base\classes.dtx

LATEX

texmf\source\latex\base\

.dtx LATEX TEX


Donald E. Knuth The TEXbook [7] CTEX FTP

L
81 WinEdt GSview

WinEdt GSview

82 WinEdt

WinEdt Wrap WinEdt


Tab
WinEdt Options Perferences Editor Right
Margin WinEdt

83 WinEdt New
v0.4
WinEdt

84 Yap EPS

Yap Views Options PostScript Quality


16 million colors

M
85 Error: pdflatex (file simsun.ttf ): cant find table maxp New
v0.4
Windows 2000 TrueType
simsun.ttc pdflatex

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


N 34

1. pdflatex PDF

2.

3. TrueType Type1 CTEX-Fonts

4. Windows 98 simsun.ttf Windows fonts CTEX


locatexmf

N
86
TEX LATEX
EX lshort CTEX
[1]
LAT

LATEX LATEX 2
[2] LATEX
CTEX
LATEX 2 [3] CTEX Keith Reckdahl
Using Import graphics in LATEX 2 (Ver. 2, Dec. 1997)
CTEX

87
LATEX lshort (The Not So Short Introduction to LATEX 2 ) [5]
LATEX 2 lshort
[1]

LATEX LATEX Leslie Lapmport


LATEX: A Document Preparation System [6] LATEX The LATEX
Companion [8] 500 150
The LATEX Companion
CTAN

CTAN:/info/companion-rev

ch8.pdf CTAN 14
LATEX LATEX

texmf\doc\latex\base

LATEX 2 for Authors [9] LATEX 2 LATEX 2 for Class and Package
Writers [10] LATEX 2 LATEX 2
LATEX 2.09 LATEX 2 Font Selection [11] LATEX 2
LATEX 2
LATEX LATEX TEX
Donald E. Knuth The TEXbook The TEXbook
Knuth

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


REFERENCES 35

88 LATEX

TEX LATEX TEX

texmf\doc\latex

CTEX LATEX Graham Williams


The TeX Catalogue [12] TEX LATEX CTAN
11 14

89

CTEX
TEX
DVI

References
[1] CTEX lshort 3.20 2003

[2] LATEX 2 7-03-009239-2/TP.1516


2001

[3] LATEX 2 2000

[4] CCT 2003

[5] Tobias Oetiker, Hubert Partl, Irene Hyna and Elisabeth Schlegl. The Not So Short Introduction
to LATEX 2 4.12, 2003.

[6] Leslie Lamport. LATEX: A Document Preparation System. Addison-Wesley, Reading, Mas-
sachusetts, second edition, 1994, ISBN 0-201-52983-1.

[7] Donald E. Knuth. The TEXbook, Volume A of Computers and Typesetting. Addison-Wesley, Reading,
Massachusetts, second edition, 1984, ISBN 0-201-13448-9.

[8] Michel Goossens, Frank Mittelbach and Alexander Samarin. The LATEX Companion. Addison-Wesley,
Reading, Massachusetts, 1994, ISBN 0-201-54199-8.

[9] LATEX3 Project Team. LATEX 2 for Authors. LATEX 2 usrguide.tex

[10] LATEX3 Project Team. LATEX 2 for Class and Package Writers. LATEX 2 clsguide.tex

[11] LATEX3 Project Team. LATEX 2 Font Selection. LATEX 2 fntguide.tex

[12] Graham Williams. The TEX Catalogue. TEX LATEX


CTAN:/help/Catalogue/catalogue.html

[13] Robin Fairbairns. The UK TEX FAQ. TEX FAQ.

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


Index
\\, 23 \documentclass, 7, 11, 15
\documentstyle, 6, 7
abstract, 17 DVI, 23
\addcontentsline, 31 dvipdfmx, 14
amsfonts, 19
amsmath, 6, 1821 ebb, 22
array, 23, 24 EPS, 23, 33
\author, 16 epsf, 25
\extracolsep, 24
backref, 27
balance, 16 \fi, 15
\balance, 16 figure, 24, 25
\baselinestretch, 14 figure*, 25
bibentry, 26 fixfoot, 30
\bibliographyunit, 27 float, 25
bibtopic, 28 flushend, 16
bibunit, 27 \flushend, 16
bibunits, 27 \flushleft, 23
bm, 20 flushleft, 24
\bm, 20 \flushright, 23
btSect, 28 flushright, 24
footbib, 27
\caption, 22, 29 footmisc, 29, 30
ccaption, 30 footnote, 29
center, 24 \footnote, 2830
\centering, 23 \footnotemark, 29, 30
chapterbib, 27 \footnotetext, 29
cite, 26 \footref, 30
\cite, 26, 28
citeref, 27 \hskip, 12
CJK, 1214 hypernat, 26
CJK, 12, 13 hyperref, 26, 27
CJK*, 12, 13
\CJKglue, 12 \iffalse, 15
\CJKindent, 12 \include, 27
\CJKnospace, 13 \includegraphics, 22
\CJKspace, 13 indentfirst, 14
\CJKtilde, 13 inlinebib, 27
\cleardoublepage, 31
jurabib, 27
\clearpage, 15, 31
comment, 15 \label, 30
\copyright, 32 landscape, 17
latexsym, 7
\DeclareFixedFootnote, 30
\limits, 20

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


INDEX 37

list, 24, 25 \section, 29


\listoffigures, 22 \setcounter, 18
longtable, 24, 29 \standardtilde, 13
lscape, 17 stfloats, 25
ltxtable, 24 strip, 25
subequations, 18, 19
\makeatletter, 32
\makeatother, 32 table, 24, 25, 28
makebst, 26 table*, 25
\makesavenoteenv, 29 tabular, 23, 24, 28, 29
\maketitle, 16 tabular*, 24
\mathbb, 19 \tabularnewline, 23
mathtime, 17 tabularx, 24, 29
mcite, 28 tabularx, 24
mdwtab, 29 \tag, 19
memoir, 30 \textasciicircum, 31
midfloat, 25 \textasciitilde, 31
minipage, 28, 29 \textcircled, 32
multibbl, 27 \textperthousand, 32
multibib, 27 \textvisiblespace, 32
multicol, 15, 16, 25 \thanks, 16
multicols, 15, 25 \theequation, 18
threeparttable, 28, 29
natbib, 26 times, 17
\newbibliography, 27 \title, 16
\newcites, 27 TrueType, 13, 14
\newpage, 15, 16 Type1, 13, 14
\nobalance, 16
\nolimits, 20 \usepackage, 7
\numberwithin, 18
verbatim, 15
onecolabstract, 17 verbatim, 31
overcite, 26
WinEdt, 33
PDF, 14
\xleftarrow, 20
\phantomsection, 31
\xrightarrow, 20
preamble, 10
\protect, 29 Yap, 33
psfig, 25
\putbib, 27 (Commands)
\\, 23
\raggedend, 16 \addcontentsline, 31
\ref, 30 \author, 16
\renewcommand, 12, 14 \balance, 16
\baselinestretch, 14
savenotes, 29
\bibliographyunit, 27
\saythanks, 17
\bm, 20

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


INDEX 38

\caption, 22, 29 \ref, 30


\centering, 23 \renewcommand, 12, 14
\cite, 26, 28 \saythanks, 17
\CJKglue, 12 \section, 29
\CJKindent, 12 \setcounter, 18
\CJKnospace, 13 \standardtilde, 13
\CJKspace, 13 \tabularnewline, 23
\CJKtilde, 13 \tag, 19
\cleardoublepage, 31 \textasciicircum, 31
\clearpage, 15, 31 \textasciitilde, 31
\copyright, 32 \textcircled, 32
\DeclareFixedFootnote, 30 \textperthousand, 32
\documentclass, 7, 11, 15 \textvisiblespace, 32
\documentstyle, 6, 7 \thanks, 16
\extracolsep, 24 \theequation, 18
\fi, 15 \title, 16
\flushend, 16 \usepackage, 7
\flushleft, 23 \xleftarrow, 20
\flushright, 23 \xrightarrow, 20
\footnote, 2830 (Packages)
\footnotemark, 29, 30 abstract, 17
\footnotetext, 29 amsfonts, 19
\footref, 30 amsmath, 6, 1821
\hskip, 12 array, 23, 24
\iffalse, 15 backref, 27
\include, 27 balance, 16
\includegraphics, 22 bibentry, 26
\label, 30 bibtopic, 28
\limits, 20 bibunits, 27
\listoffigures, 22 bm, 20
\makeatletter, 32 ccaption, 30
\makeatother, 32 chapterbib, 27
\makesavenoteenv, 29 cite, 26
\maketitle, 16 citeref, 27
\mathbb, 19 CJK, 1214
\newbibliography, 27 epsf, 25
\newcites, 27 fixfoot, 30
\newpage, 15, 16 float, 25
\nobalance, 16 flushend, 16
\nolimits, 20 footbib, 27
\numberwithin, 18 footmisc, 29, 30
\phantomsection, 31 footnote, 29
\protect, 29 hypernat, 26
\putbib, 27 hyperref, 26, 27
\raggedend, 16 indentfirst, 14

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


INDEX 39

inlinebib, 27 tabular*, 24
jurabib, 27 tabularx, 24
latexsym, 7 verbatim, 31
longtable, 24, 29
lscape, 17
ltxtable, 24
mathtime, 17
mcite, 28
mdwtab, 29
memoir, 30
midfloat, 25
multibbl, 27
multibib, 27
multicol, 15, 16, 25
natbib, 26
overcite, 26
psfig, 25
stfloats, 25
tabularx, 24, 29
threeparttable, 28, 29
times, 17
verbatim, 15
, 10

(Environments)
bibunit, 27
btSect, 28
center, 24
CJK, 12, 13
CJK*, 12, 13
comment, 15
figure, 24, 25
figure*, 25
flushleft, 24
flushright, 24
landscape, 17
list, 24, 25
minipage, 28, 29
multicols, 15, 25
onecolabstract, 17
savenotes, 29
strip, 25
subequations, 18, 19
table, 24, 25, 28
table*, 25
tabular, 23, 24, 28, 29

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


CONTRIBUTORS 40

Contributors
(aloft@ctex.org) Neals (nosferuda@hotmail.com)

20032009 CTEX and all the Contributors to CTEX FAQ. All rights reserved.
Copyright
CTEX CTEX FAQ 20032009
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documenta-
tion License, Version 1.2 or any later version published by the Free Software Foundation; with the Invariant Sections
being Contributors, no Front-Cover Texts, and no Back-Cover Texts.
GNU 1.2
Invariant Sections Contributors Front-Cover Texts Back-Cover Texts

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG


CHANGELIST OF V0.4 41

ChangeList of v0.4

New
17 CTEX Basic Full . . . . . . . . . . . . . . . . . . . . . . . . . . 9
18 CTEX-Fonts CTEX-CS CTEX-Ext CTEX . . . . . . . . . 9
35 Plain TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
83 WinEdt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
85 Error: pdflatex (file simsun.ttf): cant find table maxp . . . . . . . . . . . . . . . . . . . . . . . . . 33

Revised
3 FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
12 CTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
44 New Time Roman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
53 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

(Last updated: 2007 1 30 )

CTEX FAQ v0.4 beta Copyright 20032009 CTEX.ORG

Vous aimerez peut-être aussi