Add more power tools and make things prettier
This commit is contained in:
parent
9a1b96218b
commit
00a9dcea67
2 changed files with 25 additions and 6 deletions
22
epi.typ
22
epi.typ
|
@ -10,7 +10,7 @@
|
||||||
libepi.card(name: "Défonceuse",
|
libepi.card(name: "Défonceuse",
|
||||||
protection_items: (libepi.Hearing, libepi.Shield),
|
protection_items: (libepi.Hearing, libepi.Shield),
|
||||||
forbidden_items: (),
|
forbidden_items: (),
|
||||||
referent: "cst1",
|
referent: ("cst1",),
|
||||||
instructions: "truc truc truc",
|
instructions: "truc truc truc",
|
||||||
min_help: 1
|
min_help: 1
|
||||||
),
|
),
|
||||||
|
@ -31,7 +31,25 @@
|
||||||
forbidden_items: (libepi.NoGloves,),
|
forbidden_items: (libepi.NoGloves,),
|
||||||
instructions: [],
|
instructions: [],
|
||||||
warning: [Ne surtout pas mettre de gants, ils risqueraient d'être emportés
|
warning: [Ne surtout pas mettre de gants, ils risqueraient d'être emportés
|
||||||
avec les mains dans la mèche.]
|
avec les mains dans la mêche.]
|
||||||
|
),
|
||||||
|
|
||||||
|
libepi.card(name: "CNC",
|
||||||
|
protection_items: (libepi.Hearing, libepi.Glasses,),
|
||||||
|
forbidden_items: (),
|
||||||
|
referent: ("Sel", "Rémy"),
|
||||||
|
instructions: [],
|
||||||
|
warning: []
|
||||||
|
),
|
||||||
|
|
||||||
|
libepi.card(name: "Imprimante 3D",
|
||||||
|
protection_items: (),
|
||||||
|
forbidden_items: (),
|
||||||
|
referent: ("Sel", "Rémy"),
|
||||||
|
instructions: [
|
||||||
|
- Allumer la hotte de l'imprimante
|
||||||
|
],
|
||||||
|
//warning: []
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -36,25 +36,26 @@ instructions: none, note: none, warning: none, min_help: 0) = {
|
||||||
|
|
||||||
#let generate_single_card(version, card) = {
|
#let generate_single_card(version, card) = {
|
||||||
set page(header: [Fiche EPI HackENS v#version])
|
set page(header: [Fiche EPI HackENS v#version])
|
||||||
|
set page(footer: [HackENS, CC-BY-SA-NC 2.0])
|
||||||
[
|
[
|
||||||
#set align(center)
|
#set align(center)
|
||||||
#text(size: 40pt, weight: "bold")[#card.name]
|
#text(size: 40pt, weight: "bold")[#card.name]
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
#if card.referent != none [
|
#if card.referent != none [
|
||||||
#text(size: 20pt)[Référent·es: #card.referent]
|
#text(size: 20pt)[#text(weight: "bold")[Référent·es:] #card.referent.join(", ")]
|
||||||
] else [
|
] else [
|
||||||
#text(size: 20pt)[Référent·es: #text(style: "italic")[Demander à un·e respo]]
|
#text(size: 20pt)[#text(weight: "bold")[Référent·es:] #text(style: "italic")[Demander à un·e respo]]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
linebreak()
|
linebreak()
|
||||||
[
|
[
|
||||||
#let plural = if card.min_help > 0 [s] else []
|
#let plural = if card.min_help > 0 [s] else []
|
||||||
#if card.min_help > 0 [
|
#if card.min_help > 0 [
|
||||||
#text(size: 20pt)[Utilisation: au moins
|
#text(size: 20pt)[#text(weight: "bold")[Utilisation:] au moins
|
||||||
#text(weight: "bold")[#str(card.min_help + 1)] personne#plural]
|
#text(weight: "bold")[#str(card.min_help + 1)] personne#plural]
|
||||||
] else [
|
] else [
|
||||||
#text(size: 20pt)[Utilisation: peut s'utiliser seul·e]
|
#text(size: 20pt)[#text(weight: "bold")[Utilisation:] peut s'utiliser seul·e]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
linebreak()
|
linebreak()
|
||||||
|
|
Loading…
Reference in a new issue