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