46 files changed
+64
-1402
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
@@ -1,33 +1,9 @@
|
|||||||
#import "/template.typ": *
|
#import "/template.typ": *
|
||||||
#import "/transposition.typ": *
|
#import "/transposition.typ": *
|
||||||
#import "@preview/drafting:0.2.0": *
|
#import "@preview/drafting:0.2.0": *
|
||||||
#import "/tabvar.typ": *
|
#import "@preview/vartable:0.1.0": *
|
||||||
|
|
||||||
#set heading(numbering: (..numbers) => {
|
#show: template
|
||||||
let n = numbers.pos().len()
|
|
||||||
if n == 1 {
|
|
||||||
question.update(1)
|
|
||||||
} else if n == 2 {
|
|
||||||
[Partie ]
|
|
||||||
numbering("I", numbers.pos().at(1) - 1)
|
|
||||||
"."
|
|
||||||
} else if n == 3 {
|
|
||||||
question.step()
|
|
||||||
if question.get().last() < 10 {
|
|
||||||
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
|
|
||||||
} else {
|
|
||||||
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
|
|
||||||
}
|
|
||||||
} else if n == 4 {
|
|
||||||
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
|
|
||||||
} else if n == 5 {
|
|
||||||
numbering("i.", numbers.pos().at(4))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
#set underline(stroke: red + 1pt)
|
|
||||||
#set par(leading: 0.8em)
|
|
||||||
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
|
|
||||||
#set math.cancel(stroke: red)
|
|
||||||
|
|
||||||
Gaspar Daguet
|
Gaspar Daguet
|
||||||
#align(center, text(20pt)[Maths : DM 21])
|
#align(center, text(20pt)[Maths : DM 21])
|
||||||
@@ -355,28 +331,28 @@ Ainsi, à l'aide de la question précédente, on obtient les tableaux de variati
|
|||||||
// ),
|
// ),
|
||||||
// )
|
// )
|
||||||
|
|
||||||
#align(center)[
|
// #align(center)[
|
||||||
#tabvar(
|
// #tabvar(
|
||||||
init: (
|
// init: (
|
||||||
"variable": $x$,
|
// "variable": $x$,
|
||||||
"label": (([varation de $s$], variation),),
|
// "label": (([varation de $s$], variation),),
|
||||||
),
|
// ),
|
||||||
interval: ($0$, $p / 2$, $p$, $(3p) / 2$, $2p$),
|
// interval: ($0$, $p / 2$, $p$, $(3p) / 2$, $2p$),
|
||||||
content: (((center, "u", $0$), (top, top, "u", $1$), (center, $0$), (bottom, $-1$), (center, "u", $0$)),),
|
// content: (((center, "u", $0$), (top, top, "u", $1$), (center, $0$), (bottom, $-1$), (center, "u", $0$)),),
|
||||||
)
|
// )
|
||||||
]
|
// ]
|
||||||
|
|
||||||
Et
|
// Et
|
||||||
#align(center)[
|
// #align(center)[
|
||||||
#tabvar(
|
// #tabvar(
|
||||||
init: (
|
// init: (
|
||||||
"variable": $x$,
|
// "variable": $x$,
|
||||||
"label": (([variation de $c$], variation),),
|
// "label": (([variation de $c$], variation),),
|
||||||
),
|
// ),
|
||||||
interval: ($0$, $p / 2$, $p$, $(3p) / 2$, $2p$),
|
// interval: ($0$, $p / 2$, $p$, $(3p) / 2$, $2p$),
|
||||||
content: (((top, $1$), (), (bottom, $-1$), (), (top, $1$)),),
|
// content: (((top, $1$), (), (bottom, $-1$), (), (top, $1$)),),
|
||||||
)
|
// )
|
||||||
]
|
// ]
|
||||||
#QED
|
#QED
|
||||||
|
|
||||||
#pagebreak()
|
#pagebreak()
|
||||||
@@ -406,3 +382,5 @@ ce qui est Absurde\
|
|||||||
Donc $n = 1$ et donc $T = 2p$\
|
Donc $n = 1$ et donc $T = 2p$\
|
||||||
Ainsi $2p$ est la plus petite période de $s$
|
Ainsi $2p$ est la plus petite période de $s$
|
||||||
#QED
|
#QED
|
||||||
|
|
||||||
|
$ $
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
@@ -1,8 +0,0 @@
|
|||||||
#set heading(
|
|
||||||
numbering: (..numbers) => {
|
|
||||||
let n = numbers.pos().len();
|
|
||||||
if n == 1 { question.update(0); } else if n == 2 { [Partie ]; numbering("I", numbers.pos().at(1)) ;"." } else if n == 3 { [N=°];question.step(); question.display();"." } else if n == 4 { numbering("a.", numbers.pos().at(3) + 1) } else if n == 5 { numbering("i.", numbers.pos().at(4)) }
|
|
||||||
},
|
|
||||||
)
|
|
||||||
#set underline(stroke: red + 1pt)
|
|
||||||
#set par(leading: 10pt)
|
|
||||||
-1019
File diff suppressed because it is too large.
Load diff
@@ -1,325 +0,0 @@
|
|||||||
#import "@preview/fletcher:0.4.5": *
|
|
||||||
#let bo(x) = table(columns: 2cm, stroke: 0pt)[#table.cell(align: center + horizon)[#x]]
|
|
||||||
#let signe = "Signe"
|
|
||||||
#let variation = "Variation"
|
|
||||||
|
|
||||||
#let prochainNonVideSigne(x, i) = {
|
|
||||||
let k = 0
|
|
||||||
let j = i + 1
|
|
||||||
while j < x.len() and type(x.at(j)) == array {
|
|
||||||
k += 1
|
|
||||||
j += 1
|
|
||||||
}
|
|
||||||
k
|
|
||||||
}
|
|
||||||
#let prochainNonVideVar(x, i) = {
|
|
||||||
let k = 0
|
|
||||||
let j = i + 1
|
|
||||||
while j < x.len() and x.at(j).len() == 0 {
|
|
||||||
k += 1
|
|
||||||
j += 1
|
|
||||||
}
|
|
||||||
k
|
|
||||||
}
|
|
||||||
|
|
||||||
#let lastele(x, interval, j, init, stroke) = {
|
|
||||||
// pour gérer le dernier élément
|
|
||||||
if x.first() == top {
|
|
||||||
node((interval.len() - 1 / 3, 1 + (j) * 3 + 0.25), x.last())
|
|
||||||
} else if x.first() == center {
|
|
||||||
node((interval.len() - 1 / 3, 2 + (j) * 3), x.last())
|
|
||||||
} else if x.first() == bottom {
|
|
||||||
node((interval.len() - 1 / 3, 3 + (j) * 3 - 0.25), x.last())
|
|
||||||
}
|
|
||||||
if x.at(1) == "u" {
|
|
||||||
edge(
|
|
||||||
(
|
|
||||||
interval.len() + 0.06,
|
|
||||||
j * 3 + if j == 0 {
|
|
||||||
0.85
|
|
||||||
} + if j == 0 and j == init.at("label").len() - 1 {
|
|
||||||
-0.05
|
|
||||||
},
|
|
||||||
),
|
|
||||||
(
|
|
||||||
interval.len() + 0.06,
|
|
||||||
j * 3 + 4 + if j == init.at("label").len() - 1 {
|
|
||||||
-0.1
|
|
||||||
},
|
|
||||||
),
|
|
||||||
stroke: stroke.thickness / 2 + stroke.paint,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#let tabvar(
|
|
||||||
//parameter
|
|
||||||
content: (), //the content
|
|
||||||
init: (
|
|
||||||
"variable": [], //the variable of the table
|
|
||||||
"label": [] //the labels on the right collum
|
|
||||||
),
|
|
||||||
interval: (), //the ensemble where the varable is defined
|
|
||||||
arrow : "->", //what kind of arrow
|
|
||||||
debug: false, //just for development
|
|
||||||
stroke: 1pt + black, //stroke of the entier table exept arrows
|
|
||||||
stroke-arrow: 0.6pt+black, //stroke of arrows
|
|
||||||
lign-0: true //s'il y a des zéro ou non sur les ligne entre les signes
|
|
||||||
|
|
||||||
) = {
|
|
||||||
|
|
||||||
//start of function
|
|
||||||
context {
|
|
||||||
//tableau de varation + signe + naïf
|
|
||||||
diagram(
|
|
||||||
spacing: ((4/3)*1cm, 1.3pt),
|
|
||||||
cell-size: 0pt,
|
|
||||||
debug: debug,
|
|
||||||
node((0,0), stroke: stroke,enclose: (//contour du tableau
|
|
||||||
..for i in range(interval.len()+1){
|
|
||||||
for j in range(-2 ,init.at("label").len()*3+1){
|
|
||||||
((i,j),)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
),
|
|
||||||
),
|
|
||||||
edge( // ligne de séparation x du reste
|
|
||||||
(-0.86,0.87 + if init.at("label").first().last() == signe{0.1}),
|
|
||||||
(interval.len()+0.12,0.87 + if init.at("label").first().last() == signe{0.1}),
|
|
||||||
stroke: stroke
|
|
||||||
),
|
|
||||||
edge( // ligne de séparation des label, des varations
|
|
||||||
(0.36,-6),(0.36,init.at("label").len()*3+0.9 + if init.at("label").last().last() == signe{3.5})
|
|
||||||
, stroke: stroke
|
|
||||||
),
|
|
||||||
node((-0.19,-1), (init.at("variable")), width: 2cm), // affichage de la variable
|
|
||||||
|
|
||||||
for i in range(interval.len()-1){ // affichage de l’intervalle
|
|
||||||
node((i+2/3, -1), interval.at(i), width: (2/3)*1cm)
|
|
||||||
},
|
|
||||||
node((interval.len()-1/3,-1), interval.at(interval.len()-1), width: (2/3)*1cm),// affichage du dernier élément de l’intervale
|
|
||||||
|
|
||||||
..for j in range(init.at("label").len()){(// affichage des label
|
|
||||||
node((-0.19,2+j*3), bo(init.at("label").at(j).first()), height: calc.max(measure(bo(init.at("label").at(j).first())).height, 45pt)),)
|
|
||||||
},
|
|
||||||
|
|
||||||
..for j in range(init.at("label").len()){(
|
|
||||||
if init.at("label").at(j).last() == signe{( //tableau de signe
|
|
||||||
|
|
||||||
for i in range(1,content.at(j).len()){ //les labels + et -
|
|
||||||
if type(content.at(j).at(i))== array{}
|
|
||||||
else{
|
|
||||||
let decalage = prochainNonVideSigne(content.at(j), i)
|
|
||||||
node((i + 1.2 + decalage*0.5, 2+(j)*3),content.at(j).at(i))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
node((1.05 + prochainNonVideSigne(content.at(j), 0)*0.48, 2+(j)*3),content.at(j).first()),
|
|
||||||
|
|
||||||
// ligne de séparation
|
|
||||||
for i in range(1,interval.len()-1){
|
|
||||||
|
|
||||||
if type(content.at(j).at(i)) == array{}
|
|
||||||
else{
|
|
||||||
edge((i+2/3, 1+(j)*3), (i+2/3,3+(j)*3 + if j == init.at("label").len()-1{4.5}),label-sep: -7pt, stroke: stroke.thickness/2 + stroke.paint, if lign-0{box(fill: white,outset: 1pt,$0$)})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
if j != init.at("label").len()-1{edge((-0.74,3+(j)*3), (interval.len()+0.11, 3+(j)*3), stroke: stroke)} // ligne sous les tableaux de contente
|
|
||||||
)},
|
|
||||||
|
|
||||||
if init.at("label").at(j).last() == variation{( // tableau de variation
|
|
||||||
for i in range(content.at(j).len()-1){
|
|
||||||
let proch= 0
|
|
||||||
let decalindef = if content.at(j).at(i).len() >= 3 and i != 0 and content.at(j).at(i).at(2) == "u"{0.255} else{0}
|
|
||||||
let edgeprochindef = if content.at(j).at(i+1).len() >= 3 and content.at(j).at(i+1).at(2) == "u"{0.3} else{0}
|
|
||||||
let prochainIndef = if content.at(j).at(i).len() >= 3 and i != 0 and content.at(j).at(i).at(2) == "u"{
|
|
||||||
if content.at(j).at(i).first() == top{1}
|
|
||||||
else if content.at(j).at(i).first() == center{1.75}
|
|
||||||
else if content.at(j).at(i).first() == bottom{2.5}
|
|
||||||
}
|
|
||||||
|
|
||||||
if content.at(j).at(i).len()>2 and i != 0 and content.at(j).at(i).at(2) == "u"{ // cas de l'ajout d'une ligne indéfine
|
|
||||||
|
|
||||||
node((i +2/3 - decalindef*1.06, prochainIndef +(j)*3+0.25), content.at(j).at(i).at(3))
|
|
||||||
|
|
||||||
//la double ligne de l'indéfine
|
|
||||||
edge(
|
|
||||||
(i +2/3 -0.02 * calc.sqrt(stroke.thickness.pt()) ,3*j + if j == 0{0.9} + if j == 0 and j == init.at("label").len() - 1 {-0.03}),
|
|
||||||
(i +2/3 - 0.02 * calc.sqrt(stroke.thickness.pt()) ,3*j+4 + if j == init.at("label").len() - 1 {-0.1}),
|
|
||||||
stroke: stroke.thickness/2 + stroke.paint
|
|
||||||
)
|
|
||||||
edge(
|
|
||||||
(i +2/3 + 0.02 * calc.sqrt(stroke.thickness.pt()),3*j + if j == 0{0.9} + if j == 0 and j == init.at("label").len() - 1 {-0.03}),
|
|
||||||
(i +2/3 + 0.02 * calc.sqrt(stroke.thickness.pt()),3*j+4 + if j == init.at("label").len() - 1 {-0.1}),
|
|
||||||
stroke: stroke.thickness/2 + stroke.paint
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
//traite le premier cas s'il est non défine
|
|
||||||
else if content.at(j).at(i).len()>2 and content.at(j).at(i).at(1) == "u"{
|
|
||||||
|
|
||||||
//le node qui contient l'élément
|
|
||||||
if content.at(j).at(i).first() == top{
|
|
||||||
node((2/3, 1+(j)*3+0.25), content.at(j).first().last())
|
|
||||||
proch = 1+(j)*3+0.25
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i).first() == center{
|
|
||||||
node((2/3, 2+(j)*3), content.at(j).first().last())
|
|
||||||
proch = 2+(j)*3
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i).first() == bottom{
|
|
||||||
node((2/3, 3+(j)*3-0.25), content.at(j).first().last())
|
|
||||||
proch = 3+(j)*3-0.25
|
|
||||||
}
|
|
||||||
|
|
||||||
// la ligne de l'indéfine
|
|
||||||
edge(
|
|
||||||
(0.4 * calc.pow(stroke.thickness.pt(), 1/20) ,3*j + if j == 0{0.9} + if j == 0 and j == init.at("label").len() - 1 {-0.01}),
|
|
||||||
(0.4 * calc.pow(stroke.thickness.pt(), 1/20) ,3*j+4 + if j == init.at("label").len() - 1 {-0.1})
|
|
||||||
, stroke: stroke.thickness/2 + stroke.paint
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// les nodes contenants les éléments
|
|
||||||
if content.at(j).at(i).len()!=0{
|
|
||||||
if content.at(j).at(i).at(if content.at(j).at(i).len()>2{1} else{0}) == top{
|
|
||||||
node((i +2/3 + decalindef*1.06, 1+(j)*3+0.25), content.at(j).at(i).last())
|
|
||||||
proch = 1+(j)*3+0.25
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i).at(if content.at(j).at(i).len()>2{1} else{0}) == center{
|
|
||||||
node((i +2/3 + decalindef*1.06, 2+(j)*3), content.at(j).at(i).last())
|
|
||||||
proch = 2+(j)*3
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i).at(if content.at(j).at(i).len()>2{1} else{0}) == bottom{
|
|
||||||
node((i +2/3 + decalindef*1.06, 3+(j)*3-0.25), content.at(j).at(i).last())
|
|
||||||
proch = 3+(j)*3-0.25
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// les flèches entre les éléments s'il n'y a pas d'élément à skip
|
|
||||||
if content.at(j).at(i+1).len()!=0 and content.at(j).at(i).len()!=0{
|
|
||||||
if content.at(j).at(i+1).first() == top{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i+5/3 - edgeprochindef ,3*(j)+1+0.25), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i+1).first() == bottom{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i+5/3 - edgeprochindef,3*(j)+3-0.25), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i+1).first() == center{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i+5/3 - edgeprochindef ,3*(j)+2), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// élément a skip
|
|
||||||
if content.at(j).at(i+1).len()==0 and content.at(j).at(i).len()!=0 {
|
|
||||||
if content.at(j).at(i+prochainNonVideVar(content.at(j), i)+1).first() == top{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i + (prochainNonVideVar(content.at(j), i)+1)+ 1/3 + 0.3 - edgeprochindef ,3*(j)+1+0.25), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i+prochainNonVideVar(content.at(j), i)+1).first() == bottom{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i + (prochainNonVideVar(content.at(j), i)+1)+ 1/3 + 0.3 - edgeprochindef,3*(j)+3-0.25), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
else if content.at(j).at(i+prochainNonVideVar(content.at(j), i)+1).first() == center{
|
|
||||||
edge((i +2/3 + decalindef ,proch),(i + (prochainNonVideVar(content.at(j), i)+1)+ 1/3 + 0.3- edgeprochindef ,3*(j)+2), arrow, stroke: stroke-arrow)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
lastele(content.at(j).last(), interval, j,init , stroke), // pour gérer le dernier élément
|
|
||||||
|
|
||||||
if j != init.at("label").len()-1{edge((-0.74,3*(j)+4), (interval.len()+0.11, 3*(j)+4), stroke: stroke)} // ligne sous les tableaux de variation
|
|
||||||
)}
|
|
||||||
)}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#tabvar(
|
|
||||||
lign-0: true,
|
|
||||||
init: (
|
|
||||||
"variable": $x$,
|
|
||||||
"label": (
|
|
||||||
([varation de $f$], variation),
|
|
||||||
([signe de $c$], signe),
|
|
||||||
([var de $c$], variation),
|
|
||||||
([signe de s], signe),
|
|
||||||
([les problème], variation),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
interval: ($0$, $2$, $3$, $4$, $5$, $6$),
|
|
||||||
content: (
|
|
||||||
(
|
|
||||||
(top, "u", $t 101$),
|
|
||||||
(),
|
|
||||||
(bottom, top, "u", $-oo$, $sqrt(pi/3)$),
|
|
||||||
(),
|
|
||||||
(),
|
|
||||||
(bottom, "u", $b 251$),
|
|
||||||
),
|
|
||||||
($-$, $+$, $-$, (), ()),
|
|
||||||
(
|
|
||||||
(bottom, "u", $t 1 02$),
|
|
||||||
(top, top, "u", $1$),
|
|
||||||
(bottom, $3$),
|
|
||||||
(),
|
|
||||||
(),
|
|
||||||
(top, "u", $b 252$),
|
|
||||||
),
|
|
||||||
($+$, $-$, $+$, (), ()),
|
|
||||||
(
|
|
||||||
(bottom, "u", $3$),
|
|
||||||
(),
|
|
||||||
(top, bottom, "u", $1$),
|
|
||||||
(),
|
|
||||||
(),
|
|
||||||
(top, "u", $4$),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
arrow: "->",
|
|
||||||
debug: false,
|
|
||||||
)
|
|
||||||
|
|
||||||
#scale(x: 90%, y: 80%)[
|
|
||||||
#tabvar(
|
|
||||||
lign-0: false,
|
|
||||||
init: (
|
|
||||||
"variable": $x$,
|
|
||||||
"label": (
|
|
||||||
([varation de $f$], variation),
|
|
||||||
([signe de $c$], signe),
|
|
||||||
([var de $c$], variation),
|
|
||||||
([signe de s], signe),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
interval: ($0$, $2$, $3$, $4$, $5$, $6$),
|
|
||||||
content: (
|
|
||||||
(
|
|
||||||
(top, $t 101$),
|
|
||||||
(center, $c 111$),
|
|
||||||
(bottom, $b 121$),
|
|
||||||
(bottom, $b 231$),
|
|
||||||
(center, $c 241$),
|
|
||||||
(bottom, "u", $b 251$),
|
|
||||||
),
|
|
||||||
($-$, $-$, $+$, $-$, ()),
|
|
||||||
(
|
|
||||||
(top, "u", $t 1 02$),
|
|
||||||
(bottom, top, "u", $h$, $c 112$),
|
|
||||||
(bottom, $b 122$),
|
|
||||||
(top, $t 232$),
|
|
||||||
(),
|
|
||||||
(bottom, $b 252$),
|
|
||||||
),
|
|
||||||
($+$, $-$, $+$, $-$, $+$),
|
|
||||||
),
|
|
||||||
arrow: "X--O-->>>",
|
|
||||||
stroke-arrow: blue,
|
|
||||||
debug: false,
|
|
||||||
stroke: red + 3pt,
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
#tabvar(
|
|
||||||
init: (
|
|
||||||
"variable": $t$,
|
|
||||||
label: (([signe], signe),),
|
|
||||||
),
|
|
||||||
interval: ($0$, $1$, $2$),
|
|
||||||
content: (($+$, $-$),),
|
|
||||||
)
|
|
||||||
Binary file not shown.
+39
-3
@@ -1,7 +1,7 @@
|
|||||||
|
#import "transposition.typ": *
|
||||||
|
#import "@preview/drafting:0.2.0": *
|
||||||
|
|
||||||
#let question = counter("questions")
|
#let question = counter("questions")
|
||||||
#show heading : it => {
|
|
||||||
if it.body == [] or it.level >= 3 [#parbreak() #linebreak() #counter(heading).display() #it.body] else [#parbreak() #linebreak() #counter(heading).display() #it.body]
|
|
||||||
}
|
|
||||||
#let nonumeq = math.equation.with(block: true, numbering: none)
|
#let nonumeq = math.equation.with(block: true, numbering: none)
|
||||||
#let dm(x) = box[#nonumeq[#x]]
|
#let dm(x) = box[#nonumeq[#x]]
|
||||||
#let dfrac(x, y) = math.frac(dm(x), dm(y))
|
#let dfrac(x, y) = math.frac(dm(x), dm(y))
|
||||||
@@ -71,3 +71,39 @@
|
|||||||
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
|
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
|
||||||
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
|
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
|
||||||
#let a = text[#h(-16pt) a.]
|
#let a = text[#h(-16pt) a.]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//tout les set rule :
|
||||||
|
#let template(doc) = [
|
||||||
|
#set heading(numbering: (..numbers) => {
|
||||||
|
let n = numbers.pos().len()
|
||||||
|
if n == 1 {
|
||||||
|
question.update(1)
|
||||||
|
} else if n == 2 {
|
||||||
|
[Partie ]
|
||||||
|
numbering("I", numbers.pos().at(1) - 1)
|
||||||
|
"."
|
||||||
|
} else if n == 3 {
|
||||||
|
question.step()
|
||||||
|
if question.get().last() < 10 {
|
||||||
|
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
|
||||||
|
} else {
|
||||||
|
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
|
||||||
|
}
|
||||||
|
} else if n == 4 {
|
||||||
|
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
|
||||||
|
} else if n == 5 {
|
||||||
|
numbering("i.", numbers.pos().at(4))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
#set underline(stroke: red + 1pt)
|
||||||
|
#set par(leading: 0.8em)
|
||||||
|
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
|
||||||
|
#set math.cancel(stroke: red)
|
||||||
|
#doc
|
||||||
|
]
|
||||||
Binary file not shown.
Reference in new issue
Block a user