Rev 5894 | Rev 7867 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5894 | Rev 6472 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
17 | \theoremstyle{definition} |
17 | \theoremstyle{definition} |
18 | \newtheorem{defn}{Définition}[section] |
18 | \newtheorem{defn}{Définition}[section] |
19 | \newtheorem{ex}{Exemple} |
19 | \newtheorem{ex}{Exemple} |
20 | \newtheorem{exo}{Exercice} |
20 | \newtheorem{exo}{Exercice} |
- | 21 | \newtheorem{rem}{Remarque} |
|
21 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
22 | \def\RR{\mathbb R} |
23 | \def\RR{\mathbb R} |
23 | \def\NN{\mathbb N} |
24 | \def\NN{\mathbb N} |
24 | \def\ZZ{\mathbb Z} |
25 | \def\ZZ{\mathbb Z} |
25 | \def\CC{\mathbb C} |
26 | \def\CC{\mathbb C} |
Line 36... | Line 37... | ||
36 | \begin{proof} |
37 | \begin{proof} |
37 | Voici la démonstration. |
38 | Voici la démonstration. |
38 | \end{proof} |
39 | \end{proof} |
39 | \begin{defn} |
40 | \begin{defn} |
40 | Voici une définition |
41 | Voici une définition |
- | 42 | \end{defn} |
|
- | 43 | \begin{rem} |
|
- | 44 | Voici une remarque |
|
- | 45 | \end{rem} |
|
- | 46 | \begin{defn}[titre] |
|
- | 47 | Voici une définition avec titre |
|
41 | \end{defn} |
48 | \end{defn} |
42 | \section{Insertion d'un exercice} |
49 | \section{Insertion d'un exercice} |
43 | Pour insérer un exercice, prendre les deux premières lignes |
50 | Pour insérer un exercice, prendre les deux premières lignes |
44 | dans le fichier source d'une feuille d'exercice et les coller |
51 | dans le fichier source d'une feuille d'exercice et les coller |
45 | par un \&. |
52 | par un \&. |
Line 75... | Line 82... | ||
75 | <p class="wimscenter"> \draw{300,300}{\dessin} </p> |
82 | <p class="wimscenter"> \draw{300,300}{\dessin} </p> |
76 | Que remarquez-vous ? |
83 | Que remarquez-vous ? |
77 | \end{wimsonly} |
84 | \end{wimsonly} |
78 | 85 | ||
79 | 86 | ||
80 | \section{Une animation qui ne |
87 | \section{Une animation qui ne doit pas être dans latex} |
81 | \begin{wimsonly} |
88 | \begin{wimsonly} |
82 | \begin{wims} |
89 | \begin{wims} |
83 | 90 | ||
84 | \def{text liste=1,2,3,4,10,20,24,28,32,36,40} |
91 | \def{text liste=1,2,3,4,10,20,24,28,32,36,40} |
85 | \def{text listepoint=-1.8,-1.8,-1.8,-1.5,-1.2,-1.2} |
92 | \def{text listepoint=-1.8,-1.8,-1.8,-1.5,-1.2,-1.2} |
86 | \def{integer cnt =items(\liste)} |
93 | \def{integer cnt =items(\liste)} |
87 | \def{text h=wims(makelist x for x = 1 to \cnt)} |
94 | \def{text h=wims(makelist x for x = 1 to \cnt)} |
88 | 95 | ||
89 | \comment{L'entier N est le paramètre qui permet "d'avancer" ; |
96 | \comment{L'entier N est le paramètre qui permet "d'avancer" ; |
90 | parm1 est une variable qui va être transmis à la page suivante. Au |
97 | parm1 est une variable qui va être transmis à la page suivante. Au |
91 | départ parm1 ne vaut rien donc N = 1 ; ensuite parm1 vaut N |
98 | départ parm1 ne vaut rien donc N = 1 ; ensuite parm1 vaut N |
92 | donc N va s'incrémenter |
99 | donc N va s'incrémenter |
93 | } |
100 | } |
Line 130... | Line 137... | ||
130 | &a&\(\frac{1}{2}\) \\ |
137 | &a&\(\frac{1}{2}\) \\ |
131 | \hline |
138 | \hline |
132 | c&d&f\\ |
139 | c&d&f\\ |
133 | \hline |
140 | \hline |
134 | \end{tabular} |
141 | \end{tabular} |
- | 142 | |
|
- | 143 | \section{Un algorithme} |
|
- | 144 | Vous pouvez configurer l'environnement algorithm dans latex pour |
|
- | 145 | que les mots clés soient en français |
|
- | 146 | ||
- | 147 | \begin{algorithm} |
|
- | 148 | \caption{Liste des polygones de Newton} |
|
- | 149 | \begin{algorithmic}[1] |
|
- | 150 | \REQUIRE $a, b$ |
|
- | 151 | \ENSURE $u$ et $v$ tels que $u a + v b = pgcd(a,b)$ |
|
- | 152 | \IF{$a = 0$} |
|
- | 153 | \STATE Retourner $[b,0,1]$ |
|
- | 154 | \ENDIF |
|
- | 155 | \STATE $x \rightarrow a$, $y \rightarrow b$, $ vx \rightarrow 0$, $vy \rightarrow 1$ |
|
- | 156 | \WHILE{ $ y <> 0$} |
|
- | 157 | \STATE $q \rightarrow quotient de x par y$, $r \rightarrow x-q*y$ |
|
- | 158 | \STATE $t \rightarrow vy$ |
|
- | 159 | \STATE $vy \rightarrow vx - q*vy$ |
|
- | 160 | \STATE $vx \rightarrow t$ |
|
- | 161 | \STATE $x \rightarrow y$ |
|
- | 162 | \STATE $y \rightarrow r$ |
|
- | 163 | \ENDWHILE |
|
- | 164 | \STATE Retourner $\lbrack x, (x-b*vx)/a, vx \rbrack $ |
|
- | 165 | \end{algorithmic} |
|
- | 166 | \end{algorithm} |
|
- | 167 | ||
135 | \end{document} |
168 | \end{document} |