Subversion Repositories wimsdev

Rev

Rev 15689 | Rev 15745 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15689 Rev 15744
Line 1... Line 1...
1
!!!! tabsignes v1.17 / 31-01-2021
1
!!!! tabsignes v1.18 / 30-03-2021
2
!!!! A FAIRE :
2
!!!! - Correction : qq mélanges balise th td
-
 
3
!!!! - Correction : th remplacé par td lorsque cellule vide ou champ reply
-
 
4
!!!! - Evolution : ajout automatique d'un id sur le tableau si option id non utilisée
-
 
5
!!!! avec id différents si plusieurs appels slib dans la même page
-
 
6
!!!! - Evolution : ajout automatique d'un id par cellule de la forme
-
 
7
!!!! id_l_c avec id=id du tableau, l=numéro de la ligne et c=numéro de la colonne
3
!!!! - corriger le bug suivant : avec option reply lorsque reply est sur ndef modifier css des cases autour si db ou pointille
8
!!!! - Evolution : ajout de l'option allvalues pour afficher les images autres que 0
4
!!!! - lorsqu'un 0 est aux bornes du tableau avec ndef
9
!!!! - Correction d'un bug d'affichage avec option reply
5
 
10
 
6
!if $wims_read_parm!=slib_header
11
!if $wims_read_parm!=slib_header
7
  !goto proc
12
  !goto proc
8
!endif
13
!endif
9
 
14
 
10
slib_title=Tableau de signes d'une fonction numérique
15
slib_title=Tableau de signes d'une fonction numérique
11
slib_parms=2\
16
slib_parms=2\
12
,les informations permettant de remplir le tableau en mode semi-automatique ou tout le contenu du tableau en mode non automatique :<ul><li>Pour un calcul semi-automatique du contenu du tableau<br />[[la variable,les fonctions séparées par des virgules],[borne inf,borne sup;racines séparées par des virgules; valeurs interdites séparées par des virgules]]</li><li>Pour un mode non automatique (toutes les informations sont à indiquer) :<br />[éléments de la ligne 1 séparés par des virgules; éléments de la ligne 2 séparés par des virgules; ....]</li></ul>\
17
,<strong>les informations permettant de remplir le tableau</strong> en mode semi-automatique ou tout le contenu du tableau en mode non automatique&nbsp;: <ul><li>Pour un calcul semi-automatique du contenu du tableau<br/> [[la variable,les fonctions séparées par des virgules],[borne inf,borne sup;racines séparées par des virgules; valeurs interdites séparées par des virgules]]</li><li>Pour un mode non automatique (toutes les informations sont à indiquer) :<br />[éléments de la ligne 1 séparés par des virgules; éléments de la ligne 2 séparés par des virgules; ....]</li></ul>\
13
,options : (séparées par des espaces) <ul><li><span class="tt wims_code_words">wimscenter</span> (pour centrer le tableau)</li><li><span class="tt wims_code_words">id</span>=[mon_id] (pour donner mon_id comme id au tableau)</li><li><span class="tt wims_code_words">text</span>=[mon_texte,before,numéro de ligne ou all] ou [mon_texte,replace,numéro de ligne ou all] (pour ajouter mon_texte devant l'expression de la fonction ou remplacer toute l'expression par mon_texte aux lignes indiquées)</li><li><span class="tt wims_code_words">+</span>=[red,all] (pour mettre tous les signes + en rouge) ou <span class="tt wims_code_words">+</span>=[red] (pour mettre uniquement les signes + de la dernière ligne en rouge) idem pour l'option <span class="tt wims_code_words">-</span></li><li><span class="tt wims_code_words">reply</span>=[[ligne_i,colonne_j;ligne_k,colonne_m;...],[n]] (pour indiquer les cellules à transformer en champs réponses reply où n est le rang de la première reply)</li><li><span class="tt wims_code_words">code</span> (pour sortir la matrice du contenu du tableau)</li></ul>
18
,<strong>options&nbsp;:</strong> (séparées par des espaces).<br class="spacer">Les options marquées de (*) ne sont utilisables qu'avec le mode semi-automatique.<ul><li><span class="tt wims_code_words">wimscenter</span> pour centrer le tableau.</li><li><span class="tt wims_code_words">allvalues</span> (*) pour afficher aussi les images autres que 0.</li><li><span class="tt wims_code_words">id</span>=[mon_id] pour donner mon_id comme id au tableau. Par défaut, si cette option n'est pas utilisée, le tableau aura pour id <em>wimstab1</em>. Dans le cas de plusieurs appels de cette slib dans la même page, les id automatiques seront <em>wimstab1</em>, <em>wimstab2</em>...Les id <em>wimstabxx</em> étant réservés pour des générations automatiques d'id, ne pas les utiliser soi-même pour générer un id.</li><li><span class="tt wims_code_words">text</span>=[mon_texte,before,numéro de ligne ou all] ou [mon_texte,replace,numéro de ligne ou all] pour ajouter mon_texte devant l'expression de la fonction ou remplacer toute l'expression par mon_texte aux lignes indiquées.</li><li><span class="tt wims_code_words">+</span>=[red,all] pour mettre tous les signes + en rouge ou <span class="tt wims_code_words">+</span>=[red] pour mettre uniquement les signes + de la dernière ligne en rouge. Idem pour l'option <span class="tt wims_code_words">-</span></li><li><span class="tt wims_code_words">reply</span>=[[ligne_i,colonne_j;ligne_k,colonne_m;...],[n]] pour indiquer les cellules à transformer en champs réponses reply où n est le rang de la première reply pour une utilisation avec la méthode spéciale <span class="tt wims_code_words">codeinput</span>.</li><li><span class="tt wims_code_words">code</span> (*) pour sortir la matrice du contenu du tableau.</li></ul>
14
 
19
 
15
slib_out=<ul><li>Le tableau au format HTML ou la matrice du contenu du tableau si l'option \
20
slib_out=<ul><li>Le tableau au format HTML ou la matrice du contenu du tableau si l'option \
16
<span class="tt">code</span> a été choisie.</li>\
21
<span class="tt">code</span> a été choisie.</li>\
17
<li>Le tableau au format HTML,[les réponses attendues séparées par une virgule] dans le cas où l'option <span class="tt">reply</span> a été choisie.</li></ul>
22
<li>Le tableau au format HTML,[les réponses attendues séparées par une virgule] dans le cas où l'option <span class="tt">reply</span> a été choisie.</li></ul>
18
 
23
 
19
slib_comment=<ul><li>Quel que soit le mode, aucun code TeX à saisir pour les expressions des fonctions et pour les nombres ;</li>\
24
slib_comment=<ul><li>Quel que soit le mode, aucun code TeX à saisir pour les \
-
 
25
expressions des fonctions et pour les nombres ;</li>\
20
<li>utiliser <span class="tt">-Inf</code> et <span class="tt">+Inf</code> ;</li>\
26
<li>utiliser <span class="tt">-Inf</span> et <span class="tt">+Inf</span>&nbsp;;</li>\
21
<li>mettre <span class="tt">db</code> pour doubles barres (mode non auto) ;</li>\
27
<li>mettre <span class="tt">db</span> pour doubles barres (mode non auto)&nbsp;;</li>\
22
<li>mettre <span class="tt">ndef</code> pour fonction non définie sur un intervalle (mode non auto) ;</li>\
28
<li>mettre <span class="tt">ndef</span> pour fonction non définie sur un \
-
 
29
intervalle (mode non auto)&nbsp;;</li>\
23
<li>code TeX autorisé pour le rajout de texte avec l'option <span class="tt">text</span>.</li></ul>
30
<li>code TeX autorisé pour le rajout de texte avec l'option \
-
 
31
<span class="tt">text</span>.</li>\
-
 
32
<li>chaque cellule du tableau a un id de la forme \
-
 
33
<span class="tt wims_code_words">id_l_c</span>, où <span class="tt wims_code_words">id</span> \
-
 
34
est l'id du tableau, <span class="tt wims_code_words">l</span> est le numéro de \
-
 
35
la ligne et <span class="tt wims_code_words">c</span> est le numéro de la colonne.</li></ul>
24
 
36
 
25
!!!! FIN FICHIER LANG
37
!!!! FIN FICHIER LANG
26
 
38
 
27
slib_author=Gilles,Marbeuf
39
slib_author=Gilles,Marbeuf
28
 
40
 
29
slib_example=[[x,1/x],[-Inf,+Inf;;0]]\
41
slib_example=[[x,1/x],[-Inf,+Inf;;0]]\
30
[[u,cos(u)],[0,(3*pi)/4; pi/2;]],text=[Signe de,before,2]\
42
[[u,cos(u)],[0,(3*pi)/4; pi/2;]],text=[Signe de,before,2]\
-
 
43
[[u,cos(u)],[0,(3*pi)/4; pi/2;]],allvalues\
-
 
44
[[x,x^2-1,ln(x^2-1)],[-Inf,+Inf;-sqrt(2),-1,1,sqrt(2);-1,1]],allvalues\
31
[[x,x-4,ln(x-1),(x-4)ln(x-1)],[1,+Inf;2,4;1]],wimscenter id=[tab_1]\
45
[[x,x-4,ln(x-1),(x-4)ln(x-1)],[1,+Inf;2,4;1]],wimscenter id=[tab]\
32
[[x,x^2-1,sqrt(x^2-1),1/sqrt(x^2-1)],[-Inf,+Inf;1,-1;1,-1]],-=[blue,all] +=[red,all] text=[Signe de,before,2;Signe de,before,3;Signe de \(f(x)\),replace,4]\
46
[[x,x^2-1,sqrt(x^2-1),1/sqrt(x^2-1)],[-Inf,+Inf;1,-1;1,-1]],-=[blue,all] +=[red,all] text=[Signe de,before,2;Signe de,before,3;Signe de \(f(x)\),replace,4]\
33
[[x,x-1,x+1,x,(x-1)(x+1)/x],[-Inf,+Inf;1,-1,0;0]],wimscenter -=[#3BE41E,all] +=[red] text=[Signe de,before,all]\
47
[[x,x-1,x+1,x,(x-1)(x+1)/x],[-Inf,+Inf;1,-1,0;0]],wimscenter -=[#3BE41E,all] +=[red] text=[Signe de,before,all]\
34
[[x,x^2-1,e^x,e^x/(x^2-1)],[-Inf,+Inf;-1,1;-1,1]],reply=[[1,6;4,4;2,3],[1]]\
48
[[x,x^2-1,e^x,e^x/(x^2-1)],[-Inf,+Inf;-1,1;-1,1]],reply=[[1,6;4,4;2,3],[1]]\
35
[[x,x^2-1/4,e^x,e^x/(x^2-1/4)],[-Inf,+Inf;-1/2,1/2;-1/2,1/2]],code\
49
[[x,x^2-1/4,e^x,e^x/(x^2-1/4)],[-Inf,+Inf;-1/2,1/2;-1/2,1/2]],code\
36
[x,-Inf,,x_1,,x_2,,+Inf;a x^2+b x +c,,+,0,-,0,+,],text=[Signe de,before,2]\
50
[x,-Inf,,x_1,,x_2,,+Inf;a x^2+b x +c,,+,0,-,0,+,],text=[Signe de,before,2]\
Line 55... Line 69...
55
slib_nbparam1=!itemcnt $slib_param1
69
slib_nbparam1=!itemcnt $slib_param1
56
 
70
 
57
!!! OPTION POUR CENTRER LE TABLEAU  !!!
71
!!! OPTION POUR CENTRER LE TABLEAU  !!!
58
!if wimscenter iswordof $slib_option
72
!if wimscenter iswordof $slib_option
59
  slib_wimscenter=wimscenter
73
  slib_wimscenter=wimscenter
-
 
74
!endif
-
 
75
 
-
 
76
!!! OPTION POUR AVOIR QUE LES 0 OU AUTRES IMAGES !!!
-
 
77
!if allvalues iswordof $slib_option
-
 
78
  slib_allvalues=yes
60
!endif
79
!endif
61
 
80
 
62
!!! OPTION EN MODE AUTO POUR SORTIR LA MATRICE CONTENT PLUTOT QUE LE TABLEAU  !!!
81
!!! OPTION EN MODE AUTO POUR SORTIR LA MATRICE CONTENT PLUTOT QUE LE TABLEAU  !!!
63
!if code iswordof $slib_option
82
!if code iswordof $slib_option
64
  slib_code=1
83
  slib_code=1
Line 78... Line 97...
78
    slib_colorplus=!declosing $slib_colorplus
97
    slib_colorplus=!declosing $slib_colorplus
79
    !if $(slib_colorplus[1])=all
98
    !if $(slib_colorplus[1])=all
80
      slib_temp_colorplus1=$(slib_colorplus[1])
99
      slib_temp_colorplus1=$(slib_colorplus[1])
81
      slib_temp_colorplus2=$(slib_colorplus[2])
100
      slib_temp_colorplus2=$(slib_colorplus[2])
82
      slib_colorplus=$slib_temp_colorplus2,$slib_temp_colorplus1
101
      slib_colorplus=$slib_temp_colorplus2,$slib_temp_colorplus1
83
    !endif
102
    !endif
84
  !endif
103
  !endif
85
!else
104
!else
86
  slib_colorplus_opt=no
105
  slib_colorplus_opt=no
87
!endif
106
!endif
88
slib_colormoins=!getopt - in $slib_option
107
slib_colormoins=!getopt - in $slib_option
89
slib_colormoins=!lower $slib_colormoins
108
slib_colormoins=!lower $slib_colormoins
Line 98... Line 117...
98
      slib_temp_colormoins1=$(slib_colormoins[1])
117
      slib_temp_colormoins1=$(slib_colormoins[1])
99
      slib_temp_colormoins2=$(slib_colormoins[2])
118
      slib_temp_colormoins2=$(slib_colormoins[2])
100
      slib_colormoins=$slib_temp_colormoins2,$slib_temp_colormoins1
119
      slib_colormoins=$slib_temp_colormoins2,$slib_temp_colormoins1
101
    !endif
120
    !endif
102
  !endif
121
  !endif
103
!else
122
!else
104
  slib_colormoins_opt=no
123
  slib_colormoins_opt=no
105
!endif
124
!endif
106
 
125
 
107
!!! OPTION POUR METTRE UN ID DANS TABLE  !!!
126
!!! OPTION POUR METTRE UN ID DANS TABLE  !!!
108
slib_ident=!getopt id in $slib_option
127
slib_ident=!getopt id in $slib_option
109
!if $slib_ident=$empty
128
!if $slib_ident=$empty
110
  slib_id=$empty
129
  !if $slib_ident_nb=$empty
-
 
130
    slib_ident_nb=1
-
 
131
  !else
-
 
132
    slib_ident_nb=$[$slib_ident_nb+1]
-
 
133
  !endif
-
 
134
  slib_id=wimstab$slib_ident_nb
111
!else
135
!else
112
  slib_id=id="$slib_ident"
136
  slib_id=$slib_ident
113
!endif
137
!endif
114
 
138
 
115
!!! OPTION DE RAJOUT OU REMPLACEMENT DE TEXTE DANS LA PREMIERE COLONNE  !!!!
139
!!! OPTION DE RAJOUT OU REMPLACEMENT DE TEXTE DANS LA PREMIERE COLONNE  !!!!
116
slib_text=!getopt text in $slib_option
140
slib_text=!getopt text in $slib_option
117
slib_text=!declosing $slib_text
141
slib_text=!declosing $slib_text
118
slib_text_nbrow=!rowcnt $slib_text
142
slib_text_nbrow=!rowcnt $slib_text
119
slib_nbtext=!itemcnt $slib_text
143
slib_nbtext=!itemcnt $slib_text
Line 211... Line 235...
211
  slib_ligne1=!append item $slib_borneb to $slib_ligne1
235
  slib_ligne1=!append item $slib_borneb to $slib_ligne1
212
!next slib_k
236
!next slib_k
213
 
237
 
214
!for slib_m=2 to $slib_nbfonc
238
!for slib_m=2 to $slib_nbfonc
215
  slib_ligne$slib_m =!item 1 of $(slib_fonc$[$slib_m -1])
239
  slib_ligne$slib_m =!item 1 of $(slib_fonc$[$slib_m -1])
216
!next
240
!next
217
 
241
 
218
!for slib_r=2 to $slib_nbfonc
242
!for slib_r=2 to $slib_nbfonc
219
  !for slib_col=1 to $[2*$slib_nbdata -1]
243
  !for slib_col=1 to $[2*$slib_nbdata -1]
220
    slib_elem=$(slib_listabsc[$slib_col])
244
    slib_elem=$(slib_listabsc[$slib_col])
221
    !if $[$slib_col%2]!=0
245
    !if $[$slib_col%2]!=0
Line 230... Line 254...
230
            slib_temp=db
254
            slib_temp=db
231
          !else
255
          !else
232
            slib_temp=ndef
256
            slib_temp=ndef
233
          !endif
257
          !endif
234
        !else
258
        !else
-
 
259
          !if $slib_allvalues!=yes
235
          !if (($slib_elem isitemof $slib_racines) and $slib_temp!=0)
260
            !if (($slib_elem isitemof $slib_racines) and $slib_temp!=0)
236
            slib_temp=$empty
261
              slib_temp=$empty
237
          !endif
262
            !endif
238
          !if (($slib_elem isitemof $slib_valinterdites) and ($slib_temp!=ndef) and ($slib_temp!=db) and $slib_temp!=0)
263
            !if (($slib_elem isitemof $slib_valinterdites) and ($slib_temp!=ndef) and ($slib_temp!=db) and $slib_temp!=0)
-
 
264
              slib_temp=$empty
-
 
265
            !endif
-
 
266
            !if (($slib_elem isitemof $slib_bornes) and ($slib_temp!=0))
239
            slib_temp=$empty
267
              slib_temp=$empty
-
 
268
            !endif
240
          !endif
269
          !endif
241
        !endif
270
        !endif
242
      !endif
271
      !endif
243
    !else
272
    !else
244
      slib_temp=!exec pari (g(val)=$slib_var=val;f=$(slib_fonc$[$slib_r -1]);eval(f));g($slib_elem)
273
      slib_temp=!exec pari (g(val)=$slib_var=val;f=$(slib_fonc$[$slib_r -1]);eval(f));g($slib_elem)
Line 316... Line 345...
316
          !if $slib_element=db
345
          !if $slib_element=db
317
            !if $slib_element_apres=ndef
346
            !if $slib_element_apres=ndef
318
              slib_coef=tab_dbl_ndefr
347
              slib_coef=tab_dbl_ndefr
319
            !else
348
            !else
320
              slib_coef=tab_dbl
349
              slib_coef=tab_dbl
321
            !endif
350
            !endif
322
          !endif
351
          !endif
323
        !endif
352
        !endif
324
      !else
353
      !else
325
        !if $slib_column=$slib_nbcol
354
        !if $slib_column=$slib_nbcol
326
          slib_coef=tab_bornesup
355
          slib_coef=tab_bornesup
327
          !if ($slib_element=ndef or ((($slib_element=$empty) or ($slib_element=0)) and ($slib_element_avant=ndef)))
356
          !if ($slib_element=ndef or ((($slib_element=$empty) or ($slib_element=0)) and ($slib_element_avant=ndef)))
Line 464... Line 493...
464
    slib_tabsignes_css=<link rel="stylesheet" href="themes/_css/slib/tabsignes.css">
493
    slib_tabsignes_css=<link rel="stylesheet" href="themes/_css/slib/tabsignes.css">
465
    slib_out=$slib_tabsignes_css
494
    slib_out=$slib_tabsignes_css
466
  !else
495
  !else
467
    slib_out=
496
    slib_out=
468
  !endif
497
  !endif
469
  slib_tableau=<div class="table-scroll"><table $slib_id class="tabsignes unstriped $slib_wimscenter">
498
  slib_tableau=<div class="table-scroll"><table id="$slib_id" class="tabsignes unstriped $slib_wimscenter">
470
  !for slib_l=1 to $slib_nblines
499
  !for slib_l=1 to $slib_nblines
471
    !if $slib_l=1
500
    !if $slib_l=1
472
      slib_tableau=$slib_tableau<thead><tr>
501
      slib_tableau=$slib_tableau<thead><tr>
473
      tab_tag=th
-
 
474
      tab_tag_attr=scope="col"
-
 
475
    !else
502
    !else
476
      slib_tableau=$slib_tableau<tr>
503
      slib_tableau=$slib_tableau<tr>
477
      tab_tag=td
-
 
478
      tab_tag_attr=
-
 
479
    !endif
504
    !endif
480
    !for slib_c=1 to $slib_nbcol
505
    !for slib_c=1 to $slib_nbcol
-
 
506
      slib_elemtcss=
-
 
507
      !if $slib_l=1
-
 
508
        !if $(slib_content[$slib_l;$slib_c])=$empty or [$slib_l,$slib_c] isitemof $slib_repsort
-
 
509
          tab_tag=td
-
 
510
          tab_tag_attr=
-
 
511
        !else
-
 
512
          tab_tag=th
-
 
513
          tab_tag_attr=scope="col"
-
 
514
        !endif
-
 
515
      !else
-
 
516
        !if $slib_c=1
-
 
517
          !if [$slib_l,$slib_c] isitemof $slib_repsort
-
 
518
            tab_tag=td
-
 
519
            tab_tag_attr=
-
 
520
          !else
-
 
521
            tab_tag=th
-
 
522
            tab_tag_attr=scope="row"
-
 
523
          !endif
-
 
524
        !else
-
 
525
          tab_tag=td
-
 
526
          tab_tag_attr=
-
 
527
          slib_elemtcss=$(slib_class[$slib_l;$slib_c])
-
 
528
          slib_elemtcss_apres=$(slib_class[$slib_l;$[$slib_c+1]])
-
 
529
          slib_elemtcss_avant=$(slib_class[$slib_l;$[$slib_c-1]])
-
 
530
          !if [$slib_l,$[$slib_c-1]] isitemof $slib_repsort
-
 
531
            slib_elemt_avant=reply
-
 
532
          !else
-
 
533
            slib_elemt_avant=noreply
-
 
534
          !endif
-
 
535
          !if [$slib_l,$[$slib_c+1]] isitemof $slib_repsort
-
 
536
            slib_elemt_apres=reply
-
 
537
          !else
-
 
538
            slib_elemt_apres=noreply
-
 
539
          !endif
-
 
540
          !if $slib_elemtcss=tab_ndef and (($slib_elemt_apres=reply and $slib_elemtcss_apres=tab_ndef) || ($slib_elemt_avant=reply and $slib_elemtcss_avant=tab_ndef))
-
 
541
            slib_elemtcss=tab_neutre
-
 
542
          !endif
-
 
543
          !if $slib_elemtcss=tab_dbl_ndefr and $slib_elemt_apres=reply
-
 
544
            slib_elemtcss=tab_dbl
-
 
545
          !endif
-
 
546
          !if $slib_elemtcss=tab_db_ndefr and $slib_elemt_apres=reply
-
 
547
            slib_elemtcss=tab_db
-
 
548
          !endif
-
 
549
          !if $slib_elemtcss=tab_dot_ndefr and $slib_elemt_apres=reply
-
 
550
            slib_elemtcss=tab_dot
-
 
551
          !endif
-
 
552
          !if $slib_elemtcss=tab_dot_ndefl and $slib_elemt_avant=reply
-
 
553
            slib_elemtcss=tab_dot
-
 
554
          !endif
-
 
555
          !if $slib_elemtcss=tab_db_ndefl and $slib_elemt_avant=reply
-
 
556
            slib_elemtcss=tab_db
-
 
557
          !endif
-
 
558
          !if $slib_elemtcss=tab_dbr_ndefl and $slib_elemt_avant=reply
-
 
559
            slib_elemtcss=tab_dbr
-
 
560
          !endif
-
 
561
          !if $slib_elemtcss=tab_dot_ndeflr
-
 
562
            !if $slib_elemt_apres=reply
-
 
563
              !if $slib_elemt_avant=reply
-
 
564
                slib_elemtcss=tab_dot
-
 
565
              !else
-
 
566
                slib_elemtcss=tab_dot_ndefl
-
 
567
              !endif
-
 
568
            !else
-
 
569
              !if $slib_elemt_avant=reply
-
 
570
                slib_elemtcss=tab_dot_ndefr
-
 
571
              !endif
-
 
572
            !endif
-
 
573
          !endif
-
 
574
        !endif
-
 
575
      !endif
-
 
576
      !if $slib_elemtcss=$empty
-
 
577
        slib_elemtcss=$(slib_class[$slib_l;$slib_c])
-
 
578
      !endif
-
 
579
      slib_idcell=id="$(slib_id)_$(slib_l)_$(slib_c)"
481
      !if [$slib_l,$slib_c] isitemof $slib_repsort
580
      !if [$slib_l,$slib_c] isitemof $slib_repsort
482
        slib_position=!positionof item [$slib_l,$slib_c] in $slib_repsort
581
        slib_position=!positionof item [$slib_l,$slib_c] in $slib_repsort
483
        slib_position=$[$slib_position+$slib_rang-1]
582
        slib_position=$[$slib_position+$slib_rang-1]
484
        !if $slib_c=1
583
        !if $slib_c=1
485
          !if $slib_l>1
584
          !if $slib_l>1
486
            !if $(slib_text[$slib_l;2])=before
585
            !if $(slib_text[$slib_l;2])=before
487
              slib_tableau=$slib_tableau<th scope="row" class="tab_fonc">$(slib_text[$slib_l;1]) reply$slib_position</th>
586
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="tab_fonc" $slib_idcell>$(slib_text[$slib_l;1]) reply$slib_position</$tab_tag>
488
            !else
587
            !else
489
              slib_tableau=$slib_tableau<th scope="row" class="tab_fonc">reply$slib_position</th>
588
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="tab_fonc" $slib_idcell>reply$slib_position</$tab_tag>
490
            !endif
589
            !endif
491
          !else
590
          !else
492
            slib_tableau=$slib_tableau<th scope="row" class="tab_fonc">reply$slib_position</th>
591
            slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="tab_fonc" $slib_idcell>reply$slib_position</$tab_tag>
493
          !endif
592
          !endif
494
        !else
593
        !else
495
          slib_tableau=$slib_tableau<td class="tab_neutre">reply$slib_position</th>
594
          slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="tab_neutre" $slib_idcell>reply$slib_position</$tab_tag>
496
        !endif
595
        !endif
497
      !else
596
      !else
498
        !if (($slib_c=1) and ($slib_l>1))
597
        !if (($slib_c=1) and ($slib_l>1))
499
          !if $(slib_text[$slib_l;2])=before
598
          !if $(slib_text[$slib_l;2])=before
500
            slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])">$(slib_text[$slib_l;1]) \($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
599
            slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])" $slib_idcell>$(slib_text[$slib_l;1]) \($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
501
          !else
600
          !else
502
            !if $(slib_text[$slib_l;2])=replace
601
            !if $(slib_text[$slib_l;2])=replace
503
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])">$(slib_text[$slib_l;1])</$tab_tag>
602
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])" $slib_idcell>$(slib_text[$slib_l;1])</$tab_tag>
504
            !else
603
            !else
505
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])">\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
604
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])" $slib_idcell>\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
506
            !endif
605
            !endif
507
          !endif
606
          !endif
508
        !else
607
        !else
509
          !if $(slib_class[$slib_l;$slib_c])=tab_sign_plus
608
          !if $(slib_class[$slib_l;$slib_c])=tab_sign_plus
510
            slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr $(slib_style_plus[$slib_l]) class="$(slib_class[$slib_l;$slib_c])">\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
609
            slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr $(slib_style_plus[$slib_l]) class="$(slib_class[$slib_l;$slib_c])" $slib_idcell>\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
511
          !else
610
          !else
512
            !if $(slib_class[$slib_l;$slib_c])=tab_sign_moins
611
            !if $(slib_class[$slib_l;$slib_c])=tab_sign_moins
513
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr $(slib_style_moins[$slib_l]) class="$(slib_class[$slib_l;$slib_c])">\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
612
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr $(slib_style_moins[$slib_l]) class="$(slib_class[$slib_l;$slib_c])" $slib_idcell>\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
514
            !else
613
            !else
515
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$(slib_class[$slib_l;$slib_c])">\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
614
              slib_tableau=$slib_tableau<$tab_tag $tab_tag_attr class="$slib_elemtcss" $slib_idcell>\($(slib_cel[$slib_l;$slib_c])\)</$tab_tag>
516
            !endif
615
            !endif
517
          !endif
616
          !endif
518
        !endif
617
        !endif
519
      !endif
618
      !endif
520
    !next slib_c
619
    !next slib_c
Line 544... Line 643...
544
 
643
 
545
!for slib_g=1 to $slib_nbfonc
644
!for slib_g=1 to $slib_nbfonc
546
  !reset slib_fonc$slib_g
645
  !reset slib_fonc$slib_g
547
!next
646
!next
548
 
647
 
549
!reset slib_fonc slib_data slib_var slib_nbfonc slib_bornes slib_racines slib_valinterdites slib_datasort slib_nbdata slib_listabsc slib_content slib_rep slib_nbrep slib_answer slib_repsort slib_class slib_cel slib_wimscenter slib_code slib_style_plus slib_style_moins slib_tableau slib_answer slib_style_temp
648
!reset slib_fonc slib_data slib_var slib_nbfonc slib_bornes\
-
 
649
  slib_racines slib_valinterdites slib_datasort slib_nbdata \
-
 
650
  slib_listabsc slib_content slib_rep slib_nbrep slib_answer \
-
 
651
  slib_repsort slib_class slib_cel slib_wimscenter slib_code\
-
 
652
  slib_style_plus slib_style_moins slib_tableau slib_answer \
-
 
653
  slib_style_temp
550
 
654
 
551
!!!! SUPPRIME POUR L INSTANT exec maxima algebraic:false;
655
!!!! SUPPRIME POUR L INSTANT exec maxima algebraic:false;