diff --git a/epi.typ b/epi.typ index 5851153..0652fef 100644 --- a/epi.typ +++ b/epi.typ @@ -10,7 +10,7 @@ libepi.card(name: "Perceuse à colonne", instructions: "", protection_items: -(libepi.Gloves,), warning: [Ne surtout pas mettre de gants]), +(libepi.NoGloves,), warning: [Ne surtout pas mettre de gants]), ) #show: doc => [ diff --git a/imgs/OBLIGATION/INTERDICTION-gants.svg b/imgs/OBLIGATION/INTERDICTION-gants.svg new file mode 100644 index 0000000..9972a5a --- /dev/null +++ b/imgs/OBLIGATION/INTERDICTION-gants.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/libepi.typ b/lib/libepi.typ index ac9b374..03992e5 100644 --- a/lib/libepi.typ +++ b/lib/libepi.typ @@ -32,6 +32,8 @@ instructions: none, note: none, warning: none, min_help: 0) = { #let Gloves = build_img("OBLIGATION/OBLIGATION-gants.svg", "Gants") #let Mask = build_img("OBLIGATION/OBLIGATION-protection-voies-respiratoires.svg", "Masque") +#let NoGloves = build_img("OBLIGATION/INTERDICTION-gants.svg", "Gants") + #let generate_single_card(card) = { [ #set align(center) @@ -76,27 +78,22 @@ instructions: none, note: none, warning: none, min_help: 0) = { } ]) ] + linebreak() + linebreak() if card.warning != none { // TODO: Tidy this up - linebreak() - linebreak() - linebreak() - text(size: 30pt, weight: "bold")[Avertissement] - linebreak() - text(size: 18pt)[#card.warning] - warning(title: [Avertissement])[#card.warning] + //text(size: 30pt, weight: "bold")[Avertissement] + //linebreak() + //text(size: 18pt)[#card.warning] + warning(title: [#text(size:30pt)[Avertissement]])[#text(size: + 18pt)[#card.warning]] } - // TODO: Tidy this up - linebreak() - linebreak() - linebreak() - - text(size: 30pt, weight: "bold")[Instructions] - linebreak() - text(size: 18pt)[#card.instructions] + //text(size: 30pt, weight: "bold")[Instructions] + //linebreak() + //text(size: 18pt)[#card.instructions] info(title: [#text(size:30pt)[Instructions]])[#text(size:18pt)[#card.instructions]] }