You are on page 1of 160

The Not So short

Introduction to LATEX 2

LATEX 2
142 LATEX 2

by Tobias Oetiker
Hubert Partl, Irene Hyna and Elisabeth Schlegl
Version 4.17, September 27, 2005

, , MIKA, ,
4.17-kr, 2005 11 5

ii
Copyright 1995-2002 Tobias Oetiker and all the Contributers to LShort. All
rights reserved.
This document is free; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This document is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this document; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA.
(free). (FSF) GNU
GPL( ) 2
.
.
. .
GNU GPL .
GNU GPL . Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA .

GNU (FDL) . http:
//www.gnu.org/copyleft/fdl.html


LATEX
2.09 . .
Hubert Partl

<partl@mail.boku.ac.at>

Zentraler Informatikdienst der Universitt fr Bodenkultur Wien

Irene Hyna

<Irene.Hyna@bmwf.ac.at>

Bundesministerium fr Wissenschaft und Forschung Wien

Elisabeth Schlegl

<noemail>

in Graz

Jrg Knappen LATEX 2


. CTAN:/tex-archive/info/lshort/
german

iv

, comp.text.tex
. , ,
.
.
. ,
.
.
Rosemary Bailey, Marc Bevand, Friedemann Brauer, Jan Busa, Markus Brhwiler,
Pietro Braione, David Carlisle, Jos Carlos Santos, Neil Carter, Mike Chapman,
Pierre Chardaire, Christopher Chin, Carl Cerecke, Chris McCormack,
Wim van Dam, Jan Dittberner, Michael John Downes, Matthias Dreier,
David Dureisseix, Elliot, Hans Ehrbar, Daniel Flipo, David Frey, Hans Fugal,
Robin Fairbairns, Jrg Fischer, Erik Frisk, Mic Milic Frederickx, Frank,
Kasper B. Graversen, Arlo Griths, Alexandre Guimond, Andy Goth,
Cyril Goutte, Greg Gamble, Frank Fischli, Morten Hgholm, Neil Hammond,
Rasmus Borup Hansen, Joseph Hilferty, Bjrn Hvittfeldt, Martien Hulsen,
Werner Icking, Jakob, Eric Jacoboni, Alan Jerey, Byron Jones, David Jones,
Johannes-Maria Kaltenbach, Michael Koundouros, Andrzej Kawalec,
Sander de Kievit, Alain Kessi, Christian Kern, Jrg Knappen, Kjetil Kjernsmo,
Maik Lehradt, Rmi Letot, Flori Lambrechts, Axel Liljencrantz, Johan Lundberg,
Alexander Mai, Hendrik Maryns, Martin Maechler, Aleksandar S Milosevic,
Henrik Mitsch, Claus Malten, Kevin Van Maren, Richard Nagy, Philipp Nagele,
Lenimar Nunes de Andrade, Manuel Oetiker, Urs Oswald, Martin Pster,
Demerson Andre Polli, Maksym Polyakov Hubert Partl, John Reing,
Mike Ressler, Brian Ripley, Young U. Ryu, Bernd Rosenlecher, Chris Rowley,
Risto Saarelma, Hanspeter Schmid, Craig Schlenter, Gilles Schintgen,
Baron Schwartz, Christopher Sawtell, Miles Spielberg, Georey Swindale,
Laszlo Szathmary, Boris Tobotras, Josef Tkadlec, Scott Veirs, Didier Verna,
Fabian Wernli, Carl-Gustav Werner, David Woodhouse, Chris York, Fritz Zaucker,
Rick Zaccone, and Mikhail Zotov.


LATEX [1]
.
. LATEX TEX [2]
.
LATEX 2 . LATEX
. LATEX
[1, 3] .
.
1 LATEX 2 . LATEX
. LATEX
.
2 . LATEX
.
.
3 LATEX . LATEX
.
LATEX .
4 , EPS . pdfLATEX
PDF
.
5 LATEX .
LATEX
.
6 LATEX ,
. LATEX
( ) .

vi

. .
.
.
LATEX PC UNIX VMS
. LATEX
. LATEX ,
Local Guide [5] .
.
LATEX

.
, LATEX
LATEX Comprehensive TEX Archive Network(CTAN)
. http://www.ctan.org. ftp ftp:
//www.ctan.org .
. ftp://ftp.ktug.or.kr (), ftp://ctan.
tug.org (), ftp://ftp.dante.de (), ftp://ftp.tex.ac.uk ()
.
.
CTAN .
. URL
CTAN: CTAN .
LATEX CTAN:/tex-archive/systems
.


.
LATEX .

Tobias Oetiker

<oetiker@ee.ethz.ch>

Department of Information Technology and


Electrical Engineering, Swiss Federal Institute of Technology

CTAN:/tex-archive/info/lshort .

iii

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

1.1

TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

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

2.1

, , . . . . . . . . . . . . . . . . . . .

2.2

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

2.3

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

3
5

3.1

EX . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2

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

3.3

LAT

EX . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

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

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

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

10

6.1

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

10

6.2

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

11

6.3

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

12

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

12

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

15

1.2
2

LAT

3.4

17

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

17

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

19

viii
2.1

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

19

2.2

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

20

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

21

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

21

4.1

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

21

4.2

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

22

4.3

() . . . . . . . . . . . . . . . . . . . . . . . . . . .

22

4.4

() . . . . . . . . . . . . . . . . . . . . . . . . . .

23

4.5

() . . . . . . . . . . . . . . . . . . . . .

23

4.6

(. . . ) . . . . . . . . . . . . . . . . . . . . . . . . .

24

4.7

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

24

4.8

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

25

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

26

5.1

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

28

5.2

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

31

5.3

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

31

5.4

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

32

5.5

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

33

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

34

, . . . . . . . . . . . . . . . . . . . . . . . . . . .

35

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

37

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

38

10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

11.1

Itemize, Enumerate, Description . . . . . . . . . . .

39

11.2

Flushleft, Flushright, Center . . . . . . . . . . . . .

40

11.3

Quote, Quotation, Verse

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

40

11.4

Abstract

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

41

11.5

Verbatim . . . . . . . . . . . . . . . . . . . . . . . .

41

11.6

Tabular . . . . . . . . . . . . . . . . . . . . . . . . .

42

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

44

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

47

49

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

49

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

51

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

52

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

56

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

56

ix

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

58

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

59

, , . . .

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

60

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

61

10 . . . . . . . . . . . . . . . . . . . . . . . . . .

63

71

EPS . . . . . . . . . . . . . . . . . . . . . . . .

71

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

73

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

74

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

75

Verbatim

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

76

LATEX . . . . . . . . . . . . . . . . .

77

pdfLATEX . . . . . . . . . . . . . . . . . . . . . . . . .

78

7.1

PDF

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

79

7.2

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

80

7.3

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

82

7.4

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

82

7.5

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

85

7.6

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

85

DVIPDFMx PDF . . . . . . . . . . . . . . . . . . .

87

8.1

pdf . . . . . . . . . . . . . . . . . . . . . . .

88

8.2

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

89

8.3

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

89

beamer class . . . . . . . . . . . . . .

90

93

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

93

picture . . . . . . . . . . . . . . . . . . . . . . . . . . .

94

2.1

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

94

2.2

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

95

2.3

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

96

2.4

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

97

2.5

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

98

2.6

\multiput \linethickness . . . . . . . . . . . .

98

2.7

. \thinlines \thicklines . . . . .

99

2.8

. . . . . . . . . . . 100

2.9

2 . . . . . . . . . . . . . . . . . . . . . . . 101

2.10

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

x
2.11
3

. . . . . . . . . . . . . . . . . . 103

XY-pic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

6 LATEX
1

107

, , . . . . . . . . . . . . . . . . . . . . 107

1.1

. . . . . . . . . . . . . . . . . . . . . . . . . . 108

1.2

. . . . . . . . . . . . . . . . . . . . . . . . . . 109

1.3

. . . . . . . . . . . . . . . . . . . . . . . . . . 109

1.4

LATEX . . . . . . . . . . . . . . . . . . . . . . 110

1.5

. . . . . . . . . . . . . . . . . . . . . . . . 111

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

2.1

. . . . . . . . . . . . . . . . . . . . . . 111

2.2

! ! . . . . . . . . . . . . . . . . . . . . . . . . . . 114

2.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

3.1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

3.2

. . . . . . . . . . . . . . . . . . . . . . . . . . . 116

3.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . 117

3.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . 117

. . . . . . . . . . . . . . . . . . . . . . . . . . 118

, . . . . . . . . . . . . . . . . . . . . . . 120

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

125

Index

127


1.1

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

10

1.2

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

11

1.3

LATEX . . . . . . . . . . . . . .

13

1.4

LATEX . . . . . . . . . . . . . . . . . . . .

13

2.1

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

24

2.2

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

25

2.3

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

31

2.4

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

32

2.5

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

33

2.6

, , . . . . . . . . . . . . . . . . . .

34

2.7

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

45

3.1

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

63

3.2

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

63

3.3

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

63

3.4

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

64

3.5

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

64

3.6

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

65

3.7

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

65

3.8

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

65

3.9

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

65

3.10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

66

3.11 . . . . . . . . . . . . . . . . . . . . . . . . .

66

3.12 AMS . . . . . . . . . . . . . . . . . . . . . . . . . .

66

3.13 AMS . . . . . . . . . . . . . . . . . . . .

66

3.14 AMS . . . . . . . . . . . . . . . . . . . . . . .

67

3.15 AMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

3.16 AMS . . . . . . . . . . . . . .

68

xii

3.17 AMS . . . . . . . . . . . . . . . . . . . . . . . . . .

68

3.18 AMS . . . . . . . . . . . . . . . . . . . . . . . . . . . .

69

3.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

69

4.1

graphicx key . . . . . . . . . . . . . . . . . . . . .

72

4.2

Index Key

75

6.1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

6.2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

6.3

. . . . . . . . . . . . . . . . . . . . . . 113

6.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

6.5

TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
. . . . . . . . . . . . . . . . . . . . . . 146

8.1

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

1.2

LATEX . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .

4.1

fancyhdr . . . . . . . . . . . . . . . . . . . . . . . . . .

76

4.2

beamer . . . . . . . . . . . . . . . . . . . . . .

91

6.1

Example Package. . . . . . . . . . . . . . . . . . . . . . . . . . . 111

6.2

. . . . . . . . . . . . . . . . . . . . . 119

1.1


LATEX 2 .
LATEX . LATEX

.

1
1.1

TEX

TEX (Donald E. Knuth) [2].


. TEX 1977

.

. TEX 1982 , 1989 8
. TEX

. TEX
3.141592.
TEX tech . ch Ach ch,1
Loch ch . ch chi
1 ch Pech ch
. (Wikipedia)
. TEX . . .
a ch e ch .
tex tyekh .
ach, loch ch .

X . TEX texnologia (technology)


. TEX TeX .

1.2

LATEX

LATEX TEX . LATEX



. LATEX (Leslie Lamport) [1].
LATEX TEX . LATEX (Frank
Mittelbach) .
1994 LATEX3 LATEX
.
LATEX 2.09
. LATEX 2
. LATEX 2 . LATEX 2.09
.
LATEX Lay-tech Lah-tech . LaTeX
. LATEX 2 Lay-tech two e LaTeX2e
.

2
2.1

, ,

.
(: , ,
) .
. .

, , , ,
.
LATEX , LATEX . TEX
. LATEX , (
) .

, LATEX .
WYSIWYG2 , MS Word 3
2 What

you see is what you get.


Corel Word-Perfect []

1.2
,
. WYSIWYG
.
.
LATEX
. LATEX ()
.
.

2.2

.
,
. ? ?
,
. .
.

.
,
.
WYSIWYG
.


LATEX
. LATEX
.

2.3

WYSIWYG LATEX
LATEX ,
.
.
,
.
. LATEX
.

.
.
.

.
.4
, , ,
.
LATEX
. PostScript

. The LATEX
Companion [3] .
LATEX . LATEX
.
LATEX 2 TEX
. TEX
.

LATEX .
, .
;-)
LATEX

,
.5
.

.
4 ,

. []
LATEX3 .

1.3 LATEX

LATEX

LATEX (plain ASCII text).


() .
, LATEX
.

3.1

(whitespace characters), (blank), (tab) LATEX

(:linebreak) .
(paragraph) .




. .

.
It does not matter whether you
enter one or several
spaces
after a word.

It does not matter whether you enter one or


several spaces after a word.
An empty line starts a new paragraph.

An empty line starts a new


paragraph.

3.2

LATEX
.
LATEX
.
#

&

, (\)
.

\# \$ \% \^{} \& \_ \{ \} \~{}

# $ % & _ { }

{ }

. 25
.

, ,
. \

. \\ ()
(\\)
.6

3.3

LATEX

LATEX
.
\ (letter) .
.
(non-letter) .
LATEX .
{}
. {} LATEX (
) .
I read that Knuth divides the
people working with \TeX{} into
\TeX{}nicians and \TeX perts.\\
Today is \today.

I read that Knuth divides the people working


with TEX into TEXnicians and TEXperts.
Today is 2005 11 5.

(parameter) .
{ } . (optional parameters)
, [ ]
. LATEX .
. .

You can \textsl{lean} on me!

You can lean on me!

Please, start a new line


right here!\newline
Thank you!

Please, start a new line right here!


Thank you!

6 \

$\backslash$ \textbackslash .

1.4

3.4

LATEX % ()
.
.

.
This is an % stupid
% Better: instructive <---example: Supercal%
ifragilist%
icexpialidocious

This is an example: Supercalifragilisticexpialidocious

%
.
verbatim comment
.7 comment (preamble)
\usepackage{verbatim} .
This is another
\begin{comment}
rather stupid,
but helpful
\end{comment}
example for embedding
comments in your document.

This is another example for embedding comments in your document.

LATEX
. .
\documentclass{...}

. ()
LATEX .
.
7 comment

comment . []

8
\usepackage{...}

,8 .
.
\begin{document}
LATEX .

\end{document}
. LATEX .
.
1.1 LATEX .
1.2 .
\documentclass{article}
\begin{document}
Small is beautiful.
\end{document}

1.1: LATEX

LATEX
. . LATEX
GUI( ) .
LATEX
.
LATEX (graphic) LATEX
.

LATEX .
LATEX .9
1. LATEX .
.

(preamble)

.
\begin{document}
Unix . Unix
, ;-)
8 \documentclass
9

1.5

\documentclass[a4paper,11pt]{article}
% define the title
\author{H.~Partl}
\title{Minimalism}
\begin{document}
% generates the title
\maketitle
% insert the table of contents
\tableofcontents
\section{Some Interesting Words}
Well, and here begins my lovely article.
\section{Good Bye World}
\ldots{} and here it ends.
\end{document}

1.2:
. ASCII plain text
. .tex .
2. LATEX . .dvi
. LATEX
. LATEX
. Ctrl-D .
latex foo.tex

3. DVI .
.
xdvi foo.dvi &

X Window Unix . (MiKTEX


) yap (Yet Another Previewer) .
dvi PostScript Ghostscript
.
dvips -Pcmz foo.dvi -o foo.ps

LATEX dvipdf .dvi

10
pdf .
dvipdf foo.dvi

6
6.1

LATEX
(type). \documentclass
.
\documentclass[options]{class}

class . 1.1
. LATEX 2
. option
.
. 1.2
.
. ,

1.1:
article , , , ,

proc article
minimal . .
.
report (chapter) , ,
.
book .
slides . .
FoilTEX .a
a macros/latex/contrib/foiltex

1.6

11

1.2:
10pt, 11pt, 12pt .
10pt .
a4paper, letterpaper, . . .
. letterpaper
. a5paper, b5paper, executivepaper,
legalpaper .
fleqn

leqno

titlepage, notitlepage
. article
report book .
onecolumn, twocolumn

1 2 .

twoside, oneside
. article report , book
. . , twoside
.
landscape

(landscape) .

openright, openany /
.
(chapter) article
. report
book
.

\documentclass[11pt,twoside,a4paper]{article}

LATEX article 11


, A4
.

6.2

LATEX
. ,
, LATEX
. .

12
.
\usepackage[options]{package}

package , options
. LATEX 2
. ( 1.3 .)
.
Local Guide [5] . LATEX The
LATEX Companion [3] .
LATEX 2
.
TEX . Unix
texdoc .

6.3

(header) (footer) (page style) . LATEX


.
\pagestyle{style}

1.4 .
.
\thispagestyle{style}

The LATEX Companion [3] 75 3 4 .

LATEX
. TEX
. .
.
.tex TEX LATEX . latex .
.sty LATEX . \usepackage LATEX
.

1.7

1.3: LATEX
doc LATEX .
doc.dtxa The LATEX Companion [3] .
exscale .
ltexscale.dtx .
fontenc LATEX .
ltoutenc.dtx .
ifthen if. . . then do. . . otherwise do. . .
.
ifthen.dtx The LATEX Companion [3] .
latexsym LATEX (symbol) latexsym
. latexsym.dtx The LATEX Companion [3]
.
makeidx . 74 3 The
LATEX Companion [3] .
syntonly () .
inputenc . ASCII, ISO Latin1, ISO Latin-2, IBM 437/850, ,
, ANSI-, .
inputenc.dtx .
a

.
latex doc.dtx dvi .
.

1.4: LATEX
plain .
.
headings .
. ( .)
empty .

13

14

.dtx TEX . LATEX . .dtx


.dtx LATEX
.
.ins .dtx .
LATEX .dtx .ins .
.ins LATEX .dtx .
.cls . \documentclass
.
.fd LATEX .
LATEX .
.dvi (device independent) . LATEX . DVI
dvips
.
.log
.
.toc . LATEX
.
.lof .toc .
.lot .
.aux
. .aux .
.idx LATEX
. .idx .
makeindex .
74 3 .
.ind .idx
.
.ilg makeindex .

1.8


. LATEX .
\include{lename}

lename.tex
. LATEX lename.tex
.
\includeonly (preamble)
. \include
LATEX .
\includeonly{lename,lename,. . . }

\include
.
.
\include
. \includeonly .
\include
.
.
\input{lename}

.
.
syntonly . LATEX

(DVI) . LATEX
. .
\usepackage{syntonly}
\syntaxonly
DVI (
).

15


LATEX 2
.
.

( )
.
.
.
LATEX
. LATEX
.
LATEX .

. \\
,
.
, .

.
.
.
.
. LATEX

18

.
.
( ) ,
.(
.)
% Example 1
\ldots when Einstein introduced his formula
\begin{equation}
e = m \cdot c^2 \; ,
\end{equation}
which is at the same time the most widely known
and the least well understood physical formula.

% Example 2
\ldots from which follows Kirchhoffs current law:
\begin{equation}
\sum_{k=1}^{n} I_k = 0 \; .
\end{equation}
Kirchhoffs voltage law can be derived \ldots

% Example 3
\ldots which has several advantages.
\begin{equation}
I_D = I_F - I_R
\end{equation}
is the core of a very different transistor model. \ldots
.

. LATEX
. LATEX
. .
.
. (
)
.

.

2.2
.
.
(chapter), (section),
(subsection)
. .
, \section{The Structure of Text and Language}
.

2
2.1

. LATEX
. ,
.
.
. 116
6 3.2 .
LATEX
. .
\\ \newline

.
\\*

.
\newpage

.
\linebreak[n], \nolinebreak[n], \pagebreak[n], \nopagebreak[n]

. 0 4
n . n 4
LATEX .
break new . break
LATEX .

19

20

.
. .
LATEX .
.
LATEX overfull hbox
. LATEX
.1 \sloppy LATEX
.
. underfull
hbox .
. LATEX \fussy
.

2.2

LATEX (hyphenate).
TEX
.
\hyphenation{word list}

-
. LATEX
.
. ,
. \begin{document}
babel , babel
.
hyphenation Hyphenation FORTRAN, Fortran fortran .
.2
:
\hyphenation{FORTRAN Hy-phen-a-tion}
\- .
. (
1L
AT X (overfull hbox)
E
, . \documentclass draft
.
2 (,) . []

2.3

21

) . LATEX
.3
I think this is: su\-per\-cal\-%
i\-frag\-i\-lis\-tic\-ex\-pi\-%
al\-i\-do\-cious

I think this is: supercalifragilisticexpialidocious

\mbox{text}

.
My phone number will change soon.
It will be \mbox{0116 291 2319}.
The parameter
\mbox{\emph{filename}} should
contain the name of the file.

My phone number will change soon. It will


be 0116 291 2319.
The parameter lename should contain the
name of the le.

\fbox \mbox , .

LATEX
.

\today

2005 11 5

\TeX

\LaTeX

TEX
LATEX

\LaTeXe

LAT

LATEX

4
4.1

EX 2

.
"
. LATEX (grave accent)
3 OT1 CM . babel
T1 .
.

. []

22

(vertical quote) .
.

Please press the x key.

Please press the x key.

LATEX
.
(back-tick grave accent),
(vertical
quote) .

4.2

LATEX .
.
.
daughter-in-law, X-rated\\
pages 13--67\\
yes---or no? \\
$0$, $1$ and $-1$

daughter-in-law, X-rated
pages 1367
yesor no?
0, 1 and 1

- , ,
.4

4.3

()

.5 LATEX
\~ . .
.

http://www.rich.edu/\~{}bush \\
http://www.clever.edu/$\sim$demo

http://www.rich.edu/bush
http://www.clever.edu/demo

url hyperref
\url . hyperref
4 .
. []
5 ()
.[]

2.4

23

.

.

\url{http://people.ktug.or.kr/~karnes/%
demo/lshort-kr/index.html}

4.4

http://people.ktug.or.kr/~karnes/demo/
lshort-kr/index.html

()

LATEX .
Its $-30\,^{\circ}\mathrm{C}$.
I will soon start to
super-conduct.

Its 30 C. I will soon start to superconduct.

textcomp \textcelsius
.

4.5

()

.
.
textcomp .
\usepackage{textcomp}

.
\texteuro


.
eurosym .
\usepackage[ocial ]{eurosym}

official .

official gen .
( ftp://
ftp.adobe.com/pub/adobe/type/win/all .) europs

24

\EUR
.
marvosym
\EUR .
.
2.1:

4.6

package

command

eurosym

\euro

[gen]eurosym

\euro

europs

\EUR

marvosym

\EUR

roman

e
A
C
e

sans-serif

e
A
C
c

typewriter

e
A
C
d

(. . . )

.

.
.
.6
\ldots

Not like this ... but like this:\\


New York, Tokyo, Budapest, \ldots

4.7

Not like this ... but like this:


New York, Tokyo, Budapest, . . .


. (ligature) .

. . . instead of ff fi fl ffi . . .
6

. [

2.4

25

\mbox{}
.
.7

Not shelul
but shelfful

\Large Not shelfful\\


but shelf\mbox{}ful

4.8

LATEX .
2.2 o .
.
i j , \i,
\j .

H\^otel, na\"\i ve, \el\eve,\\


sm\o rrebr\o d, !Se\~norita!,\\
Sch\"onbrunner Schlo\ss{}
Stra\ss e

Htel, nave, lve,


smrrebrd, Seorita!,
Schnbrunner Schlo Strae

2.2:

\o
\=o

\o
\.o

\^o
\"o

\~o
\c c

o
o.

\u o
\d o

\v o
\b o

oo


\H o
\t oo

\c o

\oe
\aa

o
o

\OE
\AA

\ae

\AE

\o
\i

\O
\j

\l
!

\L
?

7 .
. Computer Modern Roman
. []

26

LATEX
.
1. 8 . Johannes
Braams babel
.
2. LATEX .
LATEX . ,
.
Local Guide [5] .
3. . , (:)
.
\documentclass
babel .
\usepackage[language]{babel}


LATEX
. babel
. LATEX
, babel
. .
babel
. ()
. babel \"o "o
.
babel
\usepackage[languageA,languageB ]{babel}

.
\selectlanguage{languageA}


8 ,

2.5

27

.
LATEX inputenc .
\usepackage[encoding]{inputenc}


.
, OS/2 132 , ISO-LATIN 1
228 , cp1251 Cyrillic
.
.
.9

western Latin

Cyrillic

Mac

applemac

macukr

Unix
Windows
DOS, OS/2

latin1

koi8-ru

ansinew

cp1251

cp850

cp866nav


ucs
.
\usepackage{ucs}
\usepackage[utf8]{inputenc}


utf8 LATEX
.
TEX
.
.
fontenc .
\usepackage[encoding]{fontenc}

encoding .
.
9 inputenc.dtx cyinpenc.dtx
. 77 6 .

28

LATEX OT1
(Computer Modern) TEX . 7
128 .
TEX
.
.
,

.
8 CM
. T1 Extended Cork (EC)
. LH
.
T2A, T2B, T2C, X2
.10 CB
LGR .

. CM ,
CM .

5.1

11

LATEX 12
.
HLATEX
LATEX EUC-KR13
.14 LATEX
10

[11] .
3.20 .
lshort . 4.17
. .
12 , ,
, , .
13 KS X 1001 KS
EUC-KR . MS Windows EUC-KR
CP949( ) EUC-KR
CP949 . CP949
2350 .
. /UTF-8

. HLATEX LATEX
EUC-KR . dhucs .
14 HL
AT X http://project.ktug.or.kr/hlatex/ .
E
11

2.5

. UHC 15 .
dhucs
UTF-8
LATEX .16
27 Dominique Unruh unicode
(ucs ) UTF-8 .
HLATEX
, PDF
. dhucs

, .
hLATEXp, Werner Lemberg CJK
.17 hLATEXp EUC-KR
HLATEX
. CJK EUC-KR
UTF-8 , //
(4.5.1 ) .18
HLATEX, dhucs, hLATEXp
() ,
. .

.
1. . plain
text ASCII .
EUC-KR UTF-8

.
.
15

PostScript type 1 .
(Unied Hangul Code)
(Uns Hangul Composite Fonts)
. .
16 dhucs http://faq.ktug.or.kr/faq/DHUcs/ .
17
http://knot.kaist.ac.kr/htex/ CTAN:/tex-archive/language/
korean/CJK/ .
18 CJK http://faq.ktug.or.kr/faq/CJKLaTeX/
.

29

30

2. .
. HLATEX
type 1 UHC .
dhucs UHC (truetype)
.
LATEX ,
LATEX
.
dhucs
.19
\usepackage[hangul,nonfrench]{dhucs}

dhucs .
hangul
. .
nojosa . beamer .
hanja hangul ,
.
nonfrench nonfrench-spacing . ,
. frenchspacing .
dhucs .
dhucs-interword .
default HWP .
dhucs-setspace .
hangul .
dhucs-gremph \itshape .
bfemph .
, , PDF dhucs
dhucs . dhucs
LATEX
KTUG(Korean TEX User Group) http:
//www.ktug.or.kr http://faq.ktug.or.kr/mywiki .
19

UTF-8 .

2.5

31

2.3:
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

5.2

By Demerson Andre Polli

<polli@linux.ime.usp.br>


.
\usepackage[portuguese]{babel}

brazilian .
.

.
\usepackage[latin1]{inputenc}

.
\usepackage[T1]{fontenc}

2.3 .
Mac DOS latin1
. .

5.3

By Daniel Flipo

<daniel.flipo@univ-lille1.fr>

LATEX
. .
\usepackage[frenchb]{babel}

babel french
frenchb francais .

32

LATEX
. .
\chapter Chapitre , \today
.
. 2.4 .
2.4:
\og guillemets \fg{}

guillemets

M\up{me}, D\up{r}

Mme , Dr

1\ier{}, 1\iere{}, 1\ieres{}

1er , 1re , 1res

2\ieme{} 4\iemes{}

2e 4es

\No 1, \no 2

No 1, no 2

20~\degres C, 45\degres

20 C, 45

\bsc{M. Durand}

M. Durand

\nombre{1234,56789}

1 234,567 89

. babel
frenchb , frenchb.dtx
LATEX frenchb.dvi .

5.4

LATEX
. .
\usepackage[german]{babel}

, LATEX
. . ,
Chapter Kapitel . inputenc
.
2.5 . Inputenc .
.
(guillemets)
. .
.
.

2.5

33

2.5:
"a

"s

"

"

"< or \flqq

"> or \frqq

\flq

\frq

\dq

"

\flq . OT1
.
T1
.(\usepackage[T1]{fontenc})

5.5

By Maksym Polyakov

<polyama@myrealbox.com>

babel 3.7h , ,
T2* .
LATEX fontenc inputenc
. mathtext
fontenc .20
\usepackage{mathtext}
\usepackage[T1,T2A]{fontenc}
\usepackage[koi8-ru]{inputenc}
\usepackage[english,bulgarian,russian,ukranian]{babel}

babel
.
.
.
babel
.
babel , , ,
(\frenchspacing ) ,
, .
20 A

MS-LATEX fontenc babel .

34

. (
), ,
2.6 .
2.6: babel , ,

"|
disable ligature at this position.
"an explicit hyphen sign, allowing hyphenation in the rest of the word.
"--- Cyrillic emdash in plain text.
"--~ Cyrillic emdash in compound names (surnames).
"--* Cyrillic emdash for denoting direct speech.
""
like "-, but producing no hyphen sign (for compound words with hyphen, e.g.x-""y or some other signs as disable/enable).
"~
for a compound word mark without a breakpoint.
"=
for a compound word mark with a breakpoint, allowing hyphenation
in the composing words.
",
thinspace for initials with a breakpoint in following surname.
"
for German left double quotes (looks like ,,).
"
for German right double quotes (looks like ).
"<
for French left double quotes (looks like <<).
">
for French right double quotes (looks like >>).

babel , \Asbuk \asbuk


. \Alph \alph
(
) .
\enumBul \enumLat (\enumEng) . \enumBul
\Alph \alph
. \enumEng
. .

LATEX
.
. LATEX ,
.
.
.

2.7 ,

35

. ~ .
\@
.

Mr.~Smith was happy to see her\\


cf.~Fig.~5\\
I like BASIC\@. What about you?

Mr. Smith was happy to see her


cf. Fig. 5
I like BASIC. What about you?

\frenchspacing

LATEX

.

. \frenchspacing \@
.

, (chapter), (section),
(subsection) . LATEX
.
.
article .
\section{...}
\subsection{...}
\subsubsection{...}
\paragraph{...}
\subparagraph{...}

(part)
.
\part{...}

report book

36
.
\chapter{...}

article , article
. ,
LATEX .
.
\part .
\appendix ,
.21
LATEX .
.
.
\tableofcontents


. . LATEX
.
.
*
. , \section{Help}
\section*{Help} .
.
.
.
\chapter[Title for the table of contents]{A long
and especially boring title, shown in the text}
.
\maketitle

.
\title{...}, \author{...} \date{...}

\maketitle . \author
21 article

2.8

37

\and .
9 1.2 .
LATEX 2 book
,
.
.
\frontmatter \begin{document} .

.(: \chapter*{Preface})
.
\mainmatter .
.
\appendix .
.
\backmatter ,
. .

, , , ,
. LATEX .

\label{marker }, \ref{marker } and \pageref{marker }

marker . LATEX \ref


\label , , , ,
. \pageref \label .22
.
A reference to this subsection
\label{sec:this} looks like:
see section~\ref{sec:this} on
page~\pageref{sec:this}.

A reference to this subsection looks like: see


section 8 on page 37.

22 . \label
.

38

.
\footnote{footnote text}

.
23 . ,
.24

Footnotes\footnote{This is
a footnote.} are often used
by people using \LaTeX.

10

Footnotesa are often used by people using


LATEX.
a This

is a footnote.

.
\underline{text}

.26 LATEX
.
\emph{text}

.
\emph{If you use
emphasizing inside a piece
of emphasized text, then
\LaTeX{} uses the
\emph{normal} font for
emphasizing.}
23

If you use emphasizing inside a piece of emphasized text, then LATEX uses the normal font
for emphasizing.

.
.
. .
.
?25
25
. \footnotemark \footnotetext{...}
, . []

.
26
( , ) . []
24

2.11

39


LATEX
.
\textit{You can also
\emph{emphasize} text if
it is set in italics,}
\textsf{in a
\emph{sans-serif} font,}
\texttt{or in
\emph{typewriter} style.}

11

You can also emphasize text if it is set in


italics, in a sans-serif font, or in typewriter
style.

\begin{environment}

text

\end{environment}

environment .
.
\begin{aaa}...\begin{bbb}...\end{bbb}...\end{aaa}
.

11.1

Itemize, Enumerate, Description

Itemize , enumerate , description


.
\flushleft
\begin{enumerate}
\item You can mix the list
environments to your taste:
\begin{itemize}
\item But it might start to
look silly.
\item[-] With a dash.
\end{itemize}
\item Therefore remember:
\begin{description}
\item[Stupid] things will not
become smart because they are
in a list.
\item[Smart] things, though, can be
presented beautifully in a list.
\end{description}
\end{enumerate}

1. You can mix the list environments to


your taste:
But it might start to look silly.
- With a dash.
2. Therefore remember:
Stupid things will not become smart
because they are in a list.
Smart things, though, can be
presented beautifully in a list.

40

11.2

Flushleft, Flushright, Center

Flushleft flushright
. Center . \\
LATEX .
\begin{flushleft}
This text is\\ left-aligned.
\LaTeX{} is not trying to make
each line the same length.
\end{flushleft}

\begin{flushright}
This text is right-\\aligned.
\LaTeX{} is not trying to make
each line the same length.
\end{flushright}

This text is
left-aligned. LATEX is not trying to make
each line the same length.

This text is rightaligned. LATEX is not trying to make each


line the same length.

\begin{center}
At the centre\\of the earth
\end{center}

11.3

At the centre
of the earth

Quote, Quotation, Verse

Quote , .
A typographical rule of thumb
for the line length is:
\begin{quote}
On average, no line should
be longer than 66 characters.
\end{quote}
This is why \LaTeX{} pages have
such large borders by default and
also why multicolumn print is
used in newspapers.

A typographical rule of thumb for the line


length is:
On average, no line should be
longer than 66 characters.
This is why LATEX pages have such large borders by default and also why multicolumn
print is used in newspapers.

quotation verse . quotation



. verse . \\
, .

2.11
I know only one English poem by
heart. It is about Humpty Dumpty.
\begin{flushleft}
\begin{verse}
Humpty Dumpty sat on a wall:\\
Humpty Dumpty had a great fall.\\
All the Kings horses and all
the Kings men\\
Couldnt put Humpty together
again.
\end{verse}
\end{flushleft}

11.4

41

I know only one English poem by heart. It is


about Humpty Dumpty.
Humpty Dumpty sat on a wall:
Humpty Dumpty had a great
fall.
All the Kings horses and all the
Kings men
Couldnt put Humpty together
again.

Abstract


. LATEX abstract .
abstract article .
\begin{abstract}
The abstract abstract.
\end{abstract}

11.5

The abstract abstract.

Verbatim

\begin{verbatim} \end{verbatim}
LATEX
.
.
\verb+text+

+ , *
. LATEX .
The \verb|\ldots| command \ldots
The \ldots command . . .
\begin{verbatim}
10 PRINT "HELLO WORLD ";
20 GOTO 10
\end{verbatim}

10 PRINT "HELLO WORLD ";


20 GOTO 10

42
\begin{verbatim*}
the starred version of
the
verbatim
environment emphasizes
the spaces
in the text
\end{verbatim*}

thestarredversionof
theverbatim
environmentemphasizes
thespacesinthetext

\verb \verbatim* * .

\verb*|like

this :-) |

likethis:-)

verbatim \verb .

11.6

Tabular

tabular .
. LATEX .
tabular .
\begin{tabular}[pos]{table spec}

table spec . l
, r , c .
p{width } . l .
, LATEX
. p{width }
.
pos
. t , b , c (top), (bottom),
(center) .
tabular & , \\ , \hline
. \cline{j -i }
. i j .
\begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal \\
\hline
\end{tabular}

7C0
3700
11111000000
1984

hexadecimal
octal
binary
decimal

2.11
\begin{tabular}{|p{4.7cm}|}
\hline
Welcome to Boxys paragraph.
We sincerely hope youll
all enjoy the show.\\
\hline
\end{tabular}

43

Welcome to Boxys paragraph.


We sincerely hope youll all enjoy the show.

@{...} .
.
.
. @{}
.
\begin{tabular}{@{} l @{}}
\hline
no leading space\\
\hline
\end{tabular}

\begin{tabular}{l}
\hline
leading space left and right\\
\hline
\end{tabular}

no leading space

leading space left and right

LATEX 27
. ,
.
\begin{tabular} @{.} .
. (&)
.
\multicolumn .
\begin{tabular}{c r @{.} l}
Pi expression
&
\multicolumn{2}{c}{Value} \\
\hline
$\pi$
& 3&1416 \\
$\pi^{\pi}$
& 36&46
\\
$(\pi^{\pi})^{\pi}$ & 80662&7 \\
\end{tabular}
27

Pi expression

( )

Value
3.1416
36.46
80662.7

tools dcolumn .

44
\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{Ene} \\
\hline
Mene & Muh! \\
\hline
\end{tabular}

Ene
Mene Muh!

tabular .
longtable .

12

.
.

. .

. LATEX
.
LATEX
. , LATEX

.
LATEX .
Figure table

(placement specier)
.
.
\begin{figure}[placement specier ] or \begin{table}[placement specier ]

LATEX .

2.7 .
, .
\begin{table}[!hbp]
[!hbp] LATEX (h), (b),
(p) .
.(!)
[tbp] .

2.12
LATEX

. ,
.28 LATEX
.

( h )
. . LATEX
.

. ,
LATEX
,
.

LATEX , .

. [h]
. LATEX [h] [ht] .

, table figure
.
28

(FIFO rst in rst out) (que).

2.7:

h
t
b
p
!

. . .
here . .
.
top . .
bottom . .
page . .
a
. .

pt, em TEX . 118 6.5


.
a

45

46

.
\caption{caption text}

LATEX .
\listoffigures and \listoftables

\tableofcontents ,
.
,
. \caption .
\caption[Short]{LLLLLoooooonnnnnggggg}
\label \ref .
,
.
.
Figure~\ref{white} is an example of Pop-Art.
\begin{figure}[!hbp]
\makebox[\textwidth]{\framebox[5cm]{\rule{0pt}{5cm}}}
\caption{Five by Five in Centimetres.\label{white}}
\end{figure}
, LATEX (h)
.29 , (b)
. , LATEX

.
LATEX
.
.
\clearpage or even the \cleardoublepage

LATEX
. \cleardoublepage
.
LATEX 2 PostScript
.
29

2.13

13

\caption \section
. ,
. \section
.
, \footnote, \phantom .
.
\protect .
\protect ,
. \protect
.
\section{I am considerate
\protect\footnote{and protect my footnotes}}

47


! TEX
. .
,
. AMS-LATEX1
.

LATEX .
(inline) , .

\( \) , $ $ , \begin{math}

\end{math} .
Add $a$ squared and $b$ squared
to get $c$ squared. Or, using
a more mathematical approach:
$c^{2}=a^{2}+b^{2}$

\TeX{} is pronounced as
\(\tau\epsilon\chi\).\\[6pt]
100~m$^{3}$ of water\\[6pt]
This comes from my
\begin{math}\heartsuit\end{math}

Add a squared and b squared to get c


squared. Or, using a more mathematical approach: c2 = a2 + b2

TEX is pronounced as .
100 m3 of water
This comes from my

1 L
AT X .
E
. TEX . CTAN:
/tex-archive/macros/latex/required/amslatex .

50


(display) . , \[ \] ,

\begin{displaymath} \end{displaymath} .2
Add $a$ squared and $b$ squared
to get $c$ squared. Or, using
a more mathematical approach:
\begin{displaymath}
c^{2}=a^{2}+b^{2}
\end{displaymath}
or you can type less with:
\[a+b=c\]

Add a squared and b squared to get c


squared. Or, using a more mathematical approach:
c2 = a 2 + b 2
or you can type less with:
a+b=c

LATEX , equation
. \label \ref amsmath
\eqref .
\begin{equation} \label{eq:eps}
\epsilon > 0
\end{equation}
From (\ref{eq:eps}), we gather
\ldots{}From \eqref{eq:eps} we
do the same.

>0

(3.1)

From (3.1), we gather . . . From (3.1) we do


the same.

(inline) (display)
.
$\lim_{n \to \infty}
\sum_{k=1}^n \frac{1}{k^2}
= \frac{\pi^2}{6}$

\begin{displaymath}
\lim_{n \to \infty}
\sum_{k=1}^n \frac{1}{k^2}
= \frac{\pi^2}{6}
\end{displaymath}

limn

Pn

1
k=1 k2

2
6

n
X
1
2
=
2
n
k
6

lim

k=1

. ,

.
2 plainT X $$ $$ .
E
LATEX
. []

3.2

51

1. .
\,, \quad \qquad
.
2. . .
3. . (
)
\textrm{...} (59 7
).3
\begin{equation}
\forall x \in \mathbf{R}:
\qquad x^{2} \geq 0
\end{equation}

\begin{equation}
x^{2} \geq 0\qquad
\textrm{for all }x\in\mathbf{R}
\end{equation}

x R :

x2 0

x2 0

for all x R

(3.2)

(3.3)

.
R (blackboard
bold) . amsfonts amssymb
\mathbb .
.
\begin{displaymath}
x^{2} \geq 0\qquad
\textrm{for all }x\in\mathbb{R}
\end{displaymath}

x2 0

for all x R

,

: {...}.
\begin{equation}
a^x+y \neq a^{x+y}
\end{equation}

ax + y 6= ax+y

3 amsmath \text .
\mbox . []

(3.4)

52

.
63 10 .
\alpha, \beta, \gamma, . . .
\Gamma, \Delta, . . . .4

$\lambda,\xi,\pi,\mu,\Phi,\Omega$

, , , , ,

^ _ .
$a_{1}$ \qquad $x^{2}$ \qquad
$e^{-\alpha t}$ \qquad
$a^{3}_{ij}$\\
$e^{x^2} \neq {e^x}^2$

et

a1
x2
2
ex 6= ex2

a3ij

\sqrt . n \sqrt[n] .
LATEX .
, \surd .
$\sqrt{x}$ \qquad
$\sqrt{ x^{2}+\sqrt{y} }$
\qquad $\sqrt[3]{2}$\\[3pt]
$\surd[x^2 + y^2]$

x
2

x2 +

[x + y ]

\overline \underline
.

$\overline{m+n}$

m+n

\overbrace \underbrace
.

$\underbrace{ a+b+\cdots+z }_{26}$

a + b + + z
|
{z
}
26

63
3.1 . \widehat \widetilde
.
.
4L
AT X 2 A .
E
(new math coding) .

3.3

53

\begin{displaymath}
y=x^{2}\qquad y=2x\qquad y=2
\end{displaymath}

y = x2

y 0 = 2x

y 00 = 2

. \vec
. \overrightarrow \overleftarrow A
B .
\begin{displaymath}
\vec a\quad\overrightarrow{AB}
\end{displaymath}

AB

~a


.
. \cdot .
\begin{displaymath}
v = {\sigma}_1 \cdot {\sigma}_2
{\tau}_1 \cdot {\tau}_2
\end{displaymath}

v = 1 2 1 2

(log)
. LATEX
.
\arccos \cos
\csc \exp
\ker
\limsup \min
\arcsin

\cosh

\deg

\gcd

\lg

\ln

\Pr

\arctan

\cot

\det

\hom

\lim

\log

\sec

\arg

\coth

\dim

\inf

\liminf

\max

\sin

\sinh

\sup

\tan

\tanh

\[\lim_{x \rightarrow 0}
\frac{\sin x}{x}=1\]

lim

x0

sin x
=1
x

(modulo function) .
\bmod x a (mod b) \pmod
.
$a\bmod b$\\
$x\equiv a \pmod{b}$

a mod b
x a (mod b)

\frac{...}{...}
. 1/2 ,
.

54
$1\frac{1}{2}$~hours
\begin{displaymath}
\frac{ x^{2} }{ k+1 }\qquad
x^{ \frac{2}{k+1} }\qquad
x^{ 1/2 }
\end{displaymath}

1 12 hours
x2
k+1

x1/2

x k+1

amsmath
\binom .
!
n
k

\begin{displaymath}
\binom{n}{k}\qquad\mathrm{C}_n^k
\end{displaymath}

Ckn

. \stackrel

.
Z

\begin{displaymath}
\int f_N(x) \stackrel{!}{=} 1
\end{displaymath}

fN (x) = 1

\int, \sum, \prod


. ^ _ .5
\begin{displaymath}
\sum_{i=1}^{n} \qquad
\int_{0}^{\frac{\pi}{2}} \qquad
\prod_\epsilon
\end{displaymath}

n
X
i=1

amsmath
. \substack subarray .
\begin{displaymath}
\sum_{\substack{0<i<n \\ 1<j<m}}
P(i,j) =
\sum_{\begin{subarray}{l} i\in I\\
1<j<m
\end{subarray}}
Q(i,j)
\end{displaymath}

X
0<i<n
1<j<m

P (i, j) =

Q(i, j)

iI
1<j<m

TEX ( , [ h k l)
. () ()
5

AMS-LATEX .

3.3

55

\{
( \updownarrow l).
65 3.8 .
\begin{displaymath}
{a,b,c}\neq\{a,b,c\}
\end{displaymath}

a, b, c 6= {a, b, c}

\left, \right
TEX . \left
\right ,
.

()
\right. .
\begin{displaymath}
1 + \left( \frac{1}{ 1-x^{2} }
\right) ^3
\end{displaymath}

1+

1
1 x2

.
\big, \Big, \bigg \Bigg
.6

$\Big( (x+1) (x-1) \Big) ^{2}$\\


$\big(\Big(\bigg(\Bigg($\quad
$\big\}\Big\}\bigg\}\Bigg\}$\quad
$\big\|\Big\|\bigg\|\Bigg\|$

2
(x + 1)(x 1)

. \ldots
\cdots . ,
\vdots \ddots .

56

5 .
\begin{displaymath}
x_{1},\ldots,x_{n} \qquad
x_{1}+\cdots+x_{n}
\end{displaymath}

x1 , . . . , xn

x1 + + xn

6 11pt 12pt
. exscale amsmath
.

56

TEX ,
. .
\,( )

3
18

quad, \:( )

4
18

quad, \;( )

\ \quad(

5
18

quad .
) 2

) \qquad(

\newcommand{\ud}{\mathrm{d}}
\begin{displaymath}
\int\!\!\!\int_{D} g(x,y)
\, \ud x\, \ud y
\end{displaymath}
instead of
\begin{displaymath}
\int\int_{D} g(x,y)\ud x \ud y
\end{displaymath}

ZZ
g(x, y) dx dy
D

instead of

Z Z
g(x, y)dxdy
D

d .7
AMS-LATEX \iint,
\iiint, \iiiint, \idotsint . amsmath
.

\newcommand{\ud}{\mathrm{d}}
\begin{displaymath}
\iint_{D} \, \ud x \, \ud y
\end{displaymath}

ZZ
dx dy
D

testmath.tex(AMS-LATEX )
The LATEX Companion [3] 8 .

, array .8 tabular .
\\ .
7 d .
[]
8 amsmath matrix . []

3.5
\begin{displaymath}
\mathbf{X} =
\left( \begin{array}{ccc}
x_{11} & x_{12} & \ldots \\
x_{21} & x_{22} & \ldots \\
\vdots & \vdots & \ddots
\end{array} \right)
\end{displaymath}

57

x11
x21
X=
..
.

...
...

..
.

x12
x22
..
.

array (\right) .
.
\begin{displaymath}
y = \left\{ \begin{array}{ll}
a & \textrm{if $d>c$}\\
b+x & \textrm{in the morning}\\
l & \textrm{all day long}
\end{array} \right.
\end{displaymath}

a
b+x
y=

if d > c
in the morning
all day long

tabular array .
.
\begin{displaymath}
\left(\begin{array}{c|c}
1 & 2 \\
\hline
3 & 4
\end{array}\right)
\end{displaymath}

1
3

2
4

equation eqnarray
, equation* eqnarray* . eqnarray
. eqnarray* .
eqnarray eqnarray* {rcl} (tabular)
, , ,
. \\ .
\begin{eqnarray}
f(x) & = & \cos x
\\
f(x) & = & -\sin x
\\
\int_{0}^{x} f(y)dy &
= & \sin x
\end{eqnarray}

f (x)

cos x

(3.5)

f 0 (x)

sin x

(3.6)

f (y)dy

sin x

(3.7)

.
\setlength\arraycolsep{2pt} .

58

.
.
.
{\setlength\arraycolsep{2pt}
\begin{eqnarray}
\sin x & = & x -\frac{x^{3}}{3!}
+\frac{x^{5}}{5!}-{}
\nonumber\\
& & {}-\frac{x^{7}}{7!}+{}\cdots
\end{eqnarray}}

\begin{eqnarray}
\lefteqn{ \cos x = 1
-\frac{x^{2}}{2!} +{} }
\nonumber\\
& & {}+\frac{x^{4}}{4!}
-\frac{x^{6}}{6!}+{}\cdots
\end{eqnarray}

x3
x5
+

3!
5!
x7

+
7!

sin x = x

x2
+
2!
4
6
x
x
+

+
4!
6!

(3.8)

cos x = 1

(3.9)

\nonumber LATEX .

. amsmath , align, falign, gather,
multline, split . .


. LATEX .
(phantom) .
^ _ LATEX
. \phantom
.
.
\begin{displaymath}
{}^{12}_{\phantom{1}6}\textrm{C}
\qquad \textrm{versus} \qquad
{}^{12}_{6}\textrm{C}
\end{displaymath}

12
6C

versus

12
6 C

3.7

59

\begin{displaymath}
\Gamma_{ij}^{\phantom{ij}k}
\qquad \textrm{versus} \qquad
\Gamma_{ij}^{k}
\end{displaymath}

ij k

versus

kij

TEX . ,
.
\textrm , \textrm
.
\mathrm .
\mathrm .
.9
\begin{equation}
2^{\textrm{nd}} \quad
2^{\mathrm{nd}}
\end{equation}

2nd

2nd

(3.10)

LATEX .
.
\displaystyle (123), \textstyle (123), \scriptstyle (123) and
\scriptscriptstyle (123).
/ .
\begin{displaymath}
\mathop{\mathrm{corr}}(X,Y)=
\frac{\displaystyle
\sum_{i=1}^n(x_i-\overline x)
(y_i-\overline y)}
{\displaystyle\biggl[
\sum_{i=1}^n(x_i-\overline x)^2
\sum_{i=1}^n(y_i-\overline y)^2
\biggr]^{1/2}}
\end{displaymath}

\left[

n
X

corr(X, Y ) = n
X

(xi x)(yi y)

i=1

(xi x)2

i=1

n
X

1/2
(yi y)2

i=1

\right] .

\biggl \biggr .
9A

MS-LATEX(amsmath) \textrm .

60

, , . . .

, (Lemma), (Denition), (Axiom)


. LATEX
.
\newtheorem{name}[counter ]{text}[section]

name . text
.
.
. counter
(name) .
. section
. section

. .
\newtheorem
.
\begin{name}[text]
This is my interesting theorem
\end{name}
.
\newtheorem .
% definitions for the document
% preamble
\newtheorem{law}{Law}
\newtheorem{jury}[law]{Jury}
%in the document
\begin{law} \label{law:box}
Dont hide in the witness box
\end{law}
\begin{jury}[The Twelve]
It could be you! So beware and
see law~\ref{law:box}\end{jury}
\begin{law}No, No, No\end{law}

Law 1 Dont hide in the witness box


Jury 2 (The Twelve) It could be you! So
beware and see law 1
Law 3 No, No, No

Jury Law .
Jury Law .
.

3.9
\flushleft
\newtheorem{mur}{Murphy}[section]
\begin{mur}
If there are two or more
ways to do something, and
one of those ways can result
in a catastrophe, then
someone will do it.\end{mur}

61

Murphy 8.1 If there are two or more ways


to do something, and one of those ways can
result in a catastrophe, then someone will do
it.

. chapter subsection .

LATEX .
.
\mathbf ,
( ) . \boldmath





,
. .
\begin{displaymath}
\mu, M \qquad \mathbf{M} \qquad
\mbox{\boldmath $\mu, M$}
\end{displaymath}

, M

, M

,
.
amsbsy (amsmath ), tools
bm \boldsymbol
.
\begin{displaymath}
\mu, M \qquad
\boldsymbol{\mu}, \boldsymbol{M}
\end{displaymath}

, M

, M

amsbsy \pmb
(Poormans bold)
.
. mathdesign
. CM
. .

62
\begin{displaymath}
\mu, M \qquad
\pmb{\mu}, \pmb{M}
\end{displaymath}

, M

, M

3.10

10

63

.

3.123.16 10 amssymb
AMS .
AMS macros/latex/amslatex
. info/symbols/comprehensive
.
3.1:
a

a
`
a

\hat{a}
\grave{a}
\bar{a}

a
~a

\check{a}
\dot{a}
\vec{a}

b
A

\tilde{a}
\ddot{a}
\widehat{A}

e
A

\acute{a}
\breve{a}
\widetilde{A}

3.2:

\alpha
\beta
\gamma
\delta
\epsilon
\varepsilon
\zeta
\eta

\theta
\vartheta
\iota
\kappa
\lambda
\mu
\nu
\xi

o
\pi
\varpi
\rho
\varrho
\sigma
\varsigma
\tau

\upsilon
\phi
\varphi
\chi
\psi
\omega

3.3:

\Gamma
\Delta
\Theta

\Lambda
\Xi
\Pi

\Sigma
\Upsilon
\Phi

\Psi
\Omega

10 David Carlisle Josef Tkadlec


symbols.tex .

64

3.4:
\not .
<

<
v

`
|
^
:

>

=
w
3
a
k
_

<
\leq or \le
\ll
\prec
\preceq
\subset
\subseteq
\sqsubset a
\sqsubseteq
\in
\vdash
\mid
\smile
:
a

>
\geq or \ge
\gg
\succ
\succeq
\supset
\supseteq
\sqsupset a
\sqsupseteq
\ni , \owns
\dashv
\parallel
\frown
\notin

.
=

'

=
\equiv
\doteq
\sim
\simeq
\approx
\cong
\Join a
\bowtie
\propto
\models
\perp
\asymp
\neq or \ne

1
./

|=

6=

latexsym .

3.5:
+

+
\pm
\cdot
\times
\cup
\sqcup
\vee , \lor
\oplus
\odot
\otimes
\bigtriangleup
\lhd a
\unlhd a

\mp
\div
\setminus
\cap
\sqcap
\wedge , \land
\ominus
\oslash
\bigcirc
\bigtriangledown
\rhd a
\unrhd a

/
.
?

]
q

\triangleleft
\triangleright
\star
\ast
\circ
\bullet
\diamond
\uplus
\amalg
\dagger
\ddagger
\wr

3.10

P
Q
`
R

65

3.6:
W
\bigcup
\bigvee
V
\bigcap
\bigwedge
\bigsqcup
\oint

S
T
F
H

\sum
\prod
\coprod
\int

L
N
J
U

\bigoplus
\bigotimes
\bigodot
\biguplus

3.7:

(
)

\leftarrow or \gets
\rightarrow or \to
\leftrightarrow
\Leftarrow
\Rightarrow
\Leftrightarrow
\mapsto
\hookleftarrow
\leftharpoonup
\leftharpoondown
\rightleftharpoons
a

=
=

7
,
*
+

\longleftarrow
\longrightarrow
\longleftrightarrow
\Longleftarrow
\Longrightarrow
\Longleftrightarrow
\longmapsto
\hookrightarrow
\rightharpoonup
\rightharpoondown
\iff (bigger spaces)

m
%
&
.
;

\uparrow
\downarrow
\updownarrow
\Uparrow
\Downarrow
\Updownarrow
\nearrow
\searrow
\swarrow
\nwarrow
\leadsto a

m
k
e

\Uparrow
\Downarrow
\Updownarrow
\| or \Vert
\rceil

latexsym .

3.8:
(
[
{
h
b
/

(
[ or \lbrack
\{ or \lbrace
\langle
\lfloor
/

\lgroup
\arrowvert

)
]
}
i
c
\

)
] or \rbrack
\} or \rbrace
\rangle
\rfloor
\backslash

w
w

l
|
d

\uparrow
\downarrow
\updownarrow
| or \vert
\lceil
. (dual. empty)

3.9:

\lmoustache
\rgroup

\Arrowvert
\bracevert

\rmoustache

66

3.10:
...
~
<

0
4
>

\dots
\hbar
\Re
\forall

\nabla
\bot
\diamondsuit
\neg or \lnot
a

..
.

\cdots
\imath
\Im
\exists
\prime
\triangle
\top
\heartsuit
\flat

..

\vdots
\jmath
\aleph
\mho a
\emptyset
\Box a
\angle
\clubsuit
\natural

\ddots
\ell
\wp
\partial
\infty
\Diamond a
\surd
\spadesuit
\sharp

latexsym .

3.11:
.

\dag
\ddag

\S
\P

\copyright
\pounds

\textregistered
\%

3.12: AMS
p
|

\ulcorner
\lvert

q
|

\urcorner
\rvert

x
k

\llcorner
\lVert

y
k

\lrcorner
\rVert

3.13: AMS
z

\digamma

\varkappa

\beth

\gimel

\daleth

3.10

67

3.14: AMS
l
6
0
5

.
/

Q
S

\lessdot
\leqslant
\eqslantless
\leqq
\lll or \llless
\lesssim
\lessapprox
\lessgtr
\lesseqgtr
\lesseqqgtr

m
>
1
=

&
'

R
T

\gtrdot
\geqslant
\eqslantgtr
\geqq
\ggg or \gggtr
\gtrsim
\gtrapprox
\gtrless
\gtreqless
\gtreqqless

+
:
;
P
$
,
l
m

\doteqdot or \Doteq
\risingdotseq
\fallingdotseq
\eqcirc
\circeq
\triangleq
\bumpeq
\Bumpeq
\thicksim
\thickapprox

4
2
w
j
b
<

p
`
C
E

\preccurlyeq
\curlyeqprec
\precsim
\precapprox
\subseteqq
\Subset
\sqsubset
\therefore
\shortmid
\smallsmile
\vartriangleleft
\trianglelefteq

<
3
%
v
k
c
=

q
a
B
D

\succcurlyeq
\curlyeqsucc
\succsim
\succapprox
\supseteqq
\Supset
\sqsupset
\because
\shortparallel
\smallfrown
\vartriangleright
\trianglerighteq

u
v
w

G
t
J
I

\approxeq
\backsim
\backsimeq
\vDash
\Vdash
\Vvdash
\backepsilon
\varpropto
\between
\pitchfork
\blacktriangleleft
\blacktriangleright

3.15: AMS
L99

"
x

\dashleftarrow
\leftleftarrows
\leftrightarrows
\Lleftarrow
\twoheadleftarrow
\leftarrowtail
\leftrightharpoons
\Lsh
\looparrowleft
\curvearrowleft
\circlearrowleft

99K

#
y

\dashrightarrow
\rightrightarrows
\rightleftarrows
\Rrightarrow
\twoheadrightarrow
\rightarrowtail
\rightleftharpoons
\Rsh
\looparrowright
\curvearrowright
\circlearrowright

\multimap
\upuparrows
\downdownarrows
\upharpoonleft
\upharpoonright
\downharpoonleft
\downharpoonright
\rightsquigarrow
\leftrightsquigarrow

68

3.16: AMS

*
$

\nless
\lneq
\nleq
\nleqslant
\lneqq
\lvertneqq
\nleqq
\lnsim
\lnapprox
\nprec
\npreceq
\precneqq
\precnsim
\precnapprox
\subsetneq
\varsubsetneq
\nsubseteq
\subsetneqq














)
!
+
%

\ngtr
\gneq
\ngeq
\ngeqslant
\gneqq
\gvertneqq
\ngeqq
\gnsim
\gnapprox
\nsucc
\nsucceq
\succneqq
\succnsim
\succnapprox
\supsetneq
\varsupsetneq
\nsupseteq
\supsetneqq

&
'
"
#

.
/


0
2
1
3
6
7
5
4

\varsubsetneqq
\varsupsetneqq
\nsubseteqq
\nsupseteqq
\nmid
\nparallel
\nshortmid
\nshortparallel
\nsim
\ncong
\nvdash
\nvDash
\nVdash
\nVDash
\ntriangleleft
\ntriangleright
\ntrianglelefteq
\ntrianglerighteq

8
:

\nleftarrow
\nLeftarrow

9
;

\nrightarrow
\nRightarrow

=
<

\nleftrightarrow
\nLeftrightarrow









(

3.17: AMS
u
n
d
Y

h
g

\dotplus
\ltimes
\Cup or \doublecup
\veebar
\boxplus
\boxtimes
\leftthreetimes
\curlyvee

o
e
Z

i
f

\centerdot
\rtimes
\Cap or \doublecap
\barwedge
\boxminus
\boxdot
\rightthreetimes
\curlywedge

|
>
r
[

}
~

\intercal
\divideontimes
\smallsetminus
\doublebarwedge
\circleddash
\circledcirc
\circledast

3.10

69

3.18: AMS
~

M
O


@

\hbar
\square
\vartriangle
\triangledown
\lozenge
\angle
\diagup
\nexists
\eth

N
H

]

`
0

\hslash
\blacksquare
\blacktriangle
\blacktriangledown
\blacklozenge
\measuredangle
\diagdown
\Finv
\mho

k
s
{
a
F
^
8

\Bbbk
\circledS
\complement
\Game
\bigstar
\sphericalangle
\backprime
\varnothing

3.19:

ABCDEabcde1234
ABCDEabcde1234
ABCDEabcde
ABCDE
A BC DE
ABCDEabcde1234
ABCDEa1234

\mathrm{ABCDE abcde 1234}


\mathit{ABCDE abcde 1234}
\mathnormal{ABCDE abcde 1234}
\mathcal{ABCDE abcde 1234}
\mathscr{ABCDE abcde 1234}
\mathfrak{ABCDE abcde 1234}
\mathbb{ABCDE abcde 1234}

mathrsfs
amsfonts or amssymb
amsfonts or amssymb


LATEX ,
. LATEX
LATEX Manual [1] The LATEX Companion [3]
.

EPS

LATEX
. figure table .
LATEX LATEX
5 .
The LATEX Companion [3] LATEX Manual [1]
.
, 1
LATEX .
LATEX .
PostScript (EPS)
. EPS PostScript
2 .
D. P. Carlisle graphicx
. graphics 3 .
1 XFig,

CorelDraw!, Freehand, Gnuplot, . . . .


GhostScript .
support/ghostscript . (Windows) OS/2 GSview
.
3 macros/latex/graphics
2 PostScript

72

PostScript graphicx
,
.
1. EPS .4
2. graphicx .
\usepackage[driver ]{graphicx}

driver dvi postscript .


dvips. TEX
driver
. driver graphicx
.dvi ,
.eps .
3. le .
\includegraphics[key=value, . . . ]{le}

key value
. key
. 4.1 key .

4.1: graphicx key


width
height
angle
scale

.
\begin{figure}
\centering
4 EPS PostScript
EPS . Apple LaserWriter
, . EPS .
EPS . EPS
.

4.2

73

\includegraphics[angle=90, width=0.5\textwidth]{test}
\caption{A caption, explaining that this is a test.}
\end{figure}
test.eps .

90 ,

0.5

.
.
. 118 6.5 .
[9] [13] .

thebibliography (bibliography)
.
\bibitem[label ]{marker }

.
marker .
\cite{marker }

Partl [1] has proposed that . . .

Partl~\cite{pa} has
proposed that \ldots
\begin{thebibliography}{99}
\bibitem{pa} H.~Partl:
\emph{German \TeX},
TUGboat Volume~9, Issue~1 (1988)
\end{thebibliography}

Bibliography
[1] H. Partl: German TEX, TUGboat Volume 9, Issue 1 (1988)

label .
\begin{thebibliography}
. {99}

74

99 ( ) LATEX
.5
BibTEX .
TEX BibTEX . BibTEX
,
. BibTEX
() (style sheets)
,
.

(index) . LATEX
makeindex6 .
.
The LATEX Companion [3] .
LATEX , (preamble) makeidx
\usepackage{makeidx}

,
\makeindex

.

\index{key}

. key .
\index
. \index
. 4.2 key .
LATEX \index
, LATEX .idx
5

widest-label . widest-label
, \bibitem label
. \cite
label . []
6 8 makeidx.

4.4

75

4.2: Index Key

\index{hello}
\index{hello!Peter}
\index{Sam@\textsl{Sam}}
\index{Lin@\textbf{Lin}}
\index{Jenny|textbf}
\index{Joe|textit}
\index{eolienne@\eolienne}


hello, 1
Peter, 3
Sam, 2
Lin, 7
Jenny, 3
Joe, 5
olienne, 4


hello



(accents)

. .idx makeindex
,
makeindex lename

makeindex , .ind
. LATEX ,

\printindex

.
LATEX 2 showidx
. .
\index
.
My Word \index{Word}. As opposed
to Word\index{Word}. Note the
position of the full stop.

My Word . As opposed to Word. Note the


position of the full stop.

Piet van Oostrum fancyhdr 7


8 .
.
7 CTAN:/tex-archive/macros/latex/contrib/fancyhdr
8

.
header footer () . []

76

\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
% with this we ensure that the chapter and section
% headings are in lowercase.
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} % make space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}

4.1: fancyhdr

. , LATEX 2
.
\rightmark \leftmark
. .
\chapter \rightmark, \leftmark
. \chaptermark,
\sectionmark \subsectionmark , \rightmark
\markleft .
, chapter , \chaptermark
(renew) .
fancyhdr . 4.1
. .

Verbatim

verbatim . verbatim
. verbatim verbatim

verbatim .

4.6 LATEX
, verbatim
,
. verbatim .
\verbatiminput{lename}

(ACSCII text) , verbatim


.
verbatim tools ,
.
[10] .

LATEX

LATEX
. .
CTAN(http://www.ctan.org/)
.
geometry, hyphenat
. .ins .dtx
. readme.txt
, .
. (a) TEX
, (b)
. .
1. LATEX .ins . .sty
.
2. .sty TEX
. .../localtexmf /tex/latex
. ( OS/2
.9 )
3. . LATEX
. teTeX, fpTeX texhash web2c
mktexlsr. MiKTeX initexmf -update-fndb
GUI 10 .
9 UNIX (/)
. OS/2 . []
10 MiKTeX Options mo . []

77

78
.dtx .

1. .dtx LATEX . .dvi


. LATEX
.
2. LATEX .idx .
5
.
3. .
makeindex -s gind.ist name
(name
.)
4. .dtx LATEX .
5. . .ps .pdf
.
.glo(glossary) . 4
5 .
makeindex -s gglo.ist -o name.gls name.glo
5 .dtx LATEX
.

7
By Daniel Flipo

pdfLATEX
<Daniel.Flipo@univ- lille1.fr>

PDF (hypertext) .
(hyperlink)
.
. LATEX \ref \pageref
. (table of content), (index)
.
HTML(HyperText Markup Language)
.
.
1. HTML .

4.7 pdf LATEX


,11
.
2. HTML , ( O/S,
) .
LATEX
.
LATEX HTML .
LATEX
.
. LATEX
.
PDF(Portable
Document Format) .
.
PDF .
(O/S) DVI PS ,
PDF Acrobat Reader Xpdf .
PDF ,
.

7.1

PDF

LATEX PDF , Hn Th Thnh


pdfTEX . TEX DVI
pdfTEX PDF . LATEX pdfLATEX .
pdfTEX pdfLATEX teTEX, fpTEX, MikTEX, TEXLive, CMacTEX
TEX .
DVI PDF , (command line) latex file.tex
pdflatex file.tex .
TEX
.
LATEX documentclass a4paper letterpaper
. pdfLATEX . pdfTEX pdf
.

11 MathML

. []

79

80

hyperref 12 .
.
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
LATEX pdfLATEX
. , ,
.

7.2

pdfLATEX (PK bitmaps, TrueType, PostScript type 1. . . )


, LATEX PK ,
Acrobot Reader .
PostScript Type 1

TX

.
.
E

Computer Modern AMSFonts PostScript Type 1 Blue


Sky Research Y&Y, Inc. ,
. 1997
TEX .
, LATEX EC, LH CB
(28 OT1 ). Vladimir Volovich
EC/TC, EC Concrete, EC Bright, LH cmsuper . CTAN:/tex-archive//fonts/
ps-type1/cm-super , TEXLive7 MikTEX
. CB Greek type 1 Apostolos Syropoulos
CTAN:/tex-archive//tex-archive/fonts/greek/cb
. Blue Sky Y&Y Type1
CM . (auto-hinting)
Blue Sky/Y&Y type 1 CM
,
EC/LH/CB .
, .
aeguill (Almost European Computer Modern with Guillemets)
. \usepackage{aeguill}
EC AE .
12 82

4.7 pdf LATEX


mltex . pdfTEX
mltex .13
MlTEX AE CM
EC 256 TEX
CM type 1
. T1
. AE
Acrobat Reader (Find) .
PDF
.
C1 . ftp://ftp.
vsu.ru/pub/tex/font-packs/c1fonts . CTAN
Bluesky CM type 1 Paradissa
BaKoMa CMCYR type 1 . Paradissa
C1 .
CM PostScript type 1
. Acrobat Reader
.
. CM
.
times, helvetica, courier (
)
.
CM PostScript
. palatino pxfonts times
txfonts .
.
\usepackage[T1]{fontenc}
\usepackage{pxfonts}
: .log le .
Warning: pdftex (file eurmo10): Font eurmo10 at ... not found
.

PDF
.

, type 1 CM
EC . ,
13 mltex

CTAN:/tex-archive/systems/generic/mltex . []

81

82

Latin Modern(LM) .
TEX
(preamble) .
\userpackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
PDF .

7.3

71 graphicx . pdfLATEX
pdftex driver .
\usepackage[pdftex]{color,graphicx}

color .
PostScript (EPS) PdfLATEX
. \includegraphics
graphicx driver . pdftex
.png, .pdf, .jpg, .mps(METAPOST)

.
, .eps

epstopdf EPS PDF .
.
(, ) . , PDF
PNG JPEG . PNG
. JPEG ,
.
METAPOST
. METAPOST
TEX , .

7.4

hyperref .
\usepackage[pdftex]{hyperref}

.

hyperref .

4.7 pdf LATEX


pdftex

\usepackage[pdftex]{hyperref}
\hypersetup{options} .
pdftex.
, hyperref
.14 (default values)
, .
bookmarks (=true,false ) .
unicode (=false,true ) Acrobat
.
pdftoolbar (=true,false ) Acrobat (toolbar) .
pdfmenubar (=true,false ) Acrobat .
pdffitwindow (=true,false ) pdf .
pdftitle (={text}) Acrobat Document Info
.
pdfauthor (={text}) PDF .
pdfnewwindow (=true,false )
.
colorlinks (=false,true ) (false) link
, (true) link . link
. (
.)
linkcolor (=red) sections, pages
citecolor (=green) bibliography
filecolor (=magenta) link
urlcolor (=cyan) e-mail, web URL

, .
14 hyperref pdfT X . L
AT X DVI
E
E
PDF special dvips PS
Adobe Distiller PS PDF .

83

84
\usepackage[pdftex]{hyperref}

, .
\usepackage[pdftex,bookmarks,colorlinks]{hyperref}
PDF .
.
.
\usepackage{hyperref}
\hypersetup{colorlinks=false}
.
\usepackage{hyperref}
\hypersetup{colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black,%
pdftex}
PDF Document Info
.
\usepackage[pdfauthor={Pierre Desproges},%
pdftitle={Des femmes qui tombent},%
pdftex]{hyperref}


.
\href{url }{text}

.
The \href{http://www.ctan.org}{CTAN} website.
CTAN . CTAN CTAN
.
, URL \href

\href{manual.pdf}{} .

4.7 pdf LATEX


. .
, , manual.pdf . (
.)
\author \href
.
\author{Mary Oetiker $<$\href{mailto:mary@oetiker.ch}%
{mary@oetiker.ch}$>$
.
\href{mailto:mary@oetiker.ch}{Mary Oetiker}
Acrobat ,
.

7.5

.
! pdfTeX warning (ext4): destination with the same identifier
(name{page.1}) has been already used, duplicate ignored
. , book
\mainmatter
(chapter) 1 . , (preface)
1 , page 1
.
hyperref plainpages=false
. .
hypertexnames=false
(index) .

7.6

(bookmark) .

LATEX . hyperref
.
Package hyperref Warning:
Token not allowed in a PDFDocEncoded string:

85

86


.
\texorpdfstring{TEX text}{Bookmark Text}

.
\section{\texorpdfstring{$E=mc^2$}%
{E\ =\ mc\texttwosuperior}}
\section{$E=mc^2$} E=mc
.
.
\section{\textcolor{red}{Red !}}
redRed! . \textcolor
(red) .

\section{\texorpdfstring{\textcolor{red}{Red !}}{Red\ !}}
.
7.6.1

LATEX pdf LATEX

LATEX pdfLATEX
.
. \includegraphics

.

. ,
. LATEX .eps
, pdfLATEX .png, .pdf, .jpg, .mps .
PDF ifpdf 15
. .
MiKTEX
. \ifpdf
.
PostScript PDF
.
15 , T X FAQ http://www.tex.ac.uk/
E
cgi-bin/texfaq2html?label=ifpdf .

4.8 DVIPDFMx PDF


\ifpdf
\usepackage[T1]{fontenc}
\usepackage{aeguill}
\usepackage[pdftex]{graphicx,color}
\usepackage[pdftex,colorlinks]{hyperref}
\else
\usepackage[T1]{fontenc}
\usepackage[dvips]{graphicx}
\usepackage[dvips]{hyperref}
\fi
, PDF hyperref
\href .
\href
.
TEXLive , graphics.cfg color.cfg
pdftex dvips graphicx color
.

DVIPDFMx PDF 16

By KTUG lshort translation project team

<info@mail.ktug.or.kr>

pdfLATEX pdf
.
1. pdfLATEX pdf
.
2. .ttc (embed)
.
3. HLATEX pdf (
) .

. dhucs
pdfLATEX pdf .
.17
16

.
EX 1.0 hfont hangul hyperref
. (
) pdf
.
17 HL
AT

87

88

pdfTEX .18
pdf DVIPDFMx
. Mark Wicks dvipdfm (ChoF)
. http://project.ktug.
or.kr/dvipdfmx . MiKTEX W32TEX
MiKTEX
KTUG ftp .
. DVIPDFMx
Metapost , ConTeXt , PDF
.
DVIPDFMx pdf 2 .
dvi pdf pdfTEX LATEX
dvi dvi pdf .19
pdf .
#> latex foo
#> dvipdfmx foo

8.1

pdf

pdf DVIPDFMx
\special . dhucs
.
\usepackage{dhucs-ucshyper}
hyperref hyperref
. hyperref \hypersetup
.
DVIPDFMx tounicode
. UTF8-UCS2 CMap TEX
CMap 20 texhash .
\usepackage[dvipdfm,...,CJKbookmarks,...]{hyperref}
\AtBeginDvi{\special{pdf: tounicode UTF8-UCS2}}
18 pdfT X subfont
E
. subfont
pdfTEX
.
19 pdf 3 latex dvi dvi dvips ps
Adobe Distiller GhostScript ps2pdf pdf .
20 teT X 3.0 fonts/cmap . []
E

4.8 DVIPDFMx PDF


hyperref
. dvipdfm(dvipdfmx )
CJKbookmarks bookmarks .
dvi pdf special . tounicode pdf
. CMap
pdf .

8.2

DVIPDFMx .eps
.pdf .
pdfLATEX
.pdf .png, .jpg .
.
\usepackage[dvipdfm]{graphicx}
graphicx dvipdfm
. DVIPDFMx dvipdfmx

.
\usepackage{graphicx}
\DeclareGraphicsExtensions{.jpg,.pdf}
\DeclareGraphicsRule{.jpg}{eps}{.bb}{}
jpg, png, pdf .bb
(bounding box) .
ebb .
#> ebb foo.pdf
foo.pdf foo.bb .

8.3

PostScript UHC 21
. pdf
. UHC PostScript
22 . GPL
21 HL
AT

EX .

22 http://faq.ktug.or.kr/faq/

http://kldp.net/projects/unfonts

89

90

. KTUG(http:
//www.ktug.or.kr) .
DVIPDFMx pdfTEX

. 9
beamer pdfLATEX
pstricks PostScript DVIPDFMx
.23 pstricks prosper .

9
By Daniel Flipo

beamer class
<Daniel.Flipo@univ- lille1.fr>

(OHP)
,
.
beamer pdfLATEX PDF
. PowerPoint
, Acrobat Reader
.
beamer graphicx, color,
hyperref .
4.2 PDFLATEX , PDF
.
.
prosper PostScript . ppower4
. beamer
PDF .
beamer ,
. (<, >)
.
.
beamer PDF
trans
23 pstricks

DVIPDFMx pdfTEX .
dvips 3 .
pdftricks pdfLATEX DVIPDFMx pstricks
.

4.9 beamer class


\documentclass[10pt]{beamer}
\mode<beamer>{%
\usetheme[hideothersubsections,right,width=22mm]{Goettingen}
}
\title{Simple Presentation}
\author[D. Flipo]{Daniel Flipo}
\institute{U.S.T.L. \& GUTenberg}
\titlegraphic{\includegraphics[width=20mm]{USTL}}
\date{2005}
\begin{document}
\begin{frame}<handout:0>
\titlepage
\end{frame}
\section{An Example}
\begin{frame}
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots \pause
\item read a book\pause
\item confuse a cat\pause
\end{itemize}
\end{block}
and many other things
\end{frame}
\end{document}
4.2: beamer
handout
beamer, .
\documentclass[10pt,handout]{beamer}
.
. beamer
, .
beamer beameruserguide.pdf .
4.2 .

91

92

\mode<beamer>
(navigation panel) Goettingen .
( 22mm) ( )
. hideothersubsections (chapter)
(subsection) . \mode<trans>
\mode<handout> .
\title{}, \author{}, \institute{}, \titlegraphic{}
. \title[]{} \author[]{} Goettingen .
\section{}, \subsection{}

.
frame

. .
frame . (<, >)

. <handout:0>
(handout) .

. \frametitle{} . (subtitle)
, block . \section{},
\subsection{}
.
itemize \pause . \only,
\uncover, \alt , \temporal
. (<, >)
.
, beamer beameruserguide.pdf
.
, beamer
http://latex-beamer.sourceforge.net/ .


LATEX .
. ,
LATEX .
LATEX .
.

picture LATEX
. LATEX Manual [1] .

. , LATEX picture \qbezier
q 2(quadratic) .
2 (quadratic
Bzier curve) . ,
Java LATEX \qbezier
picture .
LATEX
, .
,
.
epic eepic (The LATEX Companion [3] ) pstricks
picture LATEX
.
picture pstricks

94

pspicture . pstricks
PostScript
. ,
. The LATEX Graphics Companion [4](The LATEX Companion [3] ) .
LATEX METAPOST
. METAFONT . METAPOST
METAFONT
. METAPOST METAFONT
PostScript (EPS) .
LATEX .
A Users Manual for MetaPost [15] [17]
.
LATEX TEX ( )
TEX Unbound [16] .

picture

By Urs Oswald

<osurs@bluewin.ch>

2.1

picture 1 .
\begin{picture}(x, y). . . \end{picture}

\begin{picture}(x, y)(x0 , y0 ). . . \end{picture}

x, y, x0 , y0 \unitlength .
picture .
\setlength{\unitlength}{1.2cm}

\unitlength 1pt. (x, y)


. (x0 , y0 )
1 , picture . L
AT X 2
E
.

5.2 picture

95

,
.
.
\put(x, y){object}

\multiput(x, y)(x, y){n}{object}

Bzier . .
\qbezier(x1 , y1 )(x2 , y2 )(x3 , y3 )

2.2

\setlength{\unitlength}{5cm}
\begin{picture}(1,1)
\put(0,0){\line(0,1){1}}
\put(0,0){\line(1,0){1}}
\put(0,0){\line(1,1){1}}
\put(0,0){\line(1,2){.5}}
\put(0,0){\line(1,3){.3333}}
\put(0,0){\line(1,4){.25}}
\put(0,0){\line(1,5){.2}}
\put(0,0){\line(1,6){.1667}}
\put(0,0){\line(2,1){1}}
\put(0,0){\line(2,3){.6667}}
\put(0,0){\line(2,5){.4}}
\put(0,0){\line(3,1){1}}
\put(0,0){\line(3,2){1}}
\put(0,0){\line(3,4){.75}}
\put(0,0){\line(3,5){.6}}
\put(0,0){\line(4,1){1}}
\put(0,0){\line(4,3){1}}
\put(0,0){\line(4,5){.8}}
\put(0,0){\line(5,1){1}}
\put(0,0){\line(5,2){1}}
\put(0,0){\line(5,3){1}}
\put(0,0){\line(5,4){1}}
\put(0,0){\line(5,6){.8333}}
\put(0,0){\line(6,1){1}}
\put(0,0){\line(6,5){1}}
\end{picture}

%
%

%
,
% ,
#
#
% ,

#
% ,

#
"
% ,,
#

"

% ,#

""

#
% ,
"

#
"
!

!
%,


#
"!!

"
,
%#
!

" !
,
#
!
%
"!

#
"
!
(

(
(
%
!
(

"
(

,
#
!
(

"
!

(
%
(

,
#
!

((

"

!
(
(

(
#
"
!

%
,

96
.
\put(x, y){\line(x1 , y1 ){length}}

\line ,
1. ,
2.
. .
6, 5, . . . , 5, 6,
(1 ) . 1
25 . \unitlength
.
.

2.3

\setlength{\unitlength}{1mm}
\begin{picture}(60,40)
\put(30,20){\vector(1,0){30}}
\put(30,20){\vector(4,1){20}}
\put(30,20){\vector(3,1){25}}
\put(30,20){\vector(2,1){30}}
\put(30,20){\vector(1,2){10}}
\thicklines
\put(30,20){\vector(-4,1){30}}
\put(30,20){\vector(-1,4){5}}
\thinlines
\put(30,20){\vector(-1,-1){5}}
\put(30,20){\vector(-1,-4){5}}
\end{picture}

OC

1
C

X
yXX

XXX
:

XX

XC

.
\put(x, y){\vector(x1 , y1 ){length}}


.
4, 3, . . . , 3, 4.
.
\thicklines .

5.2 picture

2.4

97

\setlength{\unitlength}{1mm}
\begin{picture}(60, 40)
\put(20,30){\circle{1}}
\put(20,30){\circle{2}}
\put(20,30){\circle{4}}
\put(20,30){\circle{8}}
\put(20,30){\circle{16}}
\put(20,30){\circle{32}}
\put(40,30){\circle{1}}
\put(40,30){\circle{2}}
\put(40,30){\circle{3}}
\put(40,30){\circle{4}}
\put(40,30){\circle{5}}
\put(40,30){\circle{6}}
\put(40,30){\circle{7}}
\put(40,30){\circle{8}}
\put(40,30){\circle{9}}
\put(40,30){\circle{10}}
\put(40,30){\circle{11}}
\put(40,30){\circle{12}}
\put(40,30){\circle{13}}
\put(40,30){\circle{14}}

'$
'$
#

j
be
m
j
h
be

"!
&%
&%
r

u x z}

\put(15,10){\circle*{1}}
\put(20,10){\circle*{2}}
\put(25,10){\circle*{3}}
\put(30,10){\circle*{4}}
\put(35,10){\circle*{5}}
\end{picture}

.
\put(x, y){\circle{diameter }}

(x, y) diameter ( )
. picture 14 mm .

. \circle* .
, eepic pstricks
. The LATEX Graphics Companion [4]
.
picture .
( ) 2

98

. Graphics in
LATEX 2 [17] Java .

2.5

\setlength{\unitlength}{1cm}
\begin{picture}(6,5)
\thicklines
\put(1,0.5){\line(2,1){3}}
\put(4,2){\line(-2,1){2}}
\put(2,3){\line(-2,-5){1}}
\put(0.7,0.3){$A$}
\put(4.05,1.9){$B$}
\put(1.7,2.95){$C$}
\put(3.1,2.5){$a$}
\put(1.3,1.7){$b$}
\put(2.5,1.05){$c$}
\put(0.3,4){$F=
\sqrt{s(s-a)(s-b)(s-c)}$}
\put(3.5,0.4){$\displaystyle
s:=\frac{a+b+c}{2}$}
\end{picture}

F =

p
s(s a)(s b)(s c)
CH

HH a
HH
H
B
b

c
a+b+c

s :=

picture \put
.

2.6

\multiput \linethickness

\setlength{\unitlength}{2mm}
\begin{picture}(30,20)
\linethickness{0.075mm}
\multiput(0,0)(1,0){31}%
{\line(0,1){20}}
\multiput(0,0)(0,1){21}%
{\line(1,0){30}}
\linethickness{0.15mm}
\multiput(0,0)(5,0){7}%
{\line(0,1){20}}
\multiput(0,0)(0,5){5}%
{\line(1,0){30}}
\linethickness{0.3mm}
\multiput(5,0)(10,0){3}%
{\line(0,1){20}}
\multiput(0,5)(0,10){2}%
{\line(1,0){30}}
\end{picture}

5.2 picture

99

\multiput(x, y)(x, y){n}{object}

, , ,
, . \linethickness
.
2 .

2.7

. \thinlines \thicklines

\setlength{\unitlength}{1cm}
\begin{picture}(6,4)
\linethickness{0.075mm}
\multiput(0,0)(1,0){7}%
{\line(0,1){4}}
\multiput(0,0)(0,1){5}%
{\line(1,0){6}}
\thicklines
\put(2,3){\oval(3,1.8)}
\thinlines
\put(3,2){\oval(3,1.8)}
\thicklines
\put(2,1){\oval(3,1.8)[tl]}
\put(4,1){\oval(3,1.8)[b]}
\put(4,3){\oval(3,1.8)[r]}
\put(3,1.5){\oval(1.8,0.4)}
\end{picture}

'

'
&
'

&

$
%
%

&

(oval) .
\put(x, y){\oval(w, h)}

\put(x, y){\oval(w, h)[position]}

(x, y) . w , h .
position t(). b(), l(), r()
. .
. \linethickness{length}
, \thinlines, \thicklines. \linethickness{length}
( 2 ) . \thinlines
\thicklines , , .

100

2.8

\setlength{\unitlength}{0.5mm}
\begin{picture}(120,168)
\newsavebox{\foldera}% declaration
\savebox{\foldera}
(40,32)[bl]{% definition
\multiput(0,0)(0,28){2}
{\line(1,0){40}}
\multiput(0,0)(40,0){2}
{\line(0,1){28}}
\put(1,28){\oval(2,2)[tl]}
\put(1,29){\line(1,0){5}}
\put(9,29){\oval(6,6)[tl]}
\put(9,32){\line(1,0){8}}
\put(17,29){\oval(6,6)[tr]}
\put(20,29){\line(1,0){19}}
\put(39,28){\oval(2,2)[tr]}
}
\newsavebox{\folderb}% declaration
\savebox{\folderb}
(40,32)[l]{%
definition
\put(0,14){\line(1,0){8}}
\put(8,0){\usebox{\foldera}}
}
\put(34,26){\line(0,1){102}}
\put(14,128){\usebox{\foldera}}
\multiput(34,86)(0,-37){3}
{\usebox{\folderb}}
\end{picture}

.

\newsavebox{name}

.

\savebox{name}(width,height)[position]{content}

.

\put(x, y)\usebox{name}

position
. bl

5.2 picture

101

.
t r top right .
name LATEX . (
).
. \foldera \folderb .
\line 3 mm \oval
.

2.9

\setlength{\unitlength}{1cm}
\begin{picture}(6,4)
\linethickness{0.075mm}
\multiput(0,0)(1,0){7}
{\line(0,1){4}}
\multiput(0,0)(0,1){5}
{\line(1,0){6}}
\thicklines
\put(0.5,0.5){\line(1,5){0.5}}
\put(1,3){\line(4,1){2}}
\qbezier(0.5,0.5)(1,3)(3,3.5)
\thinlines
\put(2.5,2){\line(2,-1){3}}
\put(5.5,0.5){\line(-1,5){0.5}}
\linethickness{1mm}
\qbezier(2.5,2)(5.5,0.5)(5,3)
\thinlines
\qbezier(4,2)(4,3)(3,3)
\qbezier(3,3)(2,3)(2,2)
\qbezier(2,2)(2,1)(3,1)
\qbezier(3,1)(4,1)(4,2)
\end{picture}

HH

D
D

HH
HH

D
D
D
HH D
HD

2
, . \linethickness
\thinlines \thicklines
. 2
.
.
P1 = (x1 , y1 ), P2 = (x2 , y2 ) , m1 , m2 2

102

. S = (x, y) .

x = m2 x2 m1 x1 (y2 y1 ) ,
m2 m1

y = yi + mi (x xi )
(i = 1, 2).

(5.1)

\qbezier Java Graphics in LATEX 2 [17]


.

2.10

\setlength{\unitlength}{1.3cm}
\begin{picture}(4.3,3.6)(-2.5,-0.25)
\put(-2,0){\vector(1,0){4.4}}
\put(2.45,-.05){$x$}
\put(0,0){\vector(0,1){3.2}}
\put(0,3.35){\makebox(0,0){$y$}}
\qbezier(0.0,0.0)(1.2384,0.0)
(2.0,2.7622)
\qbezier(0.0,0.0)(-1.2384,0.0)
(-2.0,2.7622)
\linethickness{.075mm}
\multiput(-2,0)(1,0){5}
{\line(0,1){3}}
\multiput(-2,0)(0,1){4}
{\line(1,0){4}}
\linethickness{.2mm}
\put( .3,.12763){\line(1,0){.4}}
\put(.5,-.07237){\line(0,1){.4}}
\put(-.7,.12763){\line(1,0){.4}}
\put(-.5,-.07237){\line(0,1){.4}}
\put(.8,.54308){\line(1,0){.4}}
\put(1,.34308){\line(0,1){.4}}
\put(-1.2,.54308){\line(1,0){.4}}
\put(-1,.34308){\line(0,1){.4}}
\put(1.3,1.35241){\line(1,0){.4}}
\put(1.5,1.15241){\line(0,1){.4}}
\put(-1.7,1.35241){\line(1,0){.4}}
\put(-1.5,1.15241){\line(0,1){.4}}
\put(-2.5,-0.25){\circle*{0.2}}
\end{picture}

-x

(catenary) y = cosh x 1 2
. (2, 2.7622)
m = 3.6269 . (5.1)

. (1.2384, 0) (1.2384, 0).

5.3 XY-pic

103

1
.
\begin{picture} .
picture .
\begin{picture}(4.3,3.6)(-2.5,-0.25)

(2.5, 0.25)
.

2.11

\setlength{\unitlength}{1cm}
\begin{picture}(6,4)(-3,-2)
\put(-2.5,0){\vector(1,0){5}}
\put(2.7,-0.1){$\chi$}
\put(0,-1.5){\vector(0,1){3}}
\multiput(-2.5,1)(0.4,0){13}
{\line(1,0){0.2}}
\multiput(-2.5,-1)(0.4,0){13}
{\line(1,0){0.2}}
\put(0.2,1.4)
{$\beta=v/c=\tanh\chi$}
\qbezier(0,0)(0.8853,0.8853)
(2,0.9640)
\qbezier(0,0)(-0.8853,-0.8853)
(-2,-0.9640)
\put(-3,-2){\circle*{0.2}}
\end{picture}

= v/c = tanh

(5.1) . P1 =
(0, 0), m1 = 1 P2 = (2, tanh 2), m2 = 1/ cosh2 2 .
(3, 2)
( ).

3 XY-pic
By Alberto Manuel Brando Simes

<albie@alfarrabio.di.uminho.pt>

xy .
.
\usepackage[options]{xy}

options XY-pic

104

. . all
LATEX XY .
XY-pic .
.

\begin{displaymath}
\xymatrix{A & B \\
C & D }
\end{displaymath}

\xymatrix . 22
. \ar
.

\begin{displaymath}
\xymatrix{ A \ar[r] & B \ar[d] \\
D \ar[u] & C \ar[l] }
\end{displaymath}

/B

AO

Do

.
(up, down, right, left) .

\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[r] & B \\
D
& C }
\end{displaymath}

/B
@@
@@
@

A@
@

.
.

\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[drr] & & \\
B
& C & D }
\end{displaymath}

A@
PPP
@@ PPP
@@ PPP
@@ PPP
PP'

B
C
D

.
.

5.3 XY-pic

105

\begin{displaymath}
\xymatrix{
A \ar[r]^f \ar[d]_g &
B \ar[d]^{g} \\
D \ar[r]_{f}
& C }
\end{displaymath}

/B

f0

g0

/C

.
,
. |.

.

\begin{displaymath}
\xymatrix{
A \ar[r]|f \ar[d]|g &
B \ar[d]|{g} \\
D \ar[r]|{f}
& C }
\end{displaymath}

g0

/B

f0

/C

\ar[...]|\hole .
.
.

\shorthandoff{"}
\begin{displaymath}
\xymatrix{
\bullet\ar@{->}[rr] && \bullet\\
\bullet\ar@{.<}[rr] && \bullet\\
\bullet\ar@{~)}[rr] && \bullet\\
\bullet\ar@{=(}[rr] && \bullet\\
\bullet\ar@{~/}[rr] && \bullet\\
\bullet\ar@{^{(}->}[rr] && \bullet\\
\bullet\ar@2{->}[rr] && \bullet\\
\bullet\ar@3{->}[rr] && \bullet\\
\bullet\ar@{=+}[rr]
&& \bullet
}
\end{displaymath}
\shorthandon{"}

/o /o /o /o /o /o /o ? _

/o /o /o /o /o /o /o

+3

_*4

106
.
\begin{displaymath}
\xymatrix{
\bullet \ar[r]
\ar@{.>}[r] &
\bullet
}
\end{displaymath}

\begin{displaymath}
\xymatrix{
\bullet \ar@/^/[r]
\ar@/_/@{.>}[r] &
\bullet
}
\end{displaymath}

'

. XY-pic
XY-pic
.

LATEX

.
.
, LATEX
,
.
LATEX , LATEX

.

, ,

,
(index) . LATEX

. .
\begin{lscommand}
\ci{dum}
\end{lscommand}

\dum

lscommand ,
. \ci
.
\dum , \dum
.

LATEX

108

lscommand
.
,

, .

1.1

.
\newcommand{name}[num]{denition}

. name
, denition. num
, 9
. 0.
, .
.
\tnss . "The Not So Short
Introduction to LATEX 2 " .
.
\newcommand{\tnss}{The not
so Short Introduction to
\LaTeXe}
This is \tnss \ldots{}
\tnss

This is The not so Short Introduction to


LATEX 2 . . . The not so Short Introduction
to LATEX 2

num . #1
. ,
#2 .
\newcommand{\txsit}[1]
{This is the \emph{#1} Short
Introduction to \LaTeXe}
% in the document body:
\begin{itemize}
\item \txsit{not so}
\item \txsit{very}
\end{itemize}

This is the not so Short Introduction


to LATEX 2
This is the very Short Introduction to
LATEX 2

, LATEX
. \renewcommand

6.1 , ,

109

. \renewcommand
\newcommand .
\providecommand . \newcommand
, LATEX 2
.
LATEX .
6 .

1.2

\newcommand \newenvironment
. .
\newenvironment{name}[num]{before}{after }

\newenvironment . before
. after
\end{name} .
\newenvironment .
\newenvironment{king}
{\rule{1ex}{1ex}%
\hspace{\stretch{1}}}
{\hspace{\stretch{1}}%
\rule{1ex}{1ex}}

My humble subjects . . .

\begin{king}
My humble subjects \ldots
\end{king}

num \newcommand . LATEX


,
, \renewenvironment .
\newenvironment .
. \rule
124 , \stretch 117 . \hspace
117 .

1.3


. ,

LATEX

110


. (block) \ignorespaces
.

. \ignorespacesafterend LATEX
\ignorespaces .
.
\newenvironment{simple}%
{\noindent}%
{\par\noindent}
\begin{simple}
See the space\\to the left.
\end{simple}
Same\\here.

\newenvironment{correct}%
{\noindent\ignorespaces}%
{\par\noindent\ignorespacesafterend}
\begin{correct}
No space\\to the left.
\end{correct}
Same\\here.

1.4

See the space


to the left.
Same
here.

No space
to the left.
Same
here.

LATEX

Unix
Makefile .
LATEX
.
.
\usepackage{ifthen}
\ifthenelse{\equal{\blackandwhite}{true}}{
% "black and white" mode; do something..
}{
% "color" mode; do something different..
}
LATEX .
latex \newcommand{\blackandwhite}{true}\input{test.tex}

6.2

111

\blackandwhite \input
. \blackandwhite false
. \blackandwhite

.

1.5

,
. LATEX
. \usepackage
.
% Demo Package by Tobias Oetiker
\ProvidesPackage{demopack}
\newcommand{\tnss}{The not so Short Introduction to \LaTeXe}
\newcommand{\txsit}[1]{The \emph{#1} Short
Introduction to \LaTeXe}
\newenvironment{king}{\begin{quote}}{\end{quote}}

6.1: Example Package.



. .sty .
,
\ProvidesPackage{package name}

. \ProvidesPackage
LATEX ,
.
6.1
.

2
2.1

LATEX (/, , . . . )
.

LATEX

112

. 6.1 6.2 .
,
.
6.3 .
{\small The small and
\textbf{bold} Romans ruled}
{\Large all of great big
\textit{Italy}.}

The small and bold Romans ruled

great big Italy.

all of

LATEX 2 .
, ()/()
.

.
.
6.4 .
({) .

. LAT X

E

6.1:
\textrm{...}
\texttt{...}

roman
typewriter

\textsf{...}

sans serif

\textmd{...}

medium

\textbf{...}

bold face

\textup{...}
\textsl{...}

upright
slanted

\textit{...}
\textsc{...}

italic
Small Caps

\emph{...}

emphasized

\textnormal{...}

document font

6.2:
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large

tiny font

very small font

quite small font

small font

\Large

larger font

\LARGE

very large font

\huge

huge

\Huge

largest

normal font

large font

6.2

113

6.3:
size
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge

10pt (default)
5pt
7pt
8pt
9pt
10pt
12pt
14pt
17pt
20pt
25pt

11pt option
6pt
8pt
9pt
10pt
11pt
12pt
14pt
17pt
20pt
25pt

12pt option
6pt
8pt
10pt
11pt
12pt
14pt
17pt
20pt
25pt
25pt

He likes {\LARGE large and


{\small small} letters}.

He likes

large and small letters.

.
(\par \\) .
} .
\par 1 .
1 \par

6.4:
\mathrm{...}
\mathbf{...}
\mathsf{...}
\mathtt{...}
\mathit{...}
\mathcal{...}
\mathnormal{...}

Roman Font
Boldface Font
Sans Serif Font
Typewriter Font
Italic Font
CALLIGRAPHIC FONT
N ormal F ont

LATEX

114

{\Large Dont read this! It is not


true. You can believe me!\par}

Dont read this! It is not true.


You can believe me!

{\Large This is not true either.


But remember I am a liar.}\par

This is not true either. But remember I am a liar.


, (environment)
.
\begin{Large}
This is not true.
But then again, what is these
days \ldots
\end{Large}

This is not true. But then


again, what is these days . . .

2.2

! !

,
. LATEX
. LATEX
.

\newcommand
.
\newcommand{\oops}[1]{\textbf{#1}}
Do not \oops{enter} this room,
its occupied by a \oops{machine}
of unknown origin and purpose.

Do not enter this room, its occupied by a


machine of unknown origin and purpose.

() \textbf
. \textbf
. \textbf
()
. \oops
.

6.3

2.3

115

.2

you

Remember The M
RE fonts
more readable and beautiful it becom

3
3.1

es.

use

in a document,

the

, linespread .

\linespread{factor }

. factor
1.3 , (
) \linespread{1.6} .
1.3
\linespread .
. \baselineskip
.
\setlength{\baselineskip}{1.5\baselineskip}

{\setlength{\baselineskip}%
{1.5\baselineskip}
This paragraph is typeset with the
baseline skip set to 1.5 of what
it was before. Note the par command
at the end of the paragraph.\par}
This paragraph has a clear purpose,
it shows that after the curly brace
has been closed, everything is back
to normal.

This paragraph is typeset with the baseline


skip set to 1.5 of what it was before. Note
the par command at the end of the paragraph.
This paragraph has a clear purpose, it shows
that after the curly brace has been closed, everything is back to normal.

setspace .
2 ,
. []
3 1.75 .
1.3 . []

LATEX

116

3.2

LATEX .
.

\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}


. 0
.
plus minus TEX

.

.
.
\tableofcontents .
.

.

.4

\indent

\parindent 0
.
.

\noindent

\section .
4 () indentrst . tools
.

6.3

3.3

117

LATEX .
.
\hspace{length}

\hspace ( ) \hspace*
. length
, 6.5 .
This\hspace{1.5cm}is a space
of 1.5 cm.

This

is a space of 1.5 cm.

.
\stretch{n}

\hspace{\stretch{n}} stretch n
.
x\hspace{\stretch{1}}
x\hspace{\stretch{3}}x


. em ex
.

{\Large{}big\hspace{1em}y}\\
{\tiny{}tin\hspace{1em}y}

3.4

big y
tin

(paragraph), (section), (subsection) LATEX



.
.
\vspace{length}

.

\vspace \vspace* .

LATEX

118

6.5: TEX
mm
cm
in
pt
em
ex

millimetre 1/25 inch


centimetre = 10 mm
inch = 25.4 mm
point 1/72 inch 13 mm
approx width of an M in the current font
approx height of an x in the current font

\stretch \pagebreak
.
Some text \ldots
\vspace{\stretch{1}}
This goes onto the last line of the page.\pagebreak


\\[length]

.
\bigskip \smallskip ()
.

LATEX 2 \documentclass .
,
. .
6.2 . tools
layout .5
! . . .
. . LATEX ,

.
5 macros/latex/required/tools

6.4

119

?
6

?
6

Margin
Notes

6
i

?
?Header
6

Body

- 9i

i 10

3i

1i-

?
6
i

?
Footer

11

1
3
5
7
9
11

one inch + \hoffset


\oddsidemargin = 28pt
or \evensidemargin
\headheight = 13pt
\textheight = 598pt
\marginparsep = 7pt
\footskip = 25pt
\hoffset = 0pt
\paperwidth = 597pt

2
4
6
8
10

one inch + \voffset


\topmargin = 23pt
\headsep = 18pt
\textwidth = 345pt
\marginparwidth = 115pt
\marginparpush = 5pt (not shown)
\voffset = 0pt
\paperheight = 845pt

6.2:

LATEX

120

MS , LATEX
. 6
. 66() .
LATEX . 66
.
.
.
.
.
,
LATEX
. .
.
\setlength{parameter }{length}

.
\addtolength{parameter }{length}

\setlength
. , 1
.
\addtolength{\hoffset}{-0.5cm}
\addtolength{\textwidth}{1cm}
calc . \setlength
.

.

LATEX .
( )
.
\textwidth .
6

6.6

121

(text) variable .
\settoheight{variable}{text}
\settodepth{variable}{text}
\settowidth{variable}{text}

.
\flushleft
\newenvironment{vardesc}[1]{%
\settowidth{\parindent}{#1:\ }
\makebox[0pt][r]{#1:\ }}{}
\begin{displaymath}
a^2+b^2=c^2
\end{displaymath}
\begin{vardesc}{Where}$a$,
$b$ -- are adjoin to the right
angle of a right-angled triangle.
$c$ -- is the hypotenuse of
the triangle and feels lonely.

a2 + b2 = c2
Where: a, b are adjoin to the right angle
of a right-angled triangle.
c is the hypotenuse of the triangle
and feels lonely.
d nally does not show up here at
all. Isnt that puzzling?

$d$ -- finally does not show up


here at all. Isnt that puzzling?
\end{vardesc}

vardesc . \settowidth
\parindent (#1) :\
.
. Where

. \settowidth
\newlength
.

LATEX .
, .
.
,

LATEX

122

.
, TEX
. .
. .
LATEX .
, .
, tabular \includegraphics .
.
(textwidth)
.
.
,
\parbox[pos]{width}{text}

.
\begin{minipage}[pos]{width} text \end{minipage}

pos c, t b
. width . minipage parbox
, parbox
minipage
.
\parbox .
.
\mbox ,
. \mbox
. ,
.
\makebox[width][pos]{text}

width .7
\width, \height, \depth, \totalheight .
text . pos
c, l, r, s , center(
7 , . 0pt ,
.

6.6

123

), ushleft ( ), ushright( ), spread(


) .
\framebox \makebox ,
.
\makebox \framebox
.

\makebox[\textwidth]{%
c e n t r a l}\par
\makebox[\textwidth][s]{%
s p r e a d}\par
\framebox[1.1\width]{Guess Im
framed now!} \par
\framebox[0.8\width][r]{Bummer,
I am too wide} \par
\framebox[1cm][l]{never
mind, so am I}
Can you read this?

c e n t r a l
s

Guess Im framed now!


Bummer, I am too wide
never mind,
Can you
so am
readI this?

(horizontal) .
(vertical) .8 LATEX
.

\raisebox{lift}[extend-above-baseline][extend-below-baseline]{text}

.
, \width, \height, \depth, \totalheight text
.

\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}}
he shouted but not even the next
one in line noticed that something
terrible had happened to him.

8 ,

Aaaaaaa
rg
h

he shouted but not even


the next one in line noticed that something
terrible had happened to him.

LATEX

124

.
\rule[lift]{width}{height}

.
\rule{3mm}{.1pt}%
\rule[-1mm]{5mm}{1cm}%
\rule{3mm}{.1pt}%
\rule[1mm]{1cm}{5mm}%
\rule{3mm}{.1pt}

.
\rule .
(\rule{0pt}{height})
. strut .
. tabular (row)
.
\begin{tabular}{|c|}
\hline
\rule{1pt}{4ex}Pitprop \ldots\\
\hline
\rule{0pt}{4ex}Strut\\
\hline
\end{tabular}

Pitprop . . .
Strut


[1] Leslie Lamport.

LATEX: A Document Preparation System.

Addison-

Wesley, Reading, Massachusetts, second edition, 1994, ISBN 0-201-529831.


[2] Donald E. Knuth. The TEXbook, Volume A of Computers and Typesetting,
Addison-Wesley, Reading, Massachusetts, second edition, 1984, ISBN 0201-13448-9.
[3] Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle,
and Chris Rowley. The LATEX Companion, (2nd Edition). Addison-Wesley,
Reading, Massachusetts, 2004, ISBN 0-201-36299-6.
[4] Michel Goossens, Sebastian Rahtz and Frank Mittelbach.
Graphics Companion.

The LATEX
Addison-Wesley, Reading, Massachusetts, 1997,

ISBN 0-201-85469-4.
[5] LATEX LATEX Local Guide
. .
local.tex .
. LATEX
.
[6] LATEX3 Project Team. LATEX 2 for authors. usrguide.tex
LATEX 2 .
[7] LATEX3 Project Team.
LATEX 2 for Class and Package writers.
clsguide.tex LATEX 2 .
[8] LATEX3 Project Team. LATEX 2 Font selection. fntguide.tex
LATEX 2 .
[9] D. P. Carlisle. Packages in the graphics bundle. graphics
grfguide.tex , LATEX .

126

[10] Rainer Schpf, Bernd Raichle, and Chris Rowley. A New Implementation
of LATEXs verbatim Environments. tools
verbatim.dtx . LATEX .
[11] Vladimir Volovich, Werner Lemberg and LATEX3 Project Team. Cyrillic
languages support in LATEX. cyrguide.tex LATEX 2
.
[12] Graham Williams. The TeX Catalogue TEX LATEX
. CTAN:/tex-archive/help/Catalogue/catalogue.
html .
[13] Keith Reckdahl. Using EPS Graphics in LATEX 2 Documents,
EPS LATEX EPS
. CTAN:/tex-archive/info/epslatex.
ps .
[14] Kristoer H. Rose. XY-pic Users Guide. XY-pic CTAN
.
[15] John D. Hobby. A Users Manual for MetaPost. http://cm.bell-labs.
com/who/hobby/ .
[16] Alan Hoenig. TEX Unbound. Oxford University Press, 1998, ISBN 0-19509685-1; 0-19-509686-X (pbk.)
[17] Urs Oswald. Graphics in LATEX 2 , ( picture
Java ), MetaPost A Tutorial. http://www.ursoswald.ch .


", 21

abstract, 41

", 34

Acrobat Reader, 79

"-, 34

acute, 25

"---, 34

\addtolength, 120

"<, 34

, 25

"=, 34

aeguill, 80

">, 34

\Alph, 34

", 34

\alph, 34

$, 49

amsbsy, 61

\(, 49

amsfonts, 51, 69

\), 49

amsmath, 50, 51, 5456, 58, 59, 61

\,, 51, 56
-, 22
, 22
\-, 20
, 22

amssymb, 51, 63
\and, 37
ansinew, 27
\appendix, 36, 37
applemac, 27

, 22

\ar, 104

., space after, 35

\arccos, 53

. . . , 24

\arcsin, 53

\:, 56

\arctan, 53

\;, 56

\arg, 53

\@, 35

array, 56, 57

\[, 50

article , 10

\\, 19, 40, 42, 118

\Asbuk, 34

\\*, 19

\asbuk, 34

\], 50

\author, 36, 85

~, 35
B5 paper, 11
A4 paper, 11

babel, 20, 21, 26, 33, 34

A5 paper, 11

\backmatter, 37

, 25

\backslash, 6

128
base font size, 11

color, 82, 87, 90

\baselineskip, 115

comment, 7

beamer, 30, 90, 91

comment, 7

\begin, 39, 94, 103

comments, 7

\bibitem, 73, 74

\cos, 53

bibliography, 73

\cosh, 53

\Big, 55

\cot, 53

\big, 55

\coth, 53

\Bigg, 55

cp1251, 27

\bigg, 55

cp850, 27

\biggl, 59

cp866nav, 27

\biggr, 59

\csc, 53

\bigskip, 118
\binom, 54
block, 92
bm, 61
\bmod, 53

\date, 36
dcolumn, 43
\ddots, 55
decimal alignment, 43

bold face, 112

\deg, 53

bold symbols, 51, 61

\depth, 122, 123

\boldmath, 61
\boldsymbol, 61
book , 10
brazilian, 31

description, 39
\det, 53
Deutsch, 32
dhucs, 2830, 88
\dim, 53

calc, 120
\caption, 46, 47

displaymath, 50
\displaystyle, 59

\cdot, 53

doc, 13

\cdots, 55

document font size, 11

Center, 40

\documentclass, 10, 11, 14, 20

\chapter, 36

dotless and , 25

\chaptermark, 76

double sided, 11

\ci, 107

\dq, 33

\circle, 97

\dum, 107

\circle*, 97
\cite, 73, 74
CJK, 29

eepic, 93, 97
\emph, 38, 112

\cleardoublepage, 46

empty, 12

\clearpage, 46

Encapsulated PostScript, 71, 82

\cline, 42

encodings

129

font

.dtx, 14

LGR, 28

.dvi, 14, 72

OT1, 28

.eps, 72

T1, 28, 33

.fd, 14

T2*, 33

.idx, 14, 75

T2A, 28, 33

.ilg, 14

T2B, 28

.ind, 14, 75

T2C, 28

.ins, 14

X2, 28

.lof, 14
.log, 14

input
ansinew, 27

.lot, 14

applemac, 27

.sty, 12, 77

cp1251, 27

.tex, 9, 12

cp850, 27

.toc, 14

cp866nav, 27
koi8-ru, 27, 33
latin1, 27
macukr, 27
utf8, 27
\end, 39, 94

fancyhdr, 75, 76
\fbox, 21
Figure, 44
figure, 45
\flq, 33
\flqq, 33

\enumBul, 34

Flushleft, 40

\enumEng, 34

flushright, 40

enumerate, 39
\enumLat, 34
epic, 93
eqnarray, 57
\eqref, 50
equation, 50
\EUR, 24

foiltex, 10
\foldera, 101
\folderb, 101
font
\footnotesize, 112
\Huge, 112
\huge, 112

europs, 23

\LARGE, 112

eurosym, 23

\Large, 112

executive paper, 11

\large, 112

\exp, 53

\mathbf, 113

exponent, 52

\mathcal, 113

exscale, 13, 55

\mathit, 113

extension

\mathnormal, 113

.aux, 14

\mathrm, 113

.cls, 14

\mathsf, 113

130
\mathtt, 113

\frqq, 33

\normalsize, 112

\fussy, 20

\scriptsize, 112
\small, 112
\textbf, 112
\textit, 112
\textmd, 112
\textnormal, 112
\textrm, 112
\textsc, 112
\textsf, 112

\gcd, 53
geometry, 77
GhostScript, 71
graphicx, 71, 82, 87, 89, 90
grave, 25
HLATEX, 2830, 87, 132
\headheight, 119
textttheadings, 12

\textsl, 112

\headsep, 119

\texttt, 112

\height, 122, 123

\textup, 112

\hline, 42

\tiny, 112

\hom, 53

font encodings, 27

horizontal

LGR, 28

dots, 55

OT1, 28

line, 52

T1, 28, 33

space, 117

T2*, 33

\href, 84, 85, 87

T2A, 28, 33

\hspace, 109, 117

T2B, 28

\Huge, 112

T2C, 28

\huge, 112

X2, 28
font size, 112
fontenc, 13, 27, 33
\footnote, 38, 47
\footnotemark, 38

hyperref, 22, 79, 82, 83, 8790


hypertext, 78
hyphenat, 77
\hyphenation, 20
\idotsint, 56

\footnotesize, 112

ifpdf, 86

\footnotetext, 38

\ifpdf, 86

\footskip, 119
formulae, 49
\frac, 53
frame, 92

ifthen, 13
\ignorespaces, 110
\ignorespacesafterend, 110
\iiiint, 56

\framebox, 123

\iiint, 56

\frenchspacing, 33, 35

\iint, 56

\frontmatter, 37

\include, 15

\frq, 33

\includegraphics, 72, 82, 86, 122

131

\includeonly, 15

latin1, 27

\indent, 116

layout, 118

indentrst, 116

\ldots, 24, 55

index, 74

\left, 55

\index, 74, 75
\inf, 53
\input, 15, 111
input encodings
ansinew, 27

left alighted, 40
\leftmark, 76
legal paper, 11
letter paper, 11
\lg, 53

applemac, 27

LGR, 28

cp1251, 27

ligature, 24

cp850, 27

\lim, 53

cp866nav, 27

\liminf, 53

koi8-ru, 27, 33

\limsup, 53

latin1, 27

\line, 96, 101

macukr, 27

\linebreak, 19

utf8, 27

\linespread, 115

inputenc, 13, 27, 33


\int, 54

\linethickness, 98, 99, 101


\listoffigures, 46

international, 26

\listoftables, 46

italic, 112

\ln, 53

Itemize, 39

\log, 53
long equations, 57

\ker, 53
Knuth, Donald E., 1

longtable, 44
lscommand, 107

koi8-ru, 27, 33
macukr, 27
\label, 37, 50
Lamport, Leslie, 2

\mainmatter, 37, 85
\makebox, 122, 123

\LARGE, 112

makeidx, 13, 74

\Large, 112

makeidx package, 74

\large, 112
EX , 3
\LaTeX, 21
LAT

\makeindex, 74
makeindex program, 74
\maketitle, 36

LATEX 2.09, 2

\marginparpush, 119

LATEX 2 , 2

\marginparsep, 119

LATEX3, 2, 4

\marginparwidth, 119

\LaTeXe, 21
latexsym, 13

\markleft, 76
marvosym, 24

132
math, 49

\nonumber, 58

math font size, 59

\nopagebreak, 19

math spacing, 56

\normalsize, 112

\mathbb, 51

\not, 64

\mathbf, 113
\mathcal, 113
mathematical

\oddsidemargin, 119
, 25

accents, 52

one column, 11

delimiter, 55

option, 10

functions, 53

OT1, 28

minus, 22
\mathit, 113

\oval, 99, 101


\overbrace, 52

\mathnormal, 113

overfull hbox, 20

\mathrm, 59, 113

\overleftarrow, 53

mathrsfs, 69
\mathsf, 113
mathtext, 33
\mathtt, 113
\max, 53
\mbox, 21, 25, 51, 122
METAPOST, 82
\min, 53
minimal , 10
minipage, 122
Mittelbach, Frank, 2
mltex, 81
mltex, 81
\multicolumn, 43
\multiput, 95, 98, 99

\overline, 52
\overrightarrow, 53
package, 11
packages
aeguill, 80
page style, 12
empty, 12
headings, 12
plain, 12
\pagebreak, 19
\pageref, 37, 78
\pagestyle, 12
paper size, 11, 79
\paperheight, 119
\paperwidth, 119

\newcommand, 108, 109

\par, 113

\newenvironment, 109

\paragraph, 35

\newlength, 121

\parbox, 122

\newline, 19

parbox, 122

\newpage, 19

\parindent, 116, 121

\newsavebox, 100

\parskip, 116

\newtheorem, 60

\part, 35, 36

\noindent, 116

PDF, 78

\nolinebreak, 19

PDFLATEX, 90

133

pdfLATEX, 80, 90

\right, 55, 57

pdfLAT

\right., 55

EX, 79
pdfTEX, 79
pdftricks, 90
\phantom, 47, 58

\rightmark, 76
roman, 112
\rule, 109, 124

picture, 93, 94, 97, 98


plain, 12

sans serif, 112


\savebox, 100

\pmb, 61

Scandinavian letters, 25

\pmod, 53
Portugus, 31
PostScript, 4, 9, 29, 46, 71, 72, 80
82, 89, 90, 94
Encapsulated, 71, 82
ppower4, 90
\Pr, 53
preamble, 8
\printindex, 75
proc , 10
\prod, 54
prosper, 90
\protect, 47
\providecommand, 109
\ProvidesPackage, 111
pspicture, 94
pstricks, 90, 93, 94, 97
\put, 95100
pxfonts, 81
\qbezier, 93, 95, 102
\qquad, 51, 56
\quad, 51, 56

\scriptscriptstyle, 59
\scriptsize, 112
\scriptstyle, 59
\sec, 53
\section, 35, 47
\sectionmark, 76
\selectlanguage, 26
\setlength, 94, 116, 120
setspace, 115
\settodepth, 121
\settoheight, 121
\settowidth, 121
showidx, 75
\sin, 53
single sided, 11
\sinh, 53
slanted, 112
slides , 10
\sloppy, 20
\small, 112
Small Caps, 112
\smallskip, 118

quotation, 40

\sqrt, 52

Quote, 40

\stackrel, 54
\stretch, 109, 117

\raisebox, 123

strut, 124

\ref, 37, 50, 78

subarray, 54

\renewcommand, 108, 109


\renewenvironment, 109
report , 10

\subparagraph, 35
subscript, 52
\subsection, 35

134
\subsectionmark, 76

\thicklines, 96, 99, 101

\substack, 54

\thinlines, 99, 101

\subsubsection, 35

\thispagestyle, 12

\sum, 54

tilde, 22

\sup, 53

tilde ( ~), 35

superscript, 54

\tiny, 112

syntonly, 13, 15

title, 11
\title, 36

T1, 28, 33
T2*, 33
T2A, 28, 33
T2B, 28
T2C, 28
table, 44, 45

\tnss, 108
\today, 21
\topmargin, 119
\totalheight, 122, 123
two column, 11
txfonts, 81

\tableofcontents, 36
tabular, 42, 44, 122
\tan, 53
\tanh, 53
\TeX, 21
\texorpdfstring, 86
\text, 51
\textbackslash, 6

ucs, 27, 29
umlaut, 25
\underbrace, 52
underfull hbox, 20
\underline, 38, 52
unicode, 29
\unitlength, 94, 96

\textbf, 112

units, 118

\textcelsius, 23

upright, 112

textcomp, 23
\texteuro, 23

URL, 22
url, 22

\textheight, 119

\url, 22

\textit, 112

\usebox, 100

\textmd, 112

\usepackage, 12, 23, 26, 27, 111

\textnormal, 112

utf8, 27

\textrm, 59, 112


\textsc, 112

\vdots, 55

\textsf, 112

\vec, 53

\textsl, 112

\vector, 96

\textstyle, 59
\texttt, 112

vectors, 53
\verb, 41, 42

\textup, 112

verbatim, 7, 76, 77

\textwidth, 119

verbatim, 41, 76, 77

thebibliography, 73

\verbatim*, 42


\verbatiminput, 77

135
, 26, 32

verse, 40
vertical dots, 55
\vspace, 117
whitespace

, 21
, 44

after commands, 6

, 24

at the start of a line, 5

, 6

\widehat, 52

\(, 49

\widetilde, 52

\), 49

\width, 122, 123

\,, 51, 56

Word, 75

\-, 20

www, 22

\:, 56

WYSIWYG, 2, 3

\;, 56
\@, 35

X2, 28

\[, 50

Xpdf, 79

\\, 19, 40, 42, 118

xy, 103

\\*, 19

\xymatrix, 104

, 25
, 54
, 5
, 6
, 54
, 7
, 52
, 11, 71

\], 50
\addtolength, 120
\Alph, 34
\alph, 34
\and, 37
\appendix, 36, 37
\ar, 104
\arccos, 53
\arcsin, 53
\arctan, 53

, 111

\arg, 53

, 111

\Asbuk, 34

, 11

\asbuk, 34
\author, 36, 85

\backmatter, 37

, 17

\backslash, 6

, 11

\baselineskip, 115

, 117

\begin, 39, 94, 103

, 6

\bibitem, 73, 74

, 22

\Big, 55

, 23

\big, 55

136
\Bigg, 55

\enumBul, 34

\bigg, 55

\enumEng, 34

\biggl, 59

\enumLat, 34

\biggr, 59

\eqref, 50

\bigskip, 118

\EUR, 24

\binom, 54

\exp, 53

\bmod, 53

\fbox, 21

\boldmath, 61

\flq, 33

\boldsymbol, 61

\flqq, 33

\caption, 46, 47

\foldera, 101

\cdot, 53

\folderb, 101

\cdots, 55

\footnote, 38, 47

\chapter, 36

\footnotemark, 38

\chaptermark, 76

\footnotetext, 38

\ci, 107

\footskip, 119

\circle, 97

\frac, 53

\circle*, 97

\framebox, 123

\cite, 73, 74

\frenchspacing, 33, 35

\cleardoublepage, 46

\frontmatter, 37

\clearpage, 46

\frq, 33

\cline, 42

\frqq, 33

\cos, 53

\fussy, 20

\cosh, 53

\gcd, 53

\cot, 53

\headheight, 119

\coth, 53

\headsep, 119

\csc, 53

\height, 122, 123

\date, 36

\hline, 42

\ddots, 55

\hom, 53

\deg, 53

\href, 84, 85, 87

\depth, 122, 123

\hspace, 109, 117

\det, 53

\hyphenation, 20

\dim, 53

\idotsint, 56

\displaystyle, 59

\ifpdf, 86

\documentclass, 10, 11, 14, 20

\ignorespaces, 110

\dq, 33

\ignorespacesafterend, 110

\dum, 107

\iiiint, 56

\emph, 38, 112

\iiint, 56

\end, 39, 94

\iint, 56

137

\include, 15

\mbox, 21, 25, 51, 122

\includegraphics, 72, 82, 86, 122

\min, 53

\includeonly, 15

\multicolumn, 43

\indent, 116

\multiput, 95, 98, 99

\index, 74, 75

\newcommand, 108, 109

\inf, 53

\newenvironment, 109

\input, 15, 111

\newlength, 121

\int, 54

\newline, 19

\ker, 53

\newpage, 19

\label, 37, 50

\newsavebox, 100

\LaTeX, 21

\newtheorem, 60

\LaTeXe, 21

\noindent, 116

\ldots, 24, 55

\nolinebreak, 19

\left, 55

\nonumber, 58

\leftmark, 76

\nopagebreak, 19

\lg, 53

\not, 64

\lim, 53

\oddsidemargin, 119

\liminf, 53

\oval, 99, 101

\limsup, 53

\overbrace, 52

\line, 96, 101

\overleftarrow, 53

\linebreak, 19

\overline, 52

\linespread, 115

\overrightarrow, 53

\linethickness, 98, 99, 101

\pagebreak, 19

\listoffigures, 46

\pageref, 37, 78

\listoftables, 46

\pagestyle, 12

\ln, 53

\paperheight, 119

\log, 53

\paperwidth, 119

\mainmatter, 37, 85

\par, 113

\makebox, 122, 123

\paragraph, 35

\makeindex, 74

\parbox, 122

\maketitle, 36

\parindent, 116, 121

\marginparpush, 119

\parskip, 116

\marginparsep, 119

\part, 35, 36

\marginparwidth, 119

\phantom, 47, 58

\markleft, 76

\pmb, 61

\mathbb, 51

\pmod, 53

\mathrm, 59

\Pr, 53

\max, 53

\printindex, 75

138
\prod, 54

\subsubsection, 35

\protect, 47

\sum, 54

\providecommand, 109

\sup, 53

\ProvidesPackage, 111

\tableofcontents, 36

\put, 95100

\tan, 53

\qbezier, 93, 95, 102

\tanh, 53

\qquad, 51, 56

\TeX, 21

\quad, 51, 56

\texorpdfstring, 86

\raisebox, 123

\text, 51

\ref, 37, 50, 78

\textbackslash, 6

\renewcommand, 108, 109

\textcelsius, 23

\renewenvironment, 109

\texteuro, 23

\right, 55, 57

\textheight, 119

\right., 55

\textrm, 59

\rightmark, 76

\textstyle, 59

\rule, 109, 124

\textwidth, 119

\savebox, 100

\thicklines, 96, 99, 101

\scriptscriptstyle, 59

\thinlines, 99, 101

\scriptstyle, 59

\thispagestyle, 12

\sec, 53

\title, 36

\section, 35, 47

\tnss, 108

\sectionmark, 76

\today, 21

\selectlanguage, 26

\topmargin, 119

\setlength, 94, 116, 120

\totalheight, 122, 123

\settodepth, 121

\underbrace, 52

\settoheight, 121

\underline, 38, 52

\settowidth, 121

\unitlength, 94, 96

\sin, 53

\url, 22

\sinh, 53

\usebox, 100

\sloppy, 20

\usepackage, 12, 23, 26, 27, 111

\smallskip, 118

\vdots, 55

\sqrt, 52

\vec, 53

\stackrel, 54

\vector, 96

\stretch, 109, 117

\verb, 41, 42

\subparagraph, 35

\verbatim*, 42

\subsection, 35

\verbatiminput, 77

\subsectionmark, 76

\vspace, 117

\substack, 54

\widehat, 52

139

\widetilde, 52

\width, 122, 123

, 54

\xymatrix, 104

, 8

, 53

, 55

, 11

, 55

, 52

, 52
, 7

, 6

, 115
, 115

, 53

, 19

, 53

, 24

, 51
, 54
, 22

, 12

, 37

, 36

, 43

, 73

, 57

, 74

, 117

, 11

, 117
, 55
, 49

, 71, 82
, 1

, 24

, 5

, 25

, 11

, 12

, 22

, 7, 11, 107

, 22

aeguill, 80

, 6

amsbsy, 61

, 79

amsfonts, 51, 69

, 44

amsmath, 50, 51, 5456, 58, 59,

, 5

61

2, 11

amssymb, 51, 63

(parameter), 6

babel, 20, 21, 26, 33, 34

1, 11

beamer, 30, 90, 91

, 8

bm, 61

140
calc, 120

textcomp, 23

CJK, 29

txfonts, 81

color, 82, 87, 90

ucs, 27, 29

comment, 7

unicode, 29

dcolumn, 43

url, 22

dhucs, 2830, 88

verbatim, 7, 76, 77

doc, 13

xy, 103

eepic, 93, 97

, 118

epic, 93

, 31

europs, 23

, 13

eurosym, 23

, 42

exscale, 13, 55

, 11

fancyhdr, 75, 76

, 47

fontenc, 13, 27, 33

, 31

geometry, 77

makeindex, 74

graphicx, 71, 82, 87, 89, 90


hyperref, 22, 79, 82, 83, 8790

hyphenat, 77

, 78

ifpdf, 86

, 22

ifthen, 13

, 54

indentrst, 116

, 24

inputenc, 13, 27, 33

, 53

latexsym, 13

, 12

layout, 118

makeidx, 74

Center, 40

makeidx, 13, 74

Figure, 44

marvosym, 24

Flushleft, 40

mathrsfs, 69

Itemize, 39

mathtext, 33

Quote, 40

mltex, 81

abstract, 41

pdftricks, 90

array, 56, 57

ppower4, 90

block, 92

prosper, 90

comment, 7

pstricks, 90, 93, 94, 97

description, 39

pxfonts, 81

displaymath, 50

setspace, 115

enumerate, 39

showidx, 75

eqnarray, 57

syntonly, 13, 15

equation, 50


figure, 45
flushright, 40
frame, 92
longtable, 44
lscommand, 107
math, 49
minipage, 122
parbox, 122
picture, 93, 94, 97, 98
pspicture, 94
quotation, 40
subarray, 54
table, 44, 45
tabular, 42, 44, 122
thebibliography, 73
verbatim, 41, 76, 77
verse, 40

141

(v. 4.17)
KTUG lshortkr CTAN LATEX
. HLATEX
LATEX
.
KTUG .
PDF . ,
, , 3.20
.
HLATEX EUC-KR
4.17 . lshort-kr unicode/dhucs
.

. .

.
.
LATEX
.
.
. ,
,
. (
).
. LATEX
LATEX
. LATEX

.
.


.
.
.

Tobias Oetiker .

.
lshort Oetiker
. KTUG ,
KTUG , dhucs
dhhangul , KTUG
, , KTUG Collection ,
KTUG lshort-kr
.
.
,
.
.

TEX .
.
.
.
. ,
. KTUG .
.
: , , MIKA, , .
. . .
info@mail.ktug.or.kr

(v. 3.20)
LATEX .
LATEX 2 The LATEX Companion [3] , The TEXbook
,
.
,
. , lshort
(
,
.), lshort
,
,
.
, 1
. ,
, LATEX
.
, , 3.1
. ,

lshort (!) .
8.1
.
LATEX .
TEX ,
.
.
1

http://www.doeun.pe.kr

,
1
2
3
4
5

* ,
.

8.1:
. , LATEX 2
HLATEX .
, LATEX 2
HLATEX ,
. LATEX
. ,
TEX .
LATEX
.
.
.

. .
CTAN URL
.
.
, ,
. LATEX
. HLATEX
. LATEX .
.
.
: (karnes@doeun.pe.kr), (pear@postech.ac.kr),
(webmaster@texworld.pe.kr), (dbunix@kitinet.co.kr)

You might also like