Exos
This commit is contained in:
parent
1d1ac0bccf
commit
c645fc870c
@ -17,11 +17,12 @@ git clone <https://url.of/repo.git> ~/.local/share/typst/packages/y-sec
|
|||||||
|
|
||||||
## Templates:
|
## Templates:
|
||||||
|
|
||||||
- [Slides](slides)
|
- [Slides](slides/0.1.0)
|
||||||
- [Test écrit](exam) ([exemple](exam/demo.typ), [pdf](exam/demo.pdf))
|
- [Test écrit](exam/0.2.0) ([exemple](exam/0.2.0/demo.typ), [pdf](exam/0.2.0/demo.pdf))
|
||||||
- [Laboratoire](lab)
|
- [Laboratoire](lab/0.1.0)
|
||||||
|
- [Feuille d'exercices](exo/0.1.0)
|
||||||
|
|
||||||
## Options de compilation:
|
## Options de compilation pour exams/labs:
|
||||||
|
|
||||||
Choisir le mode de rendu avec `typst compile --input mode=<MODE>`
|
Choisir le mode de rendu avec `typst compile --input mode=<MODE>`
|
||||||
|
|
||||||
|
36
exo/0.1.0/lib.typ
Normal file
36
exo/0.1.0/lib.typ
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
#let exercice(course: "Course", title: "Title", doc) = {
|
||||||
|
|
||||||
|
set text(font: "Carlito")
|
||||||
|
|
||||||
|
set page(header: context {
|
||||||
|
if counter(page).get().first() > 1 { text(size: 0.8em)[#course - #title]} },
|
||||||
|
footer: [],
|
||||||
|
numbering: "1 / 1"
|
||||||
|
)
|
||||||
|
|
||||||
|
set par(first-line-indent: 2em)
|
||||||
|
|
||||||
|
set heading(numbering: "1.1. ")
|
||||||
|
|
||||||
|
show heading: set block(spacing:
|
||||||
|
1.5em)
|
||||||
|
|
||||||
|
set enum(indent: 1em, numbering: "1.a.")
|
||||||
|
|
||||||
|
show link: set text(fill: blue.darken(20%))
|
||||||
|
|
||||||
|
v(10em)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
align(center, text(size: 1.7em, course))
|
||||||
|
|
||||||
|
align(center, text(size: 1.5em, title))
|
||||||
|
|
||||||
|
v(5em)
|
||||||
|
|
||||||
|
|
||||||
|
doc
|
||||||
|
}
|
||||||
|
|
||||||
|
|
7
exo/0.1.0/typst.toml
Normal file
7
exo/0.1.0/typst.toml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[package]
|
||||||
|
name = "exo"
|
||||||
|
version = "0.1.0"
|
||||||
|
entrypoint = "lib.typ"
|
||||||
|
authors = ["Maxime Augier <max@xolus.net>"]
|
||||||
|
license = "MIT"
|
||||||
|
description = "Exercise sheet"
|
Loading…
Reference in New Issue
Block a user