Upload
funcionario-cepaa
View
215
Download
0
Embed Size (px)
Citation preview
7/23/2019 Debutant
1/148
Formation LATEX Niveau dbutant
Bernardo Freitas Paulo da Costa
Orsay
27 Avril 2012
http://www.math.u-psud.fr/~bernardofpc/latex.php
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 1 / 129
http://www.math.u-psud.fr/~bernardofpc/latex.phphttp://www.math.u-psud.fr/~bernardofpc/latex.phphttp://find/7/23/2019 Debutant
2/148
Table des matires
1 IntroductionLogiciels et types de fichiersPrincipes gnrauxConventions typographiques
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 2 / 129
http://find/http://goback/7/23/2019 Debutant
3/148
Table des matires
1 IntroductionLogiciels et types de fichiersPrincipes gnrauxConventions typographiques
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 3 / 129
http://find/7/23/2019 Debutant
4/148
Historique
TE
X
crit par Donald Knuth partir de 1978 environ.Gnre des fichiers DVI.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 4 / 129
http://find/7/23/2019 Debutant
5/148
Historique
TE
X
crit par Donald Knuth partir de 1978 environ.Gnre des fichiers DVI.
LATEX
crit par Leslie Lamport partir de 1986 environ.Cest un ensemble de commandes pour rendre plus aise lutilisation de TEX. De ce fait,gnre des fichiers DVI.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 4 / 129
http://find/7/23/2019 Debutant
6/148
Historique
TE
X
crit par Donald Knuth partir de 1978 environ.Gnre des fichiers DVI.
LATEX
crit par Leslie Lamport partir de 1986 environ.Cest un ensemble de commandes pour rendre plus aise lutilisation de TEX. De ce fait,gnre des fichiers DVI.
pdfTEX
Nouvelle version de TEX, crite par Hn Th Thnh en 1996 environ.Gnre des fichiers DVI ou PDF.Il existe aussi pdfLATEX, qui permet dutiliser le moteur pdfTEX et les commandes LATEX.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 4 / 129
http://find/7/23/2019 Debutant
7/148
Types de fichiers
*.tex Code-source TEX ou LATEX
Fichier texte modifiable, lisible pour le ou les auteur(s) ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 5 / 129
http://find/7/23/2019 Debutant
8/148
Types de fichiers
*.tex Code-source TEX ou LATEX
Fichier texte modifiable, lisible pour le ou les auteur(s) ;
*.dvi DeVice-Independent
Format vectoriel de travail : prvisualisation et impression ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 5 / 129
http://find/7/23/2019 Debutant
9/148
Types de fichiers
*.tex Code-source TEX ou LATEX
Fichier texte modifiable, lisible pour le ou les auteur(s) ;
*.dvi DeVice-Independent
Format vectoriel de travail : prvisualisation et impression ;
*.ps, *.eps PostScript, PostScript Encapsul
*.jpg, *.png, *.bmp JPEG, Portable Network Graphics, Bitmaps
Formats graphiques vectoriels ou pixelliss, utiliss pourles schmas ; le PostScript est aussi le langage des impri-mantes;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 5 / 129
http://find/http://goback/7/23/2019 Debutant
10/148
Types de fichiers
*.tex Code-source TEX ou LATEX
Fichier texte modifiable, lisible pour le ou les auteur(s) ;
*.dvi DeVice-Independent
Format vectoriel de travail : prvisualisation et impression ;
*.ps, *.eps PostScript, PostScript Encapsul
*.jpg, *.png, *.bmp JPEG, Portable Network Graphics, Bitmaps
Formats graphiques vectoriels ou pixelliss, utiliss pourles schmas ; le PostScript est aussi le langage des impri-mantes;
*.pdf Portable Document Format
Format graphique mixte et structur ; compress et pra-tique pour la distribution, il est plus difficilement ditable.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 5 / 129
http://find/http://goback/7/23/2019 Debutant
11/148
Chane de compilation
*.texLATEX
pdfLATEX
*.dvi
dvips
dvipdfmx
*.ps
ps2pdf *.pdf
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 6 / 129
http://find/7/23/2019 Debutant
12/148
ExerciceLa ligne de commande
Ouvrir un terminal et rentrer les commandes suivantes :
$ tex
**story
*\end
$ evince story.dvi
$ tex
**\relax
*Hello
*\end
$ evince texput.dvi
Remplacer texpar pdftexet visualiser texput.pdf
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 7 / 129
http://find/7/23/2019 Debutant
13/148
Logiciels de travail
Linux Windows
Environnements Kile, TexMaker TeXNicCenter, MiKTeX-portable
*.tex (X)Emacs, Vi(m) Notepad++, WinEdt (payant)
*.ps, *.eps Xfig, Inkscape, GIMP,Ipe
Inkscape, Ipe, Adobe Photoshop(payant)
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 8 / 129
http://find/7/23/2019 Debutant
14/148
Table des matires
1
IntroductionLogiciels et types de fichiersPrincipes gnrauxConventions typographiques
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 9 / 129
http://find/7/23/2019 Debutant
15/148
WYSIWYG vs WYSIWYM
WYSIWYG What You See Is What You GetWord, OpenOffice, etc. . .
Mise en page peu structureFacile ajuster : on voit immdiatement le rsultat
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 10 / 129
http://find/http://goback/7/23/2019 Debutant
16/148
WYSIWYG vs WYSIWYM
WYSIWYG What You See Is What You GetWord, OpenOffice, etc. . .
Mise en page peu structureFacile ajuster : on voit immdiatement le rsultat
WYSIWYM What You See Is What You Mean TEX, HTML, etc...
Forme gre sparment du contenuImplique de programmerla forme
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 10 / 129
T bl d
http://find/7/23/2019 Debutant
17/148
Table des matires
1
IntroductionLogiciels et types de fichiersPrincipes gnrauxConventions typographiques
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 11 / 129
R l d f i
http://find/http://goback/7/23/2019 Debutant
18/148
Rgles daccents en franais
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 12 / 129
R l d t f i
http://find/7/23/2019 Debutant
19/148
Rgles daccents en franais
ON UTILISE LES ACCENTS, TRMA ET CDILLES POURLES MAJUSCULES EN FRANAIS.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 12 / 129
R l d t f i
http://find/7/23/2019 Debutant
20/148
Rgles d accents en franais
ON UTILISE LES ACCENTS, TRMA ET CDILLES POURLES MAJUSCULES EN FRANAIS.
(sauf pour les sigles et acronymes)
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 12 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
21/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
22/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations :
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
23/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
24/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
point, virgule et points de suspension sont suivis dun blanc ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
25/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
point, virgule et points de suspension sont suivis dun blanc ;point dinterrogation, point dexclamation, point-virgule et deux-points sont suivisdun blanc et prcds dune espace fine inscable (commande ~) ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
26/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
point, virgule et points de suspension sont suivis dun blanc ;point dinterrogation, point dexclamation, point-virgule et deux-points sont suivisdun blanc et prcds dune espace fine inscable (commande ~) ;
les guillemets ouvrants ou fermants sont, respectivement, prcds ou suivis dunblanc;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
27/148
Rgles de ponctuation en franais
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
point, virgule et points de suspension sont suivis dun blanc ;point dinterrogation, point dexclamation, point-virgule et deux-points sont suivisdun blanc et prcds dune espace fine inscable (commande ~) ;
les guillemets ouvrants ou fermants sont, respectivement, prcds ou suivis dunblanc;
les parenthses ou crochets ouvrants sont prcds dun blanc ;les parenthses ou crochets fermants sont suivis dun blanc ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en franais
http://find/7/23/2019 Debutant
28/148
g p
Elles sont les suivantes :
quand le dcoupage des lignes permet den comprendre le sens, on ne met pas deponctuation aux titres et intertitres ;les numrations : sont introduites par un deux-points, celles de premier rang sont introduites par un tiret et se terminent par un point-virgule,
sauf la dernire par un point final, celles de second rang sont introduites par un tiret dcal et se terminent par une
virgule,
point, virgule et points de suspension sont suivis dun blanc ;point dinterrogation, point dexclamation, point-virgule et deux-points sont suivisdun blanc et prcds dune espace fine inscable (commande ~) ;
les guillemets ouvrants ou fermants sont, respectivement, prcds ou suivis dunblanc;
les parenthses ou crochets ouvrants sont prcds dun blanc ;les parenthses ou crochets fermants sont suivis dun blanc ;
les apostrophes et traits dunion ne sont ni prcds ni suivis de blanc ;
le tiret est prcd et suivi dun blanc.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 13 / 129
Rgles de ponctuation en anglais
http://find/7/23/2019 Debutant
29/148
g p g
Elles sont similaires quelques dtails prs :
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 14 / 129
Rgles de ponctuation en anglais
http://find/7/23/2019 Debutant
30/148
g p g
Elles sont similaires quelques dtails prs :
statistiquement moins de virgule et plus de points ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 14 / 129
Rgles de ponctuation en anglais
http://find/7/23/2019 Debutant
31/148
Elles sont similaires quelques dtails prs :
statistiquement moins de virgule et plus de points ;
pas despace avant les signes de ponctuation doubles (deux-points, point-virgule,
point dexclamation et point dinterrogation) ;on utilise les guillemets amricains, sans espace ; les signes de ponctuation sontsouvent pris par le guillemet fermant, comme cela.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 14 / 129
Table des matires
http://find/7/23/2019 Debutant
32/148
1 Introduction
2 Le langageTexte et caractres spciauxCommandesEnvironnements
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 15 / 129
Table des matires
http://find/7/23/2019 Debutant
33/148
1 Introduction
2 Le langageTexte et caractres spciauxCommandesEnvironnements
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 16 / 129
Texte
http://find/http://goback/7/23/2019 Debutant
34/148
Code FichierDebutant/code1.tex
Par ma foi ! il y a p lus de q ua ra nt e
ans que je dis de la p ro se san s quej en s us se ri en , et je v ou s s ui s lep lu s o bl ig d u m on de d e m a v o ira p pr i s c e la .
Sortie
Par ma foi ! il y a plus de quaranteans que je dis de la prose sans que
jen susse rien, et je vous suis leplus oblig du monde de mavoirappris cela.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 17 / 129
Caractres spciaux
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code1.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code1.texhttp://find/http://goback/7/23/2019 Debutant
35/148
\ Prfixe de commande# Paramtres des commandes
{, } Groupements
$ Mode mathmatique^ Exposant_ Indice
& Colonnes de tableau
~ Actifs : commandes
@, etc... Caractres sans type
% Prfixe de commentaire
Lettres, chiffres et signes de ponctuation sont de type normal , espaces, sauts de ligne,(et autres caractres blancs ) ont par contre un comportement particulier.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 18 / 129
Espaces
http://find/7/23/2019 Debutant
36/148
Les caractres despaces sont automatiquement regroups.
Code FichierDebutant/code2.tex
U n s eu l e sp ac e . ..
Sortie
Un seul espace...
Code FichierDebutant/code3.tex
... c est comme plusieursespaces.
Sortie
...cest comme plusieurs espaces.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 19 / 129
Sauts de lignes
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code2.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code3.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code3.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code2.texhttp://find/7/23/2019 Debutant
37/148
Code FichierDebutant/code4.tex
Un s eu l s au t de l ig ne . ... .. c e st u n e sp ac e .
Sortie
Un seul saut de ligne... ...cest unespace.
Code FichierDebutant/code5.tex
U ne l ig ne v id e . ..
. .. c e st u n s au t d e p a ra g ra p he .
Sortie
Une ligne vide......cest un saut de paragraphe.
Plusieurs lignes vides font un seul paragraphe.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 20 / 129
Commentaires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code4.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code5.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code5.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code4.texhttp://find/7/23/2019 Debutant
38/148
Code Fichier Debutant/code6.tex
T ou t c e q ui c om m en c e p ar % e st i gn or ju squ l a f in de la l ig ne
% Il e st f or te me nt r ec om ma nd d u t i li s e r d es c o m me n t a ir e s
Sortie
Tout ce qui commence par
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 21 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code6.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code6.texhttp://find/7/23/2019 Debutant
39/148
1 Introduction
2 Le langageTexte et caractres spciauxCommandesEnvironnements
3 Le premier document
4 crire des documents structurs
5
Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 22 / 129
Commandes (macros)
http://find/7/23/2019 Debutant
40/148
Premire forme
Caractre \ suivi dune ou plusieurs lettres
Code FichierDebutant/code7.tex
\ LaTeX\ par\ today
Sortie
LATEX26 avril 2012
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 23 / 129
Commandes (macros)
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code7.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code8.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code7.texhttp://find/7/23/2019 Debutant
41/148
Premire forme
Caractre \ suivi dune ou plusieurs lettres
Code FichierDebutant/code7.tex
\ LaTeX\ par\ today
Sortie
LATEX26 avril 2012
Seconde forme
Caractre \ suivi dun caractre qui nest pas une lettre
Code FichierDebutant/code8.tex
\&\\\_
Sortie&_
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 23 / 129
ExerciceQuelles sont les commandes dans ce code ?
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code7.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code8.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code8.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code7.texhttp://find/7/23/2019 Debutant
42/148
Quelles sont les commandes dans ce code ?
\bfseries\forall\exists\rightarrow
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 24 / 129
Solution
http://find/7/23/2019 Debutant
43/148
Il y a 4 commandes en tout :
\bfseries
\forall
\exists
\rightarrow
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 25 / 129
ExerciceQuelles sont les commandes dans ce code ?
http://find/7/23/2019 Debutant
44/148
Q
\/\a1\b2\ABCdef ghi
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 26 / 129
Solution
http://find/7/23/2019 Debutant
45/148
Il y a 4 commandes en tout :
\/
\a
\b
\ABCdef
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 27 / 129
ExerciceQuelles sont les commandes dans ce code ?
http://find/7/23/2019 Debutant
46/148
\today\\\ \E\^\%%\abc
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 28 / 129
Solution
http://find/7/23/2019 Debutant
47/148
Il y a 6 commandes en tout :
\today
\\
\
\
\^
\%
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 29 / 129
Arguments dune commande
http://find/7/23/2019 Debutant
48/148
chaque commande est attribu un nombre darguments obligatoire ventuellement nul.
Chaque caractre ou groupe de caractres situ immdiatement aprs lappel de lacommande correspond un argument de la liste.Des espaces ou un saut de ligne aprs la commande sont ignors.
Code Fichier Debutant/code9.tex
\ textbf S eu l l e p re mi e r c a ra c t r e s er amis en gras .\\
\ textbf { T ou s l es c a ra ct re s s er on t m ise n g ra s . } \ \
\ texttt { On pe ut \ textit { i m b r i qu e r } l esa pp el s d e c o mm a nd e s d an s l es
arguments.}\\
Sortie
Seul le premier caractre sera misen gras.Tous les caractres seront mis
en gras.
On peut imbriquer les
appels de commandes dans
les arguments.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 30 / 129
ExerciceQuelles sont les niveaux dimbrications dans ce code ?
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code9.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code9.texhttp://find/7/23/2019 Debutant
49/148
\title{\textit{Critique de la raison pure}}
\author{Immanuel \textsc{Kant}}
\date{1781}
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 31 / 129
Solution
http://find/7/23/2019 Debutant
50/148
\title{ }\textit{ }
Critique de la raison pure
\author{ }
Immanuel \textsc{ }Kant
\date{ }1781
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 32 / 129
http://find/7/23/2019 Debutant
51/148
Solution
7/23/2019 Debutant
52/148
\textbf{ } for{ } d\texttt{ } : $ $.\texttt oici \textit a mule Einstein E=mc2\text{ }
V L (\textbf{ })1
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 34 / 129
Arguments optionnels
http://find/7/23/2019 Debutant
53/148
Certaines commandes prennent un argument optionnel. Par exemple \documentclass:
Un argument optionnel et un argument obligatoire Fichier Debutant/code10.tex
\ documentclass[a4paper]{article}
Le plus souvent, les arguments optionnels sont entours par des crochets, et viennentavant les arguments obligatoires.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 35 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code10.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code10.texhttp://find/7/23/2019 Debutant
54/148
1 Introduction
2 Le langageTexte et caractres spciauxCommandesEnvironnements
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 36 / 129
Environnements
http://find/7/23/2019 Debutant
55/148
On utilise des commandes pour dlimiter lenvironnement.
Environnement simple Fichier Debutant/code11.tex
\ begin {nom}...\ end {nom}
Les rgles dimbrication sont, naturellement, les mmes que celles des accolades.
Code Fichier Debutant/code12.tex
\ begin { f l u s h ri g h t } d r oi t e \ end {flushright}
\ begin {center}Centr\ end {center}
\ begin { f l u s hl e f t } g a uc h e \ end {flushleft}
Sortie
droite
Centr
gauche
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 37 / 129
Environnements avec arguments
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code11.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code12.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code12.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code11.texhttp://find/http://goback/7/23/2019 Debutant
56/148
On rajoute les arguments aprs le dbut de lenvironnement.
Environnement avec deux arguments Fichier Debutant/code13.tex
\ begin {nom}{arg1}{arg2}...\ end {nom}
Code Fichier Debutant/code14.tex
\ begin {tabular}{|r|l|}\ hline Ceci&est\\\ hline un&tableau\\\ hline
\ end {tabular}
Sortie
Ceci estun tableau
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 38 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code13.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code14.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code14.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code13.texhttp://find/7/23/2019 Debutant
57/148
1 Introduction
2 Le langage
3 Le premier documentClasses et extensions
Accents, symboles, ponctuation, justification, csureChangements de police
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 39 / 129
Table des matires
http://find/7/23/2019 Debutant
58/148
1 Introduction
2 Le langage
3 Le premier documentClasses et extensions
Accents, symboles, ponctuation, justification, csureChangements de police
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 40 / 129
Structure dun document LATEX
http://find/7/23/2019 Debutant
59/148
Document minimaliste Fichier Debutant/code15.tex
\ documentclass[options]{classe}
% I ci le p r am bu le
\ begin {document}
% I ci on c om me nc e le d oc um en t
\ end {document}
% p ar ti r d ici , L aT eX ne lit p lu s ri en !
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 41 / 129
La classe
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code15.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code15.texhttp://find/http://goback/7/23/2019 Debutant
60/148
Dfinit lapparence et la mise en page globale. Classes les plus courantes :articlepour des articles courts ;
reportpour des articles plus longs (avec chapitres) ;
bookpour un livre.
Quelques options possibles (facultatives, sparer par des virgules) de \documentclass:9pt, 10pt, 11pt taille de base de la police ;
oneside, twoside gestion des marges (recto/verso, gauche/droite) ;
onecolumn, twocolumns nombre de colonnes ;
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 42 / 129
Les extensions
http://find/7/23/2019 Debutant
61/148
mettre exclusivement dans le prambule !
Chargement dune extension Fichier Debutant/code16.tex
\ usepackage [options]{nom}
Les optionsdpendent de lextension.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 43 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code16.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code16.texhttp://find/7/23/2019 Debutant
62/148
1 Introduction
2 Le langage
3 Le premier documentClasses et extensions
Accents, symboles, ponctuation, justification, csureChangements de police
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 44 / 129
Accents et lettres spciales
http://find/7/23/2019 Debutant
63/148
Code Fichier Debutant/code17.tex
\ a \ e \ ^ i \ " O \ ~ u \ c C \ . P
Sortie u P
Code Fichier Debutant/code18.tex
\ ae \ oe \ AE \ OE \ i \ AA
Sortie
Code Fichier Debutant/code19.tex
\ $ \ & \% \ # \ { \ }\ textbackslash {}\ textasciitilde {}
\ textasciicircum
Sortie
$ & % # { } \ ~ ^
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 45 / 129
Prise en charge de la langue
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code17.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code18.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code19.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code19.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code18.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code17.texhttp://find/7/23/2019 Debutant
64/148
Extensions usuelles Fichier Debutant/code20.tex
% P ou r p ou vo ir t ap er d es l e tt re s a c ce n tu es\ usepackage [utf8]{inputenc} % [ l at in 1 ] s i v ou s n e p ou ve z p as di te r en UTF -8% P ou r q ue l es a cc en ts s oi en t b ie n a f fi ch s\ usepackage [T1]{fontenc}% P o ur a c ti v er l es c o n ve n t io n s f r a n a i se s\ usepackage [frenchb]{babel}
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 46 / 129
Quelques symboles courants
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code20.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code20.texhttp://find/7/23/2019 Debutant
65/148
Code Fichier Debutant/code21.tex
- % t i r et c o ur t
-- % t i re t m oy en po ur le si n t er v a ll e s d e n o m br e s
--- % t i re t l o ng p o ur l e s i n ci se s
< < > > ( o u d ir ec te me nt ) %guillemetsfranais
% g u i l l em e t s a n g la i s
, , % g u i l l e me t s a l l em a n ds
Sortie- (ou directement )
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 47 / 129
Justification
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code21.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code21.texhttp://find/7/23/2019 Debutant
66/148
Code Fichier Debutant/code22.tex
V o ic i d u t e xt e j u st i fi , q ui o c cu p et ou te l a l ar ge ur .
\ begin {flushleft}V oi ci d u t ex te a li gn g au ch e : o n
c ou pe l es l ig ne s q ua nd o n ne p eu xp lu s l es r em pl ir .
\ end {flushleft}\ begin {center}V oi ci d u t ex te c en tr , a ve c r et ou r
l a l i gn e a u t om a t iq u e .\ end {center}\ begin {flushright}V oi ci d u t ex te a li gn d ro it e , l
e nc or e a p as se la l ig ne .
\ end {flushright}
SortieVoici du texte justifi, qui occupetoute la largeur.
Voici du texte align gauche :on coupe les lignes quand on ne
peux plus les remplir.
Voici du texte centr, avec retour la ligne automatique.
Voici du texte align droite, l
encore a passe la ligne.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 48 / 129
Espaces, commandes et paragraphes
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code22.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code22.texhttp://find/7/23/2019 Debutant
67/148
On a 3 types despaces : les implicites (ou normales), les explicites et les inscables.
Code Fichier Debutant/code23.tex
% U ne c o mm a nd e ma ng e l es e sp a ce snormales
\ LaTeX c e s t d i f fi c i le \ \% F in de c om ma nd e a ve c {}\ LaTeX { } c e st d if f ic i le \ \% E sp ac e e x pl i ci t e\ LaTeX \ c e st d if f ic i le
% U ti l it d e l e s pa ce i ns ca b leOn f ai t u ne l on gu e p hr as e q ui s er a
c ou p e :a uj ou rd h ui j a i v u M W uu .
On p eu t a lo rs d em an de r de ne p as l ac ou pe r :
a uj o ur d h u i j a i v u M ~ W u u . \\
Sortie
LATEXcest difficileLATEX cest difficileLATEX cest difficile
On fait une longue phrase qui seracoupe : aujourdhui jai vu MWuu.On peut alors demander de nepas la couper : aujourdhui jai vuM Wuu.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 49 / 129
Ponctuation
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code23.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code23.texhttp://find/7/23/2019 Debutant
68/148
Code Fichier Debutant/code24.tex
C o mm e A l ex a nd r e , p o ur e x c us e r c e tt emesure , lui citait la rponse de l o ra cl e : < >
Sortie
Comme Alexandre, pour excusercette mesure, lui citait la rponsede loracle : Sil en est ainsi, roi,
dit-il, ce nest pas moi que le sorta dsign pour ce supplice; cestmon ne que je poussais devantmoi qui sest port le premier tarencontre.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 50 / 129
Csure
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code24.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code24.texhttp://find/7/23/2019 Debutant
69/148
Essentiellement, tout est automatique. Lorsquil y a un problme on peut indiquer ledcoupage LATEX avec la commande \-.
Code Fichier Debutant/code25.tex
Le p lu s l on g m ot e st
anticonstitutionnellement.
\ LaTeX \ ne c on na it pas le mot $ n$ -d i me n si o nn e l , i l f a ut m e tt r e $ n $ - d i \ -
men \- sion \- nel .
Sortie
Le plus long mot est anticonstitu-
tionnellement.LATEX ne connait pas le mot n-dimensionnel, il faut mettre n-di-mensionnel.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 51 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code25.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code25.texhttp://find/7/23/2019 Debutant
70/148
1 Introduction
2 Le langage
3 Le premier documentClasses et extensionsAccents, symboles, ponctuation, justification, csureChangements de police
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 52 / 129
Taille
http://find/7/23/2019 Debutant
71/148
Code Fichier Debutant/code26.tex
C ec i e st l a t ai ll e n or ma le .
{\ tiny a \ scriptsize b \ footnotesize c
\ small d \ normalsize e \ large f \Large g \ LARGE h \ huge i \ Huge j}
On r ev ie nt la t ai ll e n or ma le g r cea ux g r o up e m en t s .
Sortie
Ceci est la taille normale.a b c de fg h i jOn revient la taille normale grceaux groupements.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 53 / 129
Famille
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code26.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code26.texhttp://find/7/23/2019 Debutant
72/148
Code Fichier Debutant/code27.tex
% c h a n g em e n t d t a t g l ob a l\ large\ sffamily s an s s r if \ rmfamily r om an \
ttfamily typewriter% c h a n g em e n t d t a t l o ca l\ textsf { s an s s r if } \ textrm { r o ma n } \
texttt {typewriter}
Sortie
sans srifroman typewriter
sans srif roman typewriter
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 54 / 129
Graisse
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code27.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code27.texhttp://find/7/23/2019 Debutant
73/148
Code Fichier Debutant/code28.tex
% c h a n g em e n t d t a t g l ob a l\ Large\ bfseries g ra s \mdseries medium
% c h a n g em e n t d t a t l o ca l\ textbf { g r a s } \ textmd {medium}
Sortie
gras medium
gras medium
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 55 / 129
Formes
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code28.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code28.texhttp://find/7/23/2019 Debutant
74/148
Code Fichier Debutant/code29.tex
% c h a n g em e n t d t a t g l ob a l\ Large\ itshape i t a li q u e \ slshape p e nc h \
scshape S m al l C a pi ta l s \ upshape
normal
% c h a n g em e n t d t a t l o ca l\ textit { i t al iq u e } \ textsl { p e nc h } \
textsc { S m al l C ap i ta ls } \ textup {normal}
Sortie
italiquepenchSmall Capi-
tals normal
italiquepenchSmall Capi-
tals normal
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 56 / 129
Dcoration
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code29.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code29.texhttp://find/7/23/2019 Debutant
75/148
Code Fichier Debutant/code30.tex
% P ou r l es c o ul e ur s i l f au t l e x te n si oncolor
\ c o lo r { re d } r ou ge \ c o lo r { g re en } v er t \
c o lo r { b l ue } b l eu
\ t e x t c ol o r { r e d } { r ou g e } \ underline {soulign}
Sortie
rougevertbleu
rougesoulign
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 57 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code30.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code30.texhttp://find/7/23/2019 Debutant
76/148
Sortie
Jai dcouvert que le logiciel LATEX peut mtre utile. Comme le dit Valerius Maximus propos dAlexandre :
Mais, tandis que les comptiteurs une rcompense de si haut prix attendaient la
faveur du sort, seul Darius, grce un artifice dbars, son cuyer, vit son souhaitse raliser [...]
La ligne suivante utilise les tailles \tinyet \LARGE, en plus de la taille normale :
Je parlede plus en plus fort !
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 58 / 129
Solution
http://find/7/23/2019 Debutant
77/148
Code Fichier Debutant/code31.tex
J ai d c ou ve rt q ue le l og ic ie l \ LaTeX \ p eu t m t re u ti le . C om me le di tV a l er i u s \ textsc { M a xi mu s } p ro po s d A l ex an d re :
\ begin {flushright}\color{red}\ itshape< >\ end {flushright}L a l ig ne s ui v an te u ti li se l es t ai ll e s \ texttt {\ textbackslash t i n y } e t \ texttt
{\ textbackslash L AR GE } , en p lu s de la t ai ll e \ underline {normale}:\ begin {center}\ tiny J e p ar le \ normalsize \ de p lu s en p lu s\ LARGE \ f or t !\ end {center}
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 59 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code31.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code31.texhttp://find/7/23/2019 Debutant
78/148
1 Introduction
2 Le langage
3 Le premier document
4
crire des documents structursCommandes de sectionnement, tiquettes et rfrenceslments supplmentaires : table des matires, rsum, appendice, bibliographieLes flottants
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 60 / 129
Table des matires
http://find/7/23/2019 Debutant
79/148
1 Introduction
2 Le langage
3 Le premier document
4
crire des documents structursCommandes de sectionnement, tiquettes et rfrenceslments supplmentaires : table des matires, rsum, appendice, bibliographieLes flottants
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 61 / 129
Le titre
http://goforward/http://find/http://goback/7/23/2019 Debutant
80/148
Code Fichier Debutant/code32.tex\ documentclass{article}
\ author { J ea n - C l a u d e \ textsc { V a n D a mm e } }\ date { L e \ today }\ title { P e ti t t ra it d e p h il o so p hi e \ textit {aware}}
\ begin {document}
\maketitle
\ end {document}
On peut vouloir que le titre occupe une page entire dans un article (cest le dfaut dans
book). Dans ce cas, on utilise loption [titlepage]de la classe article.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 62 / 129
Les sections
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code32.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code32.texhttp://find/http://goback/7/23/2019 Debutant
81/148
On peut mettre un signe *juste avant laccolade pour enlever la numrotation.
Code Fichier Debutant/code33.tex
% R e ma r qu e : c ha pt e r n e x is te p as p ou r l a c la ss e a r ti cl e\part{...}\chapter{...}
\ section {...}\subsection{...}\subsubsection{...}\paragraph{...}\subparagraph{...}
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 63 / 129
Les tiquettes et rfrences
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code33.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code33.texhttp://find/7/23/2019 Debutant
82/148
Important : ncessite une seconde compilation pour la mise jour.
Code Fichier Debutant/code34.tex
\ section { O n t i qu e t te } \ label {maref} % R ie n d e v is ib le d an s l e d oc u me n t f in al
C et te s ec ti on c on t ie n t l a r f r en c e .
\ section { O n s e r f r e }
V oi r l a s ec t io n ~ \ref {maref}.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 64 / 129
Les listes
Trois types diffrents :
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code34.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code34.texhttp://find/7/23/2019 Debutant
83/148
Trois types diffrents :
Code Fichier Debutant/code35.tex
\ begin {itemize}\ item l e p re mi er ; \ item l e d e u xi m e ;
\ item l e d e r ni e r .\ end {itemize}
\ begin {enumerate}\ item l e p re mi er ; \ item l e d e u xi m e ;\ item l e d e r ni e r .
\ end {enumerate}
\ begin {description}\ item [ i t em iz e ] l e p re mi e r ; \ item [
e n um e ra t e ] l e d eu x i me ; \ item [
d e s cr i p ti o n ] l e d e rn i e r .\ end {description}
Sortiele premier ;
le deuxime ;
le dernier.
1 le premier ;2 le deuxime ;3 le dernier.
itemize le premier;
enumerate le deuxime ;
description le dernier.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 65 / 129
Citations
Sortie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code35.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code35.texhttp://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code36.tex7/23/2019 Debutant
84/148
Code Fichier Debutant/code36.tex
l a id e d es e n vi r on n em e nt s :\ begin {quote}D a b or d \ texttt { q uo te } p ou r l es
c i t at i o ns c o u rt e s .\ end {quote}\ begin {quotation}
Ensuite , \ texttt { q u ot a ti o n } p ou r l esc i t at i o ns p l us l o ng u e s .
O n p eu t m m e f ai re d es p a ra g ra p he s .\ end {quotation}\ begin {verse}
Et a us si \ texttt {verse}\\p ou r cr ir e e n v er s . \\A t t en t i on m a r qu e r \ \les f in s de l ig ne !
\ end {verse}L es t ro is e ff e ct ue n t u ne < >p ou r d ta c h er v i s u el l e me n t l acitation.
laide des environnements :
Dabord quote pour lescitations courtes.
Ensuite, quotationpour les citations pluslongues.
On peut mme fairedes paragraphes.
Et aussiversepour crire en vers.Attention marquer
les fins de ligne !Les trois effectuent une marge pour dtacher visuellement la cita-tion.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 66 / 129
Table des matires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code36.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code36.texhttp://find/7/23/2019 Debutant
85/148
1 Introduction
2 Le langage
3 Le premier document
4
crire des documents structursCommandes de sectionnement, tiquettes et rfrenceslments supplmentaires : table des matires, rsum, appendice, bibliographieLes flottants
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 67 / 129
La table des matires
http://find/7/23/2019 Debutant
86/148
Code Fichier Debutant/code37.tex
% P ou r a jo ut er l a t ab le de s m at i re s elle-mme:
%\addcontentsline{toc}{section}{Tabled es m a t i r e s }
\tableofcontents
Sortie
1 Introduction
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 68 / 129
Rsum
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code37.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code37.texhttp://find/http://goback/7/23/2019 Debutant
87/148
Code Fichier Debutant/code38.tex
\ begin {abstract}\ c o lo r { re d } Ce ci e st u n d oc u me nt d e
travail.\ end {abstract}
Sortie
Rsum
Ceci est un document detravail.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 69 / 129
Lappendice
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code38.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code38.texhttp://find/http://goback/7/23/2019 Debutant
88/148
Permet de faire une annexe. Les sections seront numrotes avec des lettres partir de l.
Code Fichier Debutant/code39.tex
\appendix
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 70 / 129
La bibliographie
C d
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code39.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code39.texhttp://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code40.tex7/23/2019 Debutant
89/148
Code Fichier Debutant/code40.tex
P ar mi l es n o mb r eu x o uv r ag es d er f re n ce s ur \ LaTeX \ on p eu t c it erc eu x d e L es li e L am p or t ~ \cite {lamport}
e t d e B ru no F it er ~ \ cite {fiter}.
% P ou r a jo u te r l a b i bl i og r ap h ie l at ab le d es m at i r e s :
%\addcontentsline{toc}{section}{
Bibliographie}
\ begin {thebibliography}{99}\ bibitem [ L 8 6] { l a mp or t } L es li e \
textsc { L a mp or t } , \ textit {\ LaTeX : AD o c um e n t P r e pa r a ti o n S y st e m } ,Addison -Wesley , 1986.
\ bibitem [ F 9 2] { f it er } B ru no \ textsc {
F it er } , \ textit { I n t ro d uc t io n \LaTeX } , 1 99 2.\ end {thebibliography}
SortieParmi les nombreux ouvrages derfrence sur LATEX on peut citerceux de Leslie Lamport[L86]et deBruno Fiter[F92].
Leslie Lamport, LATEX : ADocument PreparationSystem, Addison-Wesley,1986.
Bruno Fiter, Introduction
LA
TEX, 1992.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 71 / 129
Exercicecrire un document LATEX avec un rsum, une introduction non numrote, des sections hirarchises 3niveaux, une table des matires, une bibliographie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code40.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code40.texhttp://find/7/23/2019 Debutant
90/148
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 72 / 129
Table des matires
1 Introduction
http://find/7/23/2019 Debutant
91/148
1 Introduction
2 Le langage
3 Le premier document
4 crire des documents structursCommandes de sectionnement, tiquettes et rfrenceslments supplmentaires : table des matires, rsum, appendice, bibliographieLes flottants
5 Utilisation en pratique
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 73 / 129
Tableaux
http://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code41.tex7/23/2019 Debutant
92/148
Code Fichier Debutant/code41.tex
\ begin {tabular}{l|cr||}% l p ou r lef t , c p ou r c en te r , r p ou r
right% p as de tr ai t , s im pl e t ra it , p as de
t ra it , d o ub l e t r ai tA&123456&B\\% On u ti li se & p ou r c ha ng er de c ol on ne
, \\ p ou r c ha ng er de l ig neCCC&0&DDD\\\ hline% On p eu t m et tr e d es t ra it s
horizontauxX&Y&Z\\\ hline \ hline% On p eu t m m e en m et tr e d eu x
\ end {tabular}
Sortie
A 123456 B
CCC 0 DDDX Y Z
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 74 / 129
Tables
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code41.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code41.texhttp://find/7/23/2019 Debutant
93/148
Code Fichier Debutant/code42.tex\ begin {table}
\ begin {center}\ small\ begin {tabular}{r|c|l}
Jour&Mois&Anne\\\ hlineLundi&dcembre&2000\\Mardi&janvier&2008--2009\\Jeudi&mai&2010
\ end {tabular}\ end {center}\ caption { \ c o lo r { g r e en } M a p r e mi r e
table}\ label {matable}
\ end {table}
Sortie
Jour Mois Anne
Lundi dcembre 2000Mardi janvier 20082009
Jeudi mai 2010
Table:Ma premire table
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 75 / 129
Figures
Sortie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code42.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code42.texhttp://find/7/23/2019 Debutant
94/148
Code Fichier Debutant/code43.tex
% R e ma rq u e : i l f au t c ha rg er l e x te ns i ong ra p hi cx p ou r u t il i se r \
includegraphics% Il f au t m et tr e l en na . e ps s i on
u t il is e L aT eX e t p as p df L aT e X\ begin {figure}
\ begin {center}\includegraphics[width=4.8cm]{
figures/lenna.png}\ end {center}\ caption { \ c o lo r { g r e en } M a p r e mi r e
figure}\ label {mafigure}
\ end {figure}
Figure:Ma premire figure
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 76 / 129
Table des matires
1 Introduction
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code43.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code43.texhttp://find/7/23/2019 Debutant
95/148
1 Introduction
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratiqueSautsNotesFormules
Bernardo da Costa (Orsa ) Formation LATEX Ni ea db tant 27 A ril 2012 77 / 129
Table des matires
1 Introduction
http://find/7/23/2019 Debutant
96/148
Introduction
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratiqueSautsNotesFormules
B d da Costa (O ) F ti LATEX Ni db t t 27 A il 2012 78 / 129
Sauts de ligne
http://find/7/23/2019 Debutant
97/148
Code Fichier Debutant/code44.tex
Je\\saute\\une\\ligne\\
\\chaque\\
mot .
Sortie
Jesauteuneligne
chaquemot.
utiliser surtout dans des environnements spciaux : tableaux, posie, . . .
B d da Costa
(O ) F ti LATEX Ni db t t 27 A il 2012 79 / 129
Sauts de page
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code44.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code44.texhttp://find/7/23/2019 Debutant
98/148
Code Fichier Debutant/code45.tex
% A rr t er la p ag e en c ou rs et p as se r la s ui va nt e\ newpage
% A f fi c he r t ou s l es f l ot t an t s e n s u sp en s e t p as se r l a p ag e s ui v an t e
\ clearpage
% A f fi c he r t ou s l es f l ot t an t s e n s u sp en s e t p as se r l a p ro c ha i ne p ag e i m pa ir e\ cleardoublepage
B d da Costa
(O ) F ti LATEX Ni db t t 27 A il 2012 80 / 129
Table des matires
1 Introduction
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code45.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code45.texhttp://find/7/23/2019 Debutant
99/148
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratiqueSautsNotesFormules
B d da Costa
(O ) F i LATEX Ni db 27 A il 2012 81 / 129
Notes de bas de page
http://find/7/23/2019 Debutant
100/148
Code Fichier Debutant/code46.tex
J e d is q u el qu e c ho se \ footnote {\color{b lu e } Qu e j e p r c is e p lu s b as . }.
Sortie
Je dis quelque chose a.
a. Que je prcise plus bas.
B d da Costa
(O ) F i LATEX Ni db 27 A il 2012 82 / 129
Notes dans la marge
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code46.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code46.texhttp://goforward/http://find/http://goback/7/23/2019 Debutant
101/148
Relativement peu utilises.
Code Fichier Debutant/code47.tex
J e d is q ue lq u e c ho se \marginpar { Q ue j e p r ci s e d an s l a m ar ge . } .
B d da Costa
(O ) F i LATEX Ni db 27 A il 2012 83 / 129
Table des matires
1 Introduction
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code47.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code47.texhttp://find/7/23/2019 Debutant
102/148
2 Le langage
3 Le premier document
4 crire des documents structurs
5 Utilisation en pratiqueSautsNotesFormules
B d da Costa
(O ) F LATEX N db 2 A l 2012 8 / 129
Modes mathmatiquesEn ligne
On peut mettre des formules dans le texte.
http://find/7/23/2019 Debutant
103/148
Code Fichier Debutant/code48.tex
L a f a ct o ri s at i on d es d i ff re n ce s $ a ^2 -b ^ 2= ( a +b ) (a - b )$ e st t r s u ti le !
Il e xi st e a us si u ne a ut re f a on d o uv ri r - f e r m er l es m a t h m a t iq u e s :
\ ( f ( x ) = x ^ x \ ) .
Sortie
La factorisation des diffrencesa2 b2 = (a+b)(a b) est trsutile! Il existe aussi une autre fa-on douvrir-fermer les mathma-tiques : f(x) =xx.
da Costa
(O ) /
Modes mathmatiquesEn ligne
On peut mettre des formules dans le texte.
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code48.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code49.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code48.texhttp://find/7/23/2019 Debutant
104/148
Code Fichier Debutant/code48.tex
L a f a ct o ri s at i on d es d i ff re n ce s $ a ^2 -b ^ 2= ( a +b ) (a - b )$ e st t r s u ti le !
Il e xi st e a us si u ne a ut re f a on d o uv ri r - f e r m er l es m a t h m a t iq u e s :
\ ( f ( x ) = x ^ x \ ) .
Sortie
La factorisation des diffrencesa2 b2 = (a+b)(a b) est trsutile! Il existe aussi une autre fa-on douvrir-fermer les mathma-tiques : f(x) =xx.
Parfois le rsultat nest pas trs joli :
Code Fichier Debutant/code49.tex
C el a a rr iv e s ou ve nt q ua nd il y a d esexposants ou indices ,
a ve c d es g ro s o p r at e ur s :$\ lim _{x\ rightarrow +\ infty }\ frac {x}{\
ln (x)}=+\ infty $.
Sortie
Cela arrive souvent quand il y ades exposants ou indices, avec desgros oprateurs : limx+ xln(x) =+.
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 85 / 129
Modes mathmatiquesEn display
Dans le cas davoir de grosses formules, ou simplement attirer lattention du lecteur, onpasse en mode display:
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code48.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code49.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code49.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code48.texhttp://find/7/23/2019 Debutant
105/148
Code Fichier Debutant/code50.tex
% S yn ta xe TeX , ne p as u ti li se r a ve cLaTeX!
$$\ lim _{x\ rightarrow 0}\ frac {1}{x^2}=+\
infty ,
$$% N o uv el l e s yn ta xe\[\ lim _{x\ rightarrow 0}\ frac {1}{x^2}=+\
infty ,\]% q ui v al e nt a ve c u n e n vi r on n em e nt\ begin {displaymath}
\ lim _{x\ rightarrow 0}\ frac {1}{x^2}=+\infty .
\ end {displaymath}
Sortie
limx0
1
x2 = +
,
limx0
1x2
= +,
limx0
1x2
= +.
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 86 / 129
Formules numrotes
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code50.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code50.texhttp://find/7/23/2019 Debutant
106/148
Code Fichier Debutant/code51.tex
\ begin {equation}E=mc^2\ label {einstein}\ end {equation}D a p r s ~ \ e q r ef { e i ns t e in } o n p e ut
c a l cu l e r l n e r gi e d u n e p a r ti c u le .
Sortie
E=mc2 (1)
Daprs(1)on peut calculer lner-
gie dune particule.
Lutilisation de \eqrefrajoute directement les parenthses.
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 87 / 129
Indice, exposant
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code51.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code51.texhttp://find/7/23/2019 Debutant
107/148
Code Fichier Debutant/code52.tex
%Exposant\[a^b\]
%Indice
\[(u_k)\]
% G r o u p em e n ts a v ec a c c ol a d es\[\ sum _{k=1}^{+\ infty } u _ { u _ { u _k } } \ ]
Sortie
ab
(uk)
+k=1
uuuk
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 88 / 129
Polices pour les formules
Code Fichier Debutant/code53.texSortie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code52.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code52.texhttp://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code53.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code53.tex7/23/2019 Debutant
108/148
% N c e s si t e l e x t e n si o n a m sm a th%Calligraphique\ [\ m a t h c al { A } , \ m a t h ca l { B } , \ m a t h ca l { C
}, \ ldots \]
%Blackboard\ [\ m a t h b b { N } , \ m a t hb b { Z } , \ m a t hb b { Q } ,
\ m a th bb { R } , \ ldots \]
%gothique\ [\ m a th f r ak { E } , \ m a t h fr a k { F } , \
mathfrak {G} , \ ldots \]
% g ra s , n or ma l , t y p ew r i te r\[\mathbf { x } , y , \mathtt { z } , \ ldots \]
% T e xt e d an s u ne f or mu l e ( n ce s si t e l e x t en s i on a m sm a t h )
\ [x > 0\ t e xt { e t } y < 0\ ]
Sortie
A,B, C, . . .
N,Z,Q,R, . . .
E,F,G, . . .
x, y, z, . . .
x>0 et y
7/23/2019 Debutant
109/148
Code Fichier Debutant/code54.tex
\[x=yy\ leq x\ geq y \]\[x\ neq y \ approx x \]
\[x\ equiv y\ cong x \]
Sortie
x=yy x yx
=y
x
x y=x
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 90 / 129
Oprateurs binaires
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code54.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code54.texhttp://find/7/23/2019 Debutant
110/148
Code Fichier Debutant/code55.tex
\[x+y-z\ pm y\mp z \]\[f\ circ g \]
\[x\ cdot y \]\[x\ otimes y\ oplus z\ ominus t \]
Sortie
x+y z y zf gx y
x y z t
Bernardo da Costa (Orsay) Formation LAT X Niveau dbutant 27 Avril 2012 91 / 129
Lettres grecques
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code55.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code55.texhttp://find/7/23/2019 Debutant
111/148
Code Fichier Debutant/code56.tex
\[\ alpha , \ beta , \ gamma , \ delta , \epsilon, \ ldots \]
\[\ Gamma , \ Delta , \ Sigma , \Pi , \ ldots\]
Sortie
,,, , , . . .
,,,, . . .
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 92 / 129
Flches
Sortie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code56.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code56.texhttp://find/7/23/2019 Debutant
112/148
Code Fichier Debutant/code57.tex
\[A\ leftarrow B \]\[A\ Rightarrow B \]\[A\ longleftarrow B \]\[A\ Longrightarrow B \]
\[A\ leftrightarrow B \]\[A\mapsto B \]\[A\ longmapsto B \]\[\ overrightarrow{AB}\]%etc...
A BA B
A BA=
B
A BA B
A BAB
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 93 / 129
Points de suspension
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code57.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code57.texhttp://find/7/23/2019 Debutant
113/148
Code Fichier Debutant/code58.tex
\[a\ ldots b \]\[a\ cdots b \]
\[a\ vdots b \]\[a\ ddots b \]
Sortie
a. . . b
a b
a...b
a. . .b
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 94 / 129
Quantificateurs
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code58.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code58.texhttp://find/7/23/2019 Debutant
114/148
Code Fichier Debutant/code59.tex
\[\ forall x\ in \mathbb{R}^+\ colon x\ geq0\]
\[\ exists x\ in \mathbb{R}^+\ colon x=0\]
Sortie
x R+ : x 0
x R+
: x=0
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 95 / 129
Ngation de symboles
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code59.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code59.texhttp://find/7/23/2019 Debutant
115/148
Code Fichier Debutant/code60.tex
\[0\ notin \mathbb{R}^*\]\[\mathbb{R}\ not \ subset \mathbb{N}\]\[x\ not \ rightarrow y \]
\[x\ not \ equiv y \]\[x\ not \ approx y \]%etc...
Sortie
0 / R
R Nx
y
x yx y
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 96 / 129
Gros oprateurs
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code60.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code60.texhttp://find/7/23/2019 Debutant
116/148
Code Fichier Debutant/code61.tex
\[\ sum _{???}^{???}???\]
\[\ prod _{???}^{???}???\]\[\ int _{???}^{???}???\]
Sortie??????
???
??????
??? ??????
???
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 97 / 129
Gros dlimiteurs
Sortie
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code61.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code61.texhttp://find/7/23/2019 Debutant
117/148
Code Fichier Debutant/code62.tex
\[\ left (\ frac {a}{b}\ right ) \]\[\ left [\ frac {a}{b}\ right ]\]\[\ left \ vert \ frac {a}{b}\ right \ vert \]
\[\ left \ Vert \ frac {a}{b}\ right \ Vert \]\[\ left \{\ frac {a}{b}\ right \}\]% P ou r o uv ri r f er me r u n d li m it eu r
i n v is i b le u t i li s e r u n p o in t\[\ left (\ frac {a}{b}\ right .\]
ab
a
b
a
b ab
a
b
ab
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 98 / 129
Lenvironnement array
Permet de faire des tableaux comme tabular, o les entres sont par dfaut en mode
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code62.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code62.texhttp://find/7/23/2019 Debutant
118/148
mathmatique.Trs utile de par sa versatilit, mais noter que AMS-TEX (dans le paquet amsmath)propose des versions ddies (et mieux adaptes) pour les matrices et quations alignes.
Code Fichier Debutant/code63.tex
\[\ left [\ begin {array}{rlc}
x - y & y^z & z_ x \\\ int & \ oint \ psi & \ i i n t _ D d x \ ,
dy\ end {array}\ right ]\]
Sortie
x y yz zx
Ddx dy
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 99 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code63.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code63.texhttp://find/7/23/2019 Debutant
119/148
Sortie
R+ =
{x
R : x
0
}
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 100 / 129
Solution
http://find/7/23/2019 Debutant
120/148
Code Fichier Debutant/code64.tex
\[\ m at hb b {R }^ + = \{\ , x \ in \ m a t hb b { R } \ colon x \ geq 0 \ , \}\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 101 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code64.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code64.texhttp://find/7/23/2019 Debutant
121/148
Sortie
x
R
+ : x
0
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 102 / 129
Solution
http://find/7/23/2019 Debutant
122/148
Code Fichier Debutant/code65.tex
\[\ forall x \ in \ m a t hb b { R } ^ + \ colon x \ geq 0\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 103 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code65.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code65.texhttp://find/7/23/2019 Debutant
123/148
Sortie
x
[0, 2] : x2 >x
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 104 / 129
Solution
http://find/7/23/2019 Debutant
124/148
Code Fichier Debutant/code66.tex
\[\ exists x \ in [ 0 ,2] \ colon x ^ 2 > x\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 105 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code66.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code66.texhttp://find/7/23/2019 Debutant
125/148
Sortie
4
x4 =
|x
|
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 106 / 129
Solution
http://find/7/23/2019 Debutant
126/148
Code Fichier Debutant/code67.tex
\[\ sqrt [ 4] { x ^4} = \ vert x \ vert\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 107 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code67.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code67.texhttp://find/7/23/2019 Debutant
127/148
Sortie
1 2 34 5 6
7 8 9
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 108 / 129
Solution
http://find/7/23/2019 Debutant
128/148
Code Fichier Debutant/code68.tex
\[\ left [\ begin {array}{ccc}
1&2&3\\4&5&6\\
7&8&9\ end {array}\ right ]\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 109 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code68.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code68.texhttp://find/7/23/2019 Debutant
129/148
Sortie
=
11 1n...
. . . ...
n1 nn
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 110 / 129
Solution
http://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code69.tex7/23/2019 Debutant
130/148
Code Fichier Debutant/code69.tex
\[\ Sigma = \ left [\ begin {array}{ccc}
\ sigma _ 1 ^ 1 & \ cdots & \ sigma _ n ^1 \ \\ vdots & \ ddots & \ vdots \\
\ sigma _ 1 ^ n & \ cdots & \ sigma _ n ^n \ \\ end {array}\ right ]\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 111 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code69.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code69.texhttp://find/7/23/2019 Debutant
131/148
Sortie
+
k=11
k2 =
2
6
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 112 / 129
Solution
http://find/7/23/2019 Debutant
132/148
Code Fichier Debutant/code70.tex
\[\ sum _{k=1}^{+\ infty } \ frac { 1} { k ^2 } = \ frac {\ pi ^2}{6}\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 113 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code70.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code70.texhttp://find/7/23/2019 Debutant
133/148
Sortie
|x| = x si x 0,
x sinon.
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 114 / 129
Solution
http://find/7/23/2019 Debutant
134/148
Code Fichier Debutant/code71.tex
\[\ vert x \ vert = \ left \{\ begin {array}{rl}
x & \ t e x t { s i } x \ geq 0,\\- x & \ t ex t { s in on . }
\ end {array}\ right .\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 115 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code71.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code71.texhttp://find/7/23/2019 Debutant
135/148
Sortie
+1
1 1 x2 dx=
2
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 116 / 129
Solution
http://find/7/23/2019 Debutant
136/148
Code Fichier Debutant/code72.tex
\[\ int _ { - 1 } ^{ + 1} \ sqrt { 1 - x ^ 2 } \ , d x = \ frac {\ pi }{2}\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 117 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code72.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code72.texhttp://find/7/23/2019 Debutant
137/148
Sortie
limx0+
1x3
= +
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 118 / 129
Solution
http://find/7/23/2019 Debutant
138/148
Code Fichier Debutant/code73.tex
\[\ lim _ { x \ rightarrow 0 ^+ } \ frac { 1} { x ^3 } = + \infty\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 119 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code73.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code73.texhttp://find/7/23/2019 Debutant
139/148
Sortie
f = f = 2f
x2 +
2f
y2 +
2f
z2
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 120 / 129
Solution
C d
http://find/http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code74.tex7/23/2019 Debutant
140/148
Code Fichier Debutant/code74.tex
\[\ overrightarrow {\ nabla }\ cdot \ overrightarrow {\ nabla } f
= \ Delta f= \ frac {\ partial ^ 2 f } {\ partial x^2}
+ \ frac {\ partial ^ 2 f } {\ partial y^2}+ \ frac {\ partial ^ 2 f } {\ partial z^2}
\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 121 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code74.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code74.texhttp://find/7/23/2019 Debutant
141/148
Sortie
pn =
n fois
p p . . . p
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 122 / 129
Solution
http://find/7/23/2019 Debutant
142/148
Code Fichier Debutant/code75.tex
\[p ^ n = \ overbrace {p \ times p \ times \ ldots \ times p } ^{ n \ t ex t { f oi s } }\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 123 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code75.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code75.texhttp://find/7/23/2019 Debutant
143/148
Sortie
n n=nnn...
n
n fois
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 124 / 129
Solution
http://find/7/23/2019 Debutant
144/148
Code Fichier Debutant/code76.tex
\[n \ uparrow n = \ underbrace {n^{n^{n^{\ ldots ^ n }} } }_ { n \ t ex t { f oi s }}\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 125 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code76.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code76.texhttp://find/7/23/2019 Debutant
145/148
Sortie
x+iy=x iy
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 126 / 129
Solution
http://find/7/23/2019 Debutant
146/148
Code Fichier Debutant/code77.tex
\[\ overline { x +i y} = x - iy\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 127 / 129
ExerciceTrouver le code pour obtenir la sortie suivante
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code77.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code77.texhttp://find/7/23/2019 Debutant
147/148
Sortie
z= (z) +i(z)
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 128 / 129
Solution
http://find/7/23/2019 Debutant
148/148
Code Fichier Debutant/code78.tex
\[z = \ Re ( z ) + i \ Im (z )\]
Bernardo da Costa (Orsay) Formation LATEX Niveau dbutant 27 Avril 2012 129 / 129
http://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code78.texhttp://localhost/var/www/apps/conversion/tmp/scratch_5/Debutant/code78.texhttp://find/