Package Information
- Last Updated
- Authors
- Aurelien Saudemont
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/vote-card:0.1.02. Import in your Typst file
Add this to your .typ file:
#import "@preview/vote-card:0.1.0": *vote-card
🇫🇷 Lire en Français | 🇬🇧 Read in English
Version Française
Un package Typst permettant d'afficher des résultats de vote sous forme de carte, avec des barres de progression dynamiques et un support multi-langues.
Utilisation
#import "@preview/vote-card:0.1.0": vote-card
// En français par défaut
#vote-card(numero: 1, pour: 45, contre: 30, abstention: 5, connexions: 82)
// Dans une autre langue (ex: anglais)
#vote-card(numero: 2, pour: 45, contre: 30, abstention: 5, connexions: 82, lang: "en")
Paramètres
numero(entier, texte ounone, optionnel) : Affiche "Vote n°X" en haut de la cartepour(entier) : Nombre de votes pourcontre(entier) : Nombre de votes contreabstention(entier) : Nombre d'abstentionsconnexions(entier) : Nombre de connexions en directlang(texte) : Langue d'affichage de la carte ("fr","en","es","de"). Par défaut"fr"
English Version
A Typst package to display beautiful voting results as a card, featuring dynamic progress bars and multi-language support.
Usage
#import "@preview/vote-card:0.1.0": vote-card
// Default (French)
#vote-card(numero: 1, pour: 45, contre: 30, abstention: 5, connexions: 82)
// In English
#vote-card(numero: 2, pour: 45, contre: 30, abstention: 5, connexions: 82, lang: "en")
Parameters
numero(integer, text, ornone, optional): Displays "Vote #X" at the top of the cardpour(integer): Number of "For" votescontre(integer): Number of "Against" votesabstention(integer): Number of abstentionsconnexions(integer): Number of live connectionslang(text): Language of the card ("fr","en","es","de"). Default is"fr"