From 852c1c014f633c32b706afb3837e4151c2bbc2cc Mon Sep 17 00:00:00 2001 From: Arthur Grisel-Davy Date: Sat, 1 Jul 2023 23:10:52 -0400 Subject: [PATCH] add example files --- acronyms.typ | 5 +++++ main.typ | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 acronyms.typ create mode 100644 main.typ diff --git a/acronyms.typ b/acronyms.typ new file mode 100644 index 0000000..ab94508 --- /dev/null +++ b/acronyms.typ @@ -0,0 +1,5 @@ +#let acronyms = ( + "AMS": "Acronym Management System", + "ACROBAT": "Acrobat Can Really Optimize Building Acronyms in Typst", + "BIOS": ("Basic Input/Output System", "Basic Input/Output Systems") +) diff --git a/main.typ b/main.typ new file mode 100644 index 0000000..8eb5528 --- /dev/null +++ b/main.typ @@ -0,0 +1,13 @@ +#import "acrobat.typ": * + +#print-index(level: 1, outlined: true) + +Acrobat is an #acr("AMS") for Typst. +#acrpl("AMS") make it easier to deal with acronyms and their definitions. +With Acrobat, you can define, use, and reset acronyms. + +Function `#reset-acronym("AMS")`#reset-acronym("AMS") allow to reset #acr("AMS"). +#acrpl("AMS") are super usefull to avoid using undefined acronyms. + + +Trying to use an acronyms that is not defined will result in... //#acr("PANIC")