présentation beamer & pgf / tikz › icar › presentation › ... · un peu d’histoire...
TRANSCRIPT
Présentation Beamer&
PGF / TikZ
19 juin 2018
Vincent Itier
Sommaire
1 Introduction
2 Présentation Beamer : Les bases
3 Présentation Beamer : Fonctionnalités avancées
4 Graphisme : PGF / TikZ
Vincent Itier Beamer & LATEX 2
Outils de rédaction et de présentation
Paradigmes
What you see is what you get (WYSIWYG)Word, Open Office, Libre Office, . . .
What you get is what you mean (WYGIWYM)TEX, LATEX, . . .
Exemple LATEX
Exemple Word
Vincent Itier Beamer & LATEX 3
Un peu d’histoire
Chronologie :
1977 Donald Knuth crée TEX “typesetting system"1985 Leslie Lamport crée LATEX1994 Frank Mittelbach reprend LATEX et produit LATEX 2ε2003 Till Tantau crée Beamer201- LATEX3??
Vincent Itier Beamer & LATEX 4
Elements abordés
Ce qu’on va voir :LATEX : langage macrosBeamer : classe de documentPGF, TikZ : package graphique bas et haut niveau
Ce qu’on ne va pas voir :Bases LATEXListes de packagesLe bas niveau et les compatibilités
Vincent Itier Beamer & LATEX 5
Publications scientifiques
LATEX soumissions 2009 (%)Mathématique 96.9
Statistiques et probabilités 89.1Physisque 74.0
Informatique 45.8Biologie 0.0
Médecine 0.0
# Formules
F. Brischoux and P. LegagneuxDon’t Format Manuscripts.The Scientist, 2009
M. Knauff, J. NejasmicAn Efficiency Comparison of Document Preparation Systems Used in Academic Research andDevelopment.PLoS ONE, 2014
Vincent Itier Beamer & LATEX 6
Motivation
Pourquoi LATEX?
Facilité de rédaction de documents scientifiquesSéparation nette du fond et de la formeGestion :
HierarchisationNumérotationFlottantsFormules et notations mathématiquesRéférencesBibliographies
DéfautsPas de rendu en temps réelMoins de libertés que certains WYSIWYG
Vincent Itier Beamer & LATEX 7
Motivation
Pourquoi Beamer?Facilité de présenter un document déjà fait en LATEX!PortabilitéSouplesse de changement de style
DéfautsPas de rendu en temps réelMoins de transitions / animations
Vincent Itier Beamer & LATEX 8
Motivation
Pourquoi PGF/TikZ?Dessin vectorielProgrammableIdéal pour les graphesTout est possible
DéfautsComplexe à prendre en mainTemps de création
Vincent Itier Beamer & LATEX 9
Outils
SoftwaresDistribution LATEX :
Tex Live, MiKTeX (basé sur PdfTex, LuaTex)Editeur :
TexMaker, LyX (≈WYSIWYG)Outils de visualisation :
Adobe Reader, ghostScript, . . .
Online : regroupe tout !
ShareLaTeX, Overleaf, . . .
Vincent Itier Beamer & LATEX 10
Liens utiles (INDISPENSABLES! !)
DocumentationGuide LATEXBeamer user guidePGF user guideCTANWikiLes forums : “Il y a sûrement une personne qui a eu lemême problème avant." 1
Exemple d’outilsEditeur de tableauxTableau de variations
1Vincent Itier, 2000
Vincent Itier Beamer & LATEX 11
Sommaire
1 Introduction
2 Présentation Beamer : Les basesPremier exampleLes éléments de basesThèmes et couleursSommaireInsertionsRéférencesMise en page
3 Présentation Beamer : Fonctionnalités avancées
4 Graphisme : PGF / TikZ
Vincent Itier Beamer & LATEX 12
Section
Premier example
Vincent Itier Beamer & LATEX 13
Première présentation Beamer
\documentclass{beamer}\begin{document}
\begin{frame}{Mon titre}Diapositive 1
\end{frame}\end{document}
Vincent Itier Beamer & LATEX 14
Diapositive 1
Première présentation Beamer
\documentclass{beamer}\usetheme{Frankfurt}\usecolortheme{myct}% or try albatross, beaver,...\begin{document}
\begin{frame}{Mon titre}Diapositive 1
\end{frame}\end{document}
Vincent Itier Beamer & LATEX 16
Mon titre
Diapositive 1
Vincent Itier Beamer & LATEX 17
Première présentation Beamer
\documentclass{beamer}\usetheme{Frankfurt}\usecolortheme{myct}% or try albatross, beaver,...\begin{document}
\begin{frame}{Mon titre}\begin{block}{block}
Texte bloc 1\end{block}\begin{alertblock}{alertblock}
Texte bloc 2\end{alertblock}\begin{exampleblock}{exampleblock}
Texte bloc 3\end{exampleblock}
\end{frame}\end{document}
Vincent Itier Beamer & LATEX 18
Mon titre
blockTexte bloc 1
alertblockTexte bloc 2
exampleblockTexte bloc 3
Vincent Itier Beamer & LATEX 19
Section
Les éléments de bases
Vincent Itier Beamer & LATEX 20
Rappels
Environnements\begin{env}[option]{argument}\end{env}
Exemple\begin{document}...\end{document}\begin{itemize}[-]...\end{itemize}
Commande\command[option]{argument}
Exemple\documentclass[-]{-}\usepackage[-]{-}\section[-]{-}
Vincent Itier Beamer & LATEX 21
Les élements propres à Beamer
Organisation par frame !
Thèmes prédéfinisBlock (block, alert, example)Barre de navigation
\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)Transitions et animations
Vincent Itier Beamer & LATEX 22
Les élements propres à Beamer
Organisation par frame !Thèmes prédéfinis
Block (block, alert, example)Barre de navigation
\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)Transitions et animations
Vincent Itier Beamer & LATEX 22
Les élements propres à Beamer
Organisation par frame !Thèmes prédéfinisBlock (block, alert, example)
Barre de navigation\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)Transitions et animations
Vincent Itier Beamer & LATEX 22
Les élements propres à Beamer
Organisation par frame !Thèmes prédéfinisBlock (block, alert, example)Barre de navigation
\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)Transitions et animations
Vincent Itier Beamer & LATEX 22
Les élements propres à Beamer
Organisation par frame !Thèmes prédéfinisBlock (block, alert, example)Barre de navigation
\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)
Transitions et animations
Vincent Itier Beamer & LATEX 22
Les élements propres à Beamer
Organisation par frame !Thèmes prédéfinisBlock (block, alert, example)Barre de navigation
\section*{Sommaire} % Pas dans le sommaire\section{Introduction} % Dans le sommaire
Overlays (Recouvrement)Transitions et animations
Vincent Itier Beamer & LATEX 22
Header
Body
Footer
MarginNotes
i8� -
i7
?
6
i1� -
�-i3 i10-�
�-i9
6
?
i11
i2?
6
6
?
i46
?
i56?i6
1 one inch + \hoffset 2 one inch + \voffset3 \oddsidemargin = -43pt 4 \topmargin = -72pt5 \headheight = 14pt 6 \headsep = 0pt7 \textheight = 244pt 8 \textwidth = 307pt9 \marginparsep = 10pt 10 \marginparwidth = 4pt
11 \footskip = 14pt \marginparpush = 5pt (not shown)\hoffset = 0pt \voffset = 0pt\paperwidth = 364pt \paperheight = 273pt
Le rendu
Stackexchange
Vincent Itier Beamer & LATEX 24
Structure du fichier
% Classe\documentclass{beamer}%%%%%%%%% Package\usepackage[frenchb]{babel}\usepackage[utf8x]{inputenc}\usepackage[T1]{fontenc}%%%%%%%%%%%%%%%%%%%% Mise en page%%%%%%%%%%%%%%%%%%%
% Document\begin{document}\begin{frame}
\titlepage\end{frame}
\begin{frame}{Sommaire}\tableofcontent
\end{frame}
\begin{frame}\frametitle{Titre}Contenu
\end{frame}% Fin du document\end{document}
Vincent Itier Beamer & LATEX 25
Environnement Frame
Chaque frame est une diapositiveUne frame est définie :
HeadBodyFoot
Une frame est composée :TitreSous-titre (optionnel)Contenu
Vincent Itier Beamer & LATEX 26
Diapositive titre
\documentclass{beamer}\usetheme{Warsaw}\usecolortheme{beaver}
\usepackage[frenchb]{babel}\usepackage[utf8x]{inputenc}
\title{Ma pr{\’e}sentation}\author{Vincent ITIER}\institute{IMT Lille Douai}\date %\today
\begin{document}
\begin{frame}\titlepage
\end{frame}
\end{document}
Ma presentation
Vincent ITIER
IMT Lille Douai
Vincent ITIER Un titre court
Vincent Itier Beamer & LATEX 27
Section
Thèmes et couleurs
Vincent Itier Beamer & LATEX 28
Les thèmes
Sans barre de navigationex : Default
Avec un arbre de navigationex : Montpellier
Avec un sommaire latéralex : Hannover
Avec un mini-cadre denavigation
ex : WarsawVincent Itier Beamer & LATEX 29
Les thèmes et couleurs prédéfinis
Pour utiliser les thèmes prédéfinis :\mode<presentation>{
\usetheme{Frankfurt}\usecolortheme{beaver}\setbeamertemplate{navigation symbols}{}
}
Les thèmes de couleurs :\usecolortheme{colorthemename}
Les thèmes intérieurs :\useinnertheme{innerthemename}
Les thèmes extérieurs :\useoutertheme{outerthemename}
Vincent Itier Beamer & LATEX 30
Section
Sommaire
Vincent Itier Beamer & LATEX 31
Sommaire
Les sections organisent la présentation !Commande :\tableofcontents[option]
Peut être automatisé :\AtBeginSection[]{
\begin{frame}<beamer>\frametitle{Sommaire}\tableofcontents[currentsection,
hideothersubsections]\end{frame}
}
Vincent Itier Beamer & LATEX 32
Section
Insertions
Vincent Itier Beamer & LATEX 33
Insertions
Image :\includegraphics[options]{argument}
Vidéo :\usepackage{multimedia}\movie[options]{affichage}{adresse}
La vidéo n’est pas incluse !URL :\href{adresse}{affichage}
Sond (format .au, .aif) :\sound[options]{sound poster text}{file}
Vincent Itier Beamer & LATEX 34
Insertions
Image :\includegraphics[options]{argument}
Vidéo :\usepackage{multimedia}\movie[options]{affichage}{adresse}
La vidéo n’est pas incluse !
URL :\href{adresse}{affichage}
Sond (format .au, .aif) :\sound[options]{sound poster text}{file}
Vincent Itier Beamer & LATEX 34
Insertions
Image :\includegraphics[options]{argument}
Vidéo :\usepackage{multimedia}\movie[options]{affichage}{adresse}
La vidéo n’est pas incluse !URL :\href{adresse}{affichage}
Sond (format .au, .aif) :\sound[options]{sound poster text}{file}
Vincent Itier Beamer & LATEX 34
Insertions
Image :\includegraphics[options]{argument}
Vidéo :\usepackage{multimedia}\movie[options]{affichage}{adresse}
La vidéo n’est pas incluse !URL :\href{adresse}{affichage}
Sond (format .au, .aif) :\sound[options]{sound poster text}{file}
Vincent Itier Beamer & LATEX 34
Insertions
Les maillages 3D :\usepackage[3D]{movie15}% movie9 !!\includemovie[options]{x}{y}{mesh.u3d}
Click here !
Vincent Itier Beamer & LATEX 35
Les flottants avec Bill Murray
Les flottants ne sont pas nécessaires !
\centering\includegraphics[height = 0.3\textheight]{bill}\\\textit{Bill Murray et sa marmotte}
Bill Murray et la marmotte\centering\textit{Ses meilleurs films}\\\begin{tabular}{|c|c|}
\hline1 & La vie aquatique\\\hline2 & SOS fantomes\\\hline3 & Lost in translation\\\hline
\end{tabular}
Ses meilleurs films1 La vie aquatique2 SOS fantômes3 Lost in translation
Vincent Itier Beamer & LATEX 36
Section
Références
Vincent Itier Beamer & LATEX 37
Gestion des références
Comme avec un autre document LATEX, avec \cite{ref} !\begin{frame}[allowframebreaks]{References}
\bibliographystyle{plain}\bibliography{file}
\end{frame}
Eddie Valiant : [Roger managed to slip his arm out of theHandcuffs he and Eddie were attached to] You mean youcould’ve taken your hand out of that cuff at any time?Roger Rabbit : No, not at any time, only when it was funny. [1]
Vincent Itier Beamer & LATEX 38
Gestion des références
\begin{thebibliography}{1}\tiny\setbeamertemplate{bibliography item}[article]% online, book\bibitem{citation1}Robert Zemeckis\newblock {\em Who framed Roger Rabbit.}\newblock Buena Vista Pictures Distribution, 1998.
\end{thebibliography}
Robert ZemeckisWho framed Roger Rabbit.Buena Vista PicturesDistribution, 1998.
Robert ZemeckisWho framed Roger Rabbit.Buena Vista PicturesDistribution, 1998.
Robert ZemeckisWho framed Roger Rabbit.Buena Vista PicturesDistribution, 1998.
Vincent Itier Beamer & LATEX 39
Section
Mise en page
Vincent Itier Beamer & LATEX 40
Mise en page
Les éléments de mise en page :
Les colonnesLes minipagesLes tableaux
Vincent Itier Beamer & LATEX 41
Mise en page
Les éléments de mise en page :Les colonnes
Les minipagesLes tableaux
Colonne 1 Colonne 2
Vincent Itier Beamer & LATEX 41
Mise en page
Les éléments de mise en page :Les colonnesLes minipages
Les tableaux
Colonne 1Minipage 1 Minipage 2
Colonne 2
Vincent Itier Beamer & LATEX 41
Mise en page
Les éléments de mise en page :Les colonnesLes minipagesLes tableaux
Colonne 1Minipage 1 Minipage 2
Colonne 2
R1 R1 R1R1 R1 R1R1 R1 R1
Vincent Itier Beamer & LATEX 41
Mise en page
Les éléments de mise en page :Les colonnesLes minipagesLes tableaux
Colonne 1Minipage 1 Minipage 2
Colonne 2R1 R1 R1R1 R1 R1R1 R1 R1
Vincent Itier Beamer & LATEX 42
Sommaire
1 Introduction
2 Présentation Beamer : Les bases
3 Présentation Beamer : Fonctionnalités avancéesDéfinitions personnaliséesRecouvrementTransition
4 Graphisme : PGF / TikZ
Vincent Itier Beamer & LATEX 43
Section
Définitions personnalisées
Vincent Itier Beamer & LATEX 44
Définitions personnalisées
Définir une variable :\newlength\name
Définir un compteur :\newcounter{compteur}
Définir ou redéfinir une commande :\(re)newcommand{\nom_commande}[\#arguments][defaut]{code}
Définir un environnement :\newenvironment{nom_env}[arguments]{begdef}{enddef}
Vincent Itier Beamer & LATEX 45
Exemples :
Une variable pour la marge gauche :\makeatletter\newlength\beamerleftmargin\setlength\beamerleftmargin{\Gm@lmargin}\makeatother
Définir un compteur :\newcounter{count}\setcounter{count}{0}
Vincent Itier Beamer & LATEX 46
Exemples (suite) :
Définir des commandes de raccourcis :\newcommand{\ketp}{\ensuremath{\ket{\psi}}}\newcommand{\maforme}[1]{\ensuremath{x.{#1}^x}}
Définir une frame spéciale :\newenvironment{testframe}[2]{%
\refstepcounter{count}\usebackgroundtemplate{
\includegraphics[width = \paperwidth,height =\textheight]{#1}
}\begin{frame}
\frametitle{Ma frame \thecount: #2}}{\end{frame}}
Vincent Itier Beamer & LATEX 47
Ma frame 1: Titre
|ψ〉x.2x
x.ax
Le code\begin{testframe}{img/test}{Titre}
\begin{itemize}\item \ketp\item \maforme{2}\item \maforme{a}
\end{itemize}\end{testframe}
Vincent Itier Beamer & LATEX 48
Ma frame 2: Titre
Le code\begin{testframe}{img/test2}{Titre}
\hspace*{-\beamerleftmargin}%\includegraphics[height = 0.8
\textheight]{img/test3}\end{testframe}
Vincent Itier Beamer & LATEX 49
Section
Recouvrement
Vincent Itier Beamer & LATEX 50
Overlays simple : item
Apparition ordre donné :
Une liste :item 1
item 2item 3item 4
Le code\begin{itemize}
\item<1-> item 1\item<2-3> item 2\item<3-> item 3\item<4-> item 4
\end{itemize}
Vincent Itier Beamer & LATEX 51
Overlays simple : item
Apparition ordre donné :
Une liste :item 1item 2
item 3item 4
Le code\begin{itemize}
\item<1-> item 1\item<2-3> item 2\item<3-> item 3\item<4-> item 4
\end{itemize}
Vincent Itier Beamer & LATEX 51
Overlays simple : item
Apparition ordre donné :
Une liste :item 1item 2item 3
item 4
Le code\begin{itemize}
\item<1-> item 1\item<2-3> item 2\item<3-> item 3\item<4-> item 4
\end{itemize}
Vincent Itier Beamer & LATEX 51
Overlays simple : item
Apparition ordre donné :
Une liste :item 1
item 2
item 3item 4
Le code\begin{itemize}
\item<1-> item 1\item<2-3> item 2\item<3-> item 3\item<4-> item 4
\end{itemize}
Vincent Itier Beamer & LATEX 51
Overlays simple : item
Apparition continue :
Une liste :item 1
item 2item 3item 4
Le code\begin{itemize}[<+->]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 52
Overlays simple : item
Apparition continue :
Une liste :item 1item 2
item 3item 4
Le code\begin{itemize}[<+->]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 52
Overlays simple : item
Apparition continue :
Une liste :item 1item 2item 3
item 4
Le code\begin{itemize}[<+->]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 52
Overlays simple : item
Apparition continue :
Une liste :item 1item 2item 3item 4
Le code\begin{itemize}[<+->]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 52
Overlays simple : item
Alerte :
Une liste :item 1item 2item 3item 4
Le code\begin{itemize}
\item item 1\item item 2\item<alert@3> item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 53
Overlays simple : item
Alerte :
Une liste :item 1item 2item 3item 4
Le code\begin{itemize}
\item item 1\item item 2\item<alert@3> item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 53
Overlays simple : item
Alerte :
Une liste :item 1item 2item 3item 4
Le code\begin{itemize}
\item item 1\item item 2\item<alert@3> item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 53
Overlays simple : item
Apparition avec alerte :
Une liste :item 1
item 2item 3item 4
Le code\begin{itemize}[<+-|alert@+>]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 54
Overlays simple : item
Apparition avec alerte :
Une liste :item 1item 2
item 3item 4
Le code\begin{itemize}[<+-|alert@+>]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 54
Overlays simple : item
Apparition avec alerte :
Une liste :item 1item 2item 3
item 4
Le code\begin{itemize}[<+-|alert@+>]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 54
Overlays simple : item
Apparition avec alerte :
Une liste :item 1item 2item 3item 4
Le code\begin{itemize}[<+-|alert@+>]
\item item 1\item item 2\item item 3\item item 4
\end{itemize}
Vincent Itier Beamer & LATEX 54
Elements avec apparitions
Les commandes temporisable :
\textbf
\textit
\textsl
\includegraphics
\color
\item
\alert
\structure
\textsf
\textrm
. . .
Un petit exemple de changement.
Le codeUn petit exemple \textcolor<2>{SeaGreen}{de changement}.
Vincent Itier Beamer & LATEX 55
Elements avec apparitions
Les commandes temporisable :
\textbf
\textit
\textsl
\includegraphics
\color
\item
\alert
\structure
\textsf
\textrm
. . .
Un petit exemple de changement.
Le codeUn petit exemple \textcolor<2>{SeaGreen}{de changement}.
Vincent Itier Beamer & LATEX 55
Commande d’apparitions
Gérer l’apparition d’éléments :
\pause
\uncover<->{-}
\only<->{-}
\alt<->{-}
\onslide<->{-}
\onslide+<->{-}
\onslide*<->{-}
\invisible
Plein de choses à tester.
y = (2x)× δ
y = (2x
+ γ
)× δ
A révéler !
Vincent Itier Beamer & LATEX 56
Commande d’apparitions
Gérer l’apparition d’éléments :
\pause
\uncover<->{-}
\only<->{-}
\alt<->{-}
\onslide<->{-}
\onslide+<->{-}
\onslide*<->{-}
\invisible
Ou à découvrir !y = (2x+ γ)× δ
y = (2x+ γ)× δ
A révéler !
Vincent Itier Beamer & LATEX 56
Commande d’apparitions
Gérer l’apparition d’éléments :
\pause
\uncover<->{-}
\only<->{-}
\alt<->{-}
\onslide<->{-}
\onslide+<->{-}
\onslide*<->{-}
\invisible
A vous de jouer !Plein de choses à tester.
y = (2x+ γ)× δ
y = (2x+ γ)× δ
A révéler !
Vincent Itier Beamer & LATEX 56
Section
Transition
Vincent Itier Beamer & LATEX 57
Les transitions & animations
A utiliser avec parcimonie !\trans*[option]
\transduration{-}
Exemple\transfade
\transduration{2}
Vincent Itier Beamer & LATEX 58
Les transitions & animations
Des films des frères Coen
Vincent Itier Beamer & LATEX 59
Les transitions & animations
Des films des frères Coen
Vincent Itier Beamer & LATEX 59
Les transitions & animations
Des films des frères Coen
Vincent Itier Beamer & LATEX 59
Les transitions & animations
Des films des frères Coen
Vincent Itier Beamer & LATEX 59
Les transitions & animations
Des films des frères Coen
Vincent Itier Beamer & LATEX 59
Animation
Code\usepackage{animate}
\begin{frame}{Animation}\animategraphics[autoplay,loop,height=0.6\textheight]{5}{img
-}{0}{31}\end{frame}
Vincent Itier Beamer & LATEX 60
Sommaire
1 Introduction
2 Présentation Beamer : Les bases
3 Présentation Beamer : Fonctionnalités avancées
4 Graphisme : PGF / TikZDéfinitionLes basesExemples
Vincent Itier Beamer & LATEX 61
Section
Définition
Vincent Itier Beamer & LATEX 62
PGF / TikZ
DéfinitionsPGF : Portable Graphics FormatTikZ : TikZ ist kein Zeichenprogramm
Propriétés TikZLangage de macros haut niveauDessin vectorielpackage LATEX, comportant lui même de nombreux souspackage !
Vincent Itier Beamer & LATEX 63
PGF / TikZ
TikZTikZ pour l’impatientEnvironnement :\begin{tikzpicture}[option]
. . .\end{tikzpicture}
Outils de dessin vectorielGeoGebraInkscapeBlenderMATLAB3R
Vincent Itier Beamer & LATEX 64
Section
Les bases
Vincent Itier Beamer & LATEX 65
Le corps de la frame est la toile !
Zone de dessin \textwidth × \textheight
Coordonnées absolues complexe . . .Coordonnées relatives très simples !
A
A.north
A.eastA.west
A.south
B
Vincent Itier Beamer & LATEX 66
Le corps de la frame est la toile !
Déclaration Tikz\usepackage{pgf,tikz}\usetikzlibrary{shapes,shapes.arrows,decorations.pathreplacing,
calc}\tikzset{
nd/.style = {},box/.style = {draw=black,rectangle,align=center,minimum
height=8pt},vertex/.style = {circle,fill=BrickRed, text=BrickRed},ed/.style = {CornflowerBlue, very thick}}
Environnement TikzUn ; en fin de ligne !Node \node(label)[option]{Valeur}
Draw \draw[option] (node1)-- (node2)
Path \path[option] (node1)edge (node2)
Vincent Itier Beamer & LATEX 67
Section
Exemples
Vincent Itier Beamer & LATEX 68
TikZ & tikzmark
TOP 5 2016Class. Titre Pays Réalisateur
1 Vaiana USA John Musker et Ron Clements2 Rogue One USA Gareth Edwards3 Zootopie USA Byron Howard et Rich Moore4 Les Tuche 2 FR Olivier Barroux5 Les Animaux fantastiques USA David Yates
>?
Le code\begin{tikzpicture}[overlay,remember picture]
\draw[thick, red] ($(pic cs:fr)+(0.2,0.1)$) circle(0.3);\path[->,thick,red] (pic cs:ge) edge[bend left] node [right]
{$> ?$} (pic cs:dy);\end{tikzpicture}
Vincent Itier Beamer & LATEX 69
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0
v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1
v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi
Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
e0v1
e1v2
vj−1ej−1
vj
ej
vj+1
vi−1 ei−1
Vi Vn\Vi
viei
vi+1
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
v0
v1
v2
vj−1
vjvj+1
vi−1
vi
vi+1
e0
e1
ej−1
ej
ei−1
Vi Vn\Vi
ei
v0
v1
v2
vj−1
vjvj+1
vi−1
vi
vi+1
e0
e1
ej−1
ej
ei−1
Vi Vn\Vi
ei
Vincent Itier Beamer & LATEX 70
TikZ, Zoom & Overlays
Outils et astucesVertex : \resizebox{\textwidth}{!}{Overlays : \pauseOverlays conflit : \addtocounter{framenumber}{-1}frenchb et spy conflit :\shorthandoff{;} \begin{frame} . . .\end{frame} \shorthandon{;}
Définir son espion :\begin{tikzpicture}[spy using outlines={line width=0.5mm,
orange,magnification=2,height=4cm,width=15cm, connectspies}]%%ZOOM\coordinate (pos spy) at (12.,4.);\coordinate (center) at (12.5,8.5);\spy on (center) in node [fill=white, line width=1mm]
at (pos spy);
Vincent Itier Beamer & LATEX 71
TikZ & animation
Rotation
Le code\centering\begin{animateinline}[autoplay,loop]{10}
\multiframe{180}{rangle=0+30}{\begin{tikzpicture}[scale=1]
\draw (0,0) circle (1);\draw[thick,->] (0,0) -- ({
cos(90-\rangle)},{sin(90-\rangle)});
\draw[thick,->] (0,0) -- ({cos(90-\rangle/60)},{sin(90-\rangle/60)});
\end{tikzpicture}}
\end{animateinline}\\Rotation
Vincent Itier Beamer & LATEX 72
PGF & Plot 3D
0
1
2 0 0.51 1.5
2
0
0.2
0.4
Exemple de Stackexchange
Le code\centering\begin{tikzpicture}
\begin{axis}[grid=both,view={70}{40},colormap/viridis]\addplot3+[surf,mesh/
rows=11,mesh/ordering=colwise,nomarks] file {mesh.txt};
\end{axis}\end{tikzpicture}
Vincent Itier Beamer & LATEX 73
MERCIcontact : [email protected]