add example files

This commit is contained in:
grisel-davy 2023-07-01 23:10:52 -04:00
parent ec08fb3bbf
commit 852c1c014f
2 changed files with 18 additions and 0 deletions

5
acronyms.typ Normal file
View file

@ -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")
)

13
main.typ Normal file
View file

@ -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")