2018 - Sebastien Le Roux - Basic tutorial to LaTeX programming.pdf
(
928 KB
)
Pobierz
A
L TEX programming
https://www.latex-project.org/
A
Basic tutorial to LTEX programming
Sébastien L
E
R
OUX
sebastien.leroux@ipcms.unistra.fr
I
NSTITUT DE
P
HYSIQUE ET DE
C
HIMIE DES
M
ATÉRIAUX DE
S
TRASBOURG
,
D
ÉPARTEMENT DES
M
ATÉRIAUX
O
RGANIQUES
,
23
RUE DU
L
OESS
, BP43,
F-67034 S
TRASBOURG
C
EDEX
2, F
RANCE
A
PRIL
5, 2018
Contents
Contents
A
1 LTEX ?
A
1.1 WYSIWYG vs. LTEX . . . . . . . . . . . . . . . . .
A
1.2 Installing LTEX . . . . . . . . . . . . . . . . . . . .
1.2.1 Linux . . . . . . . . . . . . . . . . . . . . .
1.2.2 Mac . . . . . . . . . . . . . . . . . . . . . .
1.2.3 Windows . . . . . . . . . . . . . . . . . . .
A
1.3 Before running LTEX . . . . . . . . . . . . . . . . .
A
1.3.1 WYSIWYG-like tools for LTEX . . . . . . .
A
1.3.2 LTEX editor . . . . . . . . . . . . . . . . . .
A
1.3.3 How to install manually a package for LTEX
A
2 LTEX - the first step
2.1 Structure of the document . . . . . . . . .
2.1.1 The document class . . . . . . . .
2.1.2 The preamble section . . . . . . .
2.1.3 The main body of the manuscript
A
2.2 Running LTEX . . . . . . . . . . . . . .
2.2.1 The tools that you will need . . .
2.2.2 The compilation process . . . . .
A
3 LTEX essentials
3.1 Commands .
3.2 Environments
3.3 Packages . .
3.4 Files . . . . .
ii
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.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
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A
4 My first LTEX document
4.1 Preparing the preamble . . . . . . .
4.2 Writing the manuscript . . . . . . .
4.2.1 Writing text . . . . . . . . .
4.2.2 Title, authoring and abstract
4.2.3 Organizing your document .
4.2.4 Inserting a math equation . .
4.2.5 Inserting a table . . . . . . .
i
4.2.6
4.2.7
4.2.8
4.2.9
4.2.10
Inserting an image . . . . . .
Inserting a list / enumeration .
Inserting a reference . . . . .
Inserting web links and emails
Inserting a bibliography . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
31
33
34
35
35
39
39
40
43
5 Spell checking
5.1 Using the command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Using Texmaker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A
6 LTEX advantages and drawbacks
7 Examples
7.1 Title and authors . . . . . . . . . . . . . . . .
7.1.1 RevTex 4.1 - "revtex4-1" . . . . . . . .
7.1.2 American Chemical Society "achemso"
7.1.3 Elsevier "elsarticle" . . . . . . . . . . .
7.1.4 Institute Of Physics "iopart" . . . . . .
7.2 Tables and figures . . . . . . . . . . . . . . . .
7.3 Equations . . . . . . . . . . . . . . . . . . . .
8 Partial glossary
8.1 Useful commands . .
8.1.1 In text mode
8.1.2 In math mode
8.2 Useful environments
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
47
47
47
48
49
50
51
53
55
55
55
56
57
59
59
61
63
9 Error messages
A
9.1 LTEX errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2 TEX errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10 Some useful links
ii
A
LTEX ?
A
L TEX,
shortcut for ’Lamport TEX’, is a document markup language invented by Leslie Lamport
A
in 1983. The purpose of L TEX is to simplify the utilization of the word processor TEX devel-
oped by Donald Knuth since 1977.
With typical word processors such as Microsoft Word and LibreOffice Writer, called
WYSI-
WYG
editors "What
You See Is What You Get",
one can immediately visualize the formatted
text and the final shape of the document on the screen.
A
In L TEX the writer uses plain text (as opposed to formatted text), relying on markup tagging
conventions to:
•
define the general structure of a document (such as article, book, and letter).
•
stylize text throughout a document (such as bold and italic).
•
insert objects in the document (such as tables and figures).
•
add citations and cross-referencing.
A TEX distribution such as
TeX Live
or
MiKTeX
is used to produce an output file (such as PS,
PDF or DVI) suitable for printing or digital distribution.
A
A
The latest version of L TEX is called L TEX 2
ε
.
A
Many ideas in this HowTo where inspired by the very good book "L TEX par la pratique" (in
French) by Christian Rolland [1] ...
A
... and many others by the L TEX Wikibooks:
https://en.wikibooks.org/wiki/LaTeX
1.1
A
WYSIWYG vs. LTEX
A
L TEX being a programming language it is required to learn it, or at least a part of it, which
scares most of the potential candidates to use it.
1
Plik z chomika:
cojunka
Inne pliki z tego folderu:
2022 - Marco Ochsner, Andreas Ochsner - Advanced LaTeX In Academia Applications In Research And Education.pdf
(5428 KB)
2018 - LaTeX. Notes for professionals.pdf
(1386 KB)
2018 - Sebastien Le Roux - Basic tutorial to LaTeX programming(1).pdf
(928 KB)
2019 - Marcin Szpyrka - Sklad dokumentow w systemie LaTeX.pdf
(785 KB)
2021 - Stefan Kottwitz - LaTeX Beginners Guide Create visually appealing texts, articles, and books for business and science using LaTeX.pdf
(3987 KB)
Inne foldery tego chomika:
PL
ru
Zgłoś jeśli
naruszono regulamin