Rev 10283 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | \documentclass[11pt]{article} |
2 | \usepackage{amsthm,amsfonts} |
||
3 | \usepackage[french]{babel} |
||
4 | \usepackage[latin1]{inputenc} |
||
5 | \usepackage[T1]{fontenc} |
||
6 | \usepackage{pslatex} |
||
10282 | bpr | 7 | \usepackage{algorithm} |
8 | \usepackage[noend]{algorithmic} |
||
23 | reyssat | 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ù |
10837 | bpr | 10 | \usepackage{hyperref} |
11 | \usepackage{url} |
||
12 | \usepackage{comment} |
||
743 | bpr | 13 | \input wims.sty |
23 | reyssat | 14 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3334 | bpr | 15 | %\wimsinclude{persowims.sty}%pour inclure des fichiers non lus par latex |
23 | reyssat | 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
17 | \theoremstyle{plain} |
||
613 | schaersvoo | 18 | \newtheorem{thm}{Théorème}[section] |
19 | \newtheorem{theo}[thm]{Théorème} |
||
20 | \newtheorem{prop}[thm]{Proposition} |
||
23 | reyssat | 21 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
613 | schaersvoo | 22 | \theoremstyle{definition} |
7867 | bpr | 23 | \newtheorem{defn}{Définition}[section] |
613 | schaersvoo | 24 | \newtheorem{ex}{Exemple} |
25 | \newtheorem{exo}{Exercice} |
||
6472 | bpr | 26 | \newtheorem{rem}{Remarque} |
23 | reyssat | 27 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
28 | \def\RR{\mathbb R} |
||
29 | \def\NN{\mathbb N} |
||
30 | \def\ZZ{\mathbb Z} |
||
31 | \def\CC{\mathbb C} |
||
32 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||
33 | \begin{document} |
||
34 | %% indispensable |
||
613 | schaersvoo | 35 | \title{Mon document} |
23 | reyssat | 36 | \author{Bernadette Perrin-Riou} |
37 | \email{bpr@math.u-psud.fr} |
||
10283 | bpr | 38 | \section{Utilisation des environnements} |
23 | reyssat | 39 | \begin{thm} |
613 | schaersvoo | 40 | Voici un théorème |
23 | reyssat | 41 | \end{thm} |
42 | \begin{proof} |
||
613 | schaersvoo | 43 | Voici la démonstration. |
23 | reyssat | 44 | \end{proof} |
7867 | bpr | 45 | \begin{defn} |
613 | schaersvoo | 46 | Voici une définition |
23 | reyssat | 47 | \end{defn} |
7867 | bpr | 48 | \begin{rem} |
6472 | bpr | 49 | Voici une remarque |
50 | \end{rem} |
||
51 | \begin{defn}[titre] |
||
52 | Voici une définition avec titre |
||
53 | \end{defn} |
||
613 | schaersvoo | 54 | \section{Insertion d'un exercice} |
55 | Pour insérer un exercice, prendre les deux premières lignes |
||
56 | dans le fichier source d'une feuille d'exercice et les coller |
||
7867 | bpr | 57 | par un \&. |
23 | reyssat | 58 | \begin{exo} |
613 | schaersvoo | 59 | Faites l'exercice d'application\index{exercice1} |
60 | \exercise{module=H6/analysis/oefcourbe.fr&exo=courb1&scoredelay=&confparm1=A&confparm1=B}{Courbes} |
||
23 | reyssat | 61 | \end{exo} |
613 | schaersvoo | 62 | \section{Insertion d'un exemple} |
63 | Un exemple de dessin non vu dans le fichier pdf \index{exemple} |
||
23 | reyssat | 64 | \begin{wimsonly} |
65 | \begin{wims} |
||
66 | \def{matrix A = -6,28,21 |
||
67 | 4,-15,-12 |
||
68 | -8,a,25} |
||
69 | \def{text P = pari(charpoly( [\A], x))} |
||
70 | \def{text color=blue,purple,red,orange,yellow} |
||
71 | \def{text dessin = xrange -1,4 |
||
72 | yrange -10,10 |
||
73 | hline 0,0,black |
||
74 | vline 0,0, black |
||
75 | } |
||
76 | \def{text liste = 31.8,31.9,32,32.1,32.2} |
||
77 | \def{integer cnt = items(\liste)} |
||
78 | \for{i = 1 to \cnt}{ |
||
79 | \def{text p = evalue(\P,a = \liste[\i])} |
||
80 | \def{text dessin = \dessin |
||
81 | plot \color[\i], \p |
||
82 | } |
||
83 | } |
||
84 | \end{wims} |
||
7867 | bpr | 85 | Voici le graphe des polynômes caractéristiques des matrices \([\A]) pour les valeurs |
613 | schaersvoo | 86 | de \(a) suivantes : \liste. |
5793 | bpr | 87 | <p class="wimscenter"> \draw{300,300}{\dessin} </p> |
7867 | bpr | 88 | Que remarquez-vous ? |
23 | reyssat | 89 | \end{wimsonly} |
743 | bpr | 90 | |
91 | |||
6472 | bpr | 92 | \section{Une animation qui ne doit pas être dans latex} |
743 | bpr | 93 | \begin{wimsonly} |
94 | \begin{wims} |
||
95 | |||
96 | \def{text liste=1,2,3,4,10,20,24,28,32,36,40} |
||
97 | \def{text listepoint=-1.8,-1.8,-1.8,-1.5,-1.2,-1.2} |
||
98 | \def{integer cnt =items(\liste)} |
||
99 | \def{text h=wims(makelist x for x = 1 to \cnt)} |
||
100 | |||
101 | \comment{L'entier N est le paramètre qui permet "d'avancer" ; |
||
102 | parm1 est une variable qui va être transmis à la page suivante. Au |
||
103 | départ parm1 ne vaut rien donc N = 1 ; ensuite parm1 vaut N |
||
104 | donc N va s'incrémenter |
||
105 | } |
||
106 | \def{integer N = \parm1 notitemof \h ? 1 : \parm1 + 1} |
||
107 | \def{text commentaire =\N >= \cnt ? Recommencer:Continuer} |
||
108 | \comment{on fait un lien sur la même page mais en transmettant |
||
109 | le paramètre \N} |
||
110 | \link{.}{\commentaire}{}{parm1=\N}{dessin} |
||
111 | \comment{Ensuite, c'est du code pour faire un dessin} |
||
112 | \def{text couleur=wims(makelist yellow,orange,pink,blue,green for x = 2 to 5)} |
||
113 | \def{text dessin= xrange -2,2 |
||
114 | yrange -1,1 |
||
115 | hline 0,0,black |
||
116 | arrow 0,0,1,0,6,black |
||
117 | arrow 0,0,0,1,6,black |
||
118 | vline 0,0,black} |
||
119 | \comment{On ne trace que les N premières courbes} |
||
120 | \for{i = 1 to \N}{ |
||
121 | \def{integer j = 2*\liste[\i]} |
||
122 | \def{function f=x/(1+x^(\j))} |
||
123 | \def{real a=evalue(\f,x=\listepoint[\i])} |
||
124 | \def{text dessin=\dessin |
||
125 | plot \couleur[\i],\f |
||
126 | text \couleur[\i],\listepoint[\i],\a,medium,f\j} |
||
127 | } |
||
5894 | bpr | 128 | <a id="dessin"></a> |
743 | bpr | 129 | \draw{500,300}{\dessin} |
130 | |||
131 | \end{wims} |
||
132 | \end{wimsonly} |
||
613 | schaersvoo | 133 | \section{Les listes} |
134 | Voici une liste avec pli (fold) |
||
23 | reyssat | 135 | \begin{description} |
613 | schaersvoo | 136 | \item[Graphe] voici la définition |
137 | \item[Coloriage] Colorier un graphe, c'est ... |
||
23 | reyssat | 138 | \end{description} |
743 | bpr | 139 | \section{Les tableaux} |
140 | \begin{tabular}{|c|c|c|} |
||
141 | \hline |
||
920 | bpr | 142 | &a&\(\frac{1}{2}\) \\ |
743 | bpr | 143 | \hline |
144 | c&d&f\\ |
||
145 | \hline |
||
146 | \end{tabular} |
||
7867 | bpr | 147 | |
6472 | bpr | 148 | \section{Un algorithme} |
7867 | bpr | 149 | Vous pouvez configurer l'environnement algorithm dans latex pour |
150 | que les mots clés soient en français. |
||
6472 | bpr | 151 | |
152 | \begin{algorithm} |
||
7867 | bpr | 153 | \caption{Mon algorithme} |
6472 | bpr | 154 | \begin{algorithmic}[1] |
155 | \REQUIRE $a, b$ |
||
156 | \ENSURE $u$ et $v$ tels que $u a + v b = pgcd(a,b)$ |
||
157 | \IF{$a = 0$} |
||
7867 | bpr | 158 | \STATE Retourner $\lbrack b,0,12 \rbrack$ |
6472 | bpr | 159 | \ENDIF |
160 | \STATE $x \rightarrow a$, $y \rightarrow b$, $ vx \rightarrow 0$, $vy \rightarrow 1$ |
||
161 | \WHILE{ $ y <> 0$} |
||
7867 | bpr | 162 | \STATE $q \rightarrow \; quotient \; de x \; par \; y$, $r \rightarrow x-q*y$ |
6472 | bpr | 163 | \STATE $t \rightarrow vy$ |
164 | \STATE $vy \rightarrow vx - q*vy$ |
||
165 | \STATE $vx \rightarrow t$ |
||
166 | \STATE $x \rightarrow y$ |
||
167 | \STATE $y \rightarrow r$ |
||
168 | \ENDWHILE |
||
169 | \STATE Retourner $\lbrack x, (x-b*vx)/a, vx \rbrack $ |
||
170 | \end{algorithmic} |
||
171 | \end{algorithm} |
||
172 | |||
743 | bpr | 173 | \end{document} |