summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/formation-latex-ul/mathematiques-diapos.tex
blob: 102f8cf7f5552c344dae02b933d3a4b0605f3c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
\section{B.a.-ba des mathématiques}

\begin{frame}[fragile=singleslide]
  \frametitle{Principes de base}
  \begin{itemize}
  \item Décrire des équations mathématiques requiert un «langage» spécial
    \begin{itemize}
    \item il faut informer {\LaTeX} que l'on passe à ce langage
    \item par le biais de modes mathématiques
    \end{itemize}
  \item Important d'utiliser un mode mathématique
    \begin{itemize}
    \item règles de typographie spéciales (constantes vs variables,
      disposition des équations, numérotation, etc.)
    \item espaces entre les symboles et autour des opérateurs gérées
      automatiquement
    \end{itemize}
  \item Vous voulez utiliser le paquetage \pkg{amsmath}
\begin{lstlisting}
\usepackage{amsmath}
\end{lstlisting}
    \begin{itemize}
    \item lire la documentation de ce paquetage pour connaître toutes
      ses fonctionnalités
    \end{itemize}
  \end{itemize}
\end{frame}

\begin{frame}[fragile]
  \frametitle{Modes mathématiques}
  \begin{enumerate}[<+->]
  \item «En ligne» directement dans le texte comme $(a + b)^2 = a^2 +
    2ab + b^2$ en plaçant l'équation entre \verb=$ $=
\begin{lstlisting}
«En ligne» directement dans le texte
comme $(a + b)^2 = a^2 + 2ab + b^2$
\end{lstlisting}
  \item «Hors paragraphe» séparé du texte principal comme
    \begin{equation*}
      \int_0^\infty f(x)\, dx = \sum_{i = 1}^n \alpha_i e^{x_i} f(x_i)
    \end{equation*}
    en utilisant divers types d'environnements
\begin{lstlisting}
«Hors paragraphe» séparé du texte principal comme
\begin{equation*}
  \int_0^\infty f(x)\, dx =
  \sum_{i = 1}^n \alpha_i e^{x_i} f(x_i)
\end{equation*}
\end{lstlisting}
  \end{enumerate}
\end{frame}

\begin{frame}[plain]
  \begin{conseil}
    Les équations, en ligne ou hors paragraphe, font partie intégrante
    de la phrase.

    \bigskip %
    Les règles de ponctuation usuelles s'appliquent donc aux
    équations.
  \end{conseil}

  \vspace{18pt}
  \fbox{\includegraphics[width=0.95\linewidth]{ponctuation}}
\end{frame}

\begin{frame}[fragile]
  \frametitle{Quelques règles de base}
  \begin{itemize}
  \item En mode mathématique, {\TeX} respecte automatiquement la
    convention d'écrire les constantes en \rmfamily{romain} et les
    variables en \textit{italique}
    \begin{demo}
      \begin{texample}
\begin{lstlisting}
$z = 2a + 3y$
\end{lstlisting}
        \producing
        $z = 2a + 3y$
      \end{texample}
    \end{demo}
  \item Espacement entre les éléments géré automatiquement, peu importe
    le code source
    \begin{demo}
      \begin{texample}
\begin{lstlisting}
$z=2 a+3 y$
\end{lstlisting}
        \producing
        $z=2 a+3 y$
      \end{texample}
    \end{demo}
  \end{itemize}
\end{frame}

\begin{frame}[fragile]
  \frametitle{Quelques règles de base (suite)}
  \begin{itemize}
  \item \alert{Ne pas} utiliser le mode mathématique pour obtenir du
    texte en italique!
    \begin{demo}
      \begin{texample}
\begin{lstlisting}
\emph{xyz}
\end{lstlisting}
        \producing
        \rmfamily\emph{xyz}
      \end{texample}
      \begin{texample}
\begin{lstlisting}
$xyz$
\end{lstlisting}
        \producing
        $xyz$
      \end{texample}
    \end{demo}
  \item Utiliser la commande \verb=\text{}= de \pkg{amsmath} pour
    composer du texte à l'intérieur du mode mathématique
    \begin{demo}
      \begin{texample}
\begin{lstlisting}
$x = 0 \text{ si } y < 2$
\end{lstlisting}
        \producing
        $x = 0 \text{ si } y < 2$
      \end{texample}
    \end{demo}
  \end{itemize}
\end{frame}

\begin{frame}[fragile]
  \frametitle{Avant-goût}

  Pouvez-vous interpréter ce code?
\begin{lstlisting}
\begin{equation*}
  \Gamma(\alpha) =
  \sum_{j = 0}^\infty \int_j^{j + 1}
    x^{\alpha - 1} e^{-x}\, dx
\end{equation*}
\end{lstlisting}
  \vspace{18pt}
  \pause

  Fort probablement!
  \begin{equation*}
    \Gamma(\alpha) =
    \sum_{j = 0}^\infty \int_j^{j + 1} x^{\alpha - 1} e^{-x}\, dx
  \end{equation*}
\end{frame}

%%% Local Variables:
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: "formation-latex-ul-diapos"
%%% End: