|
| 1 | +#import "@preview/acrostiche:0.5.2": * |
| 2 | + |
| 3 | +/* |
| 4 | +URL: https://typst.app/universe/package/acrostiche/ |
| 5 | +
|
| 6 | +Functions Summary: |
| 7 | + #init-acronyms(…) Initializes the acronyms by defining them in a dictionary where the keys are acronyms and the values are definitions. |
| 8 | + #acr(…) Prints the acronym with its definition on the first call, then just the acronym in subsequent calls. |
| 9 | + #acrpl(…) Prints the plural version of the acronym. Uses plural definition if available, otherwise adds an ‘s’ to the acronym. |
| 10 | + #acrfull(…) Displays the full (long) version of the acronym without affecting the state or tracking its usage. |
| 11 | + #acrfullpl(…) Displays the full plural version of the acronym without affecting the state or tracking its usage. |
| 12 | + #reset-acronym(…) Resets a single acronym so the next usage will include its definition again. |
| 13 | + #reset-all-acronyms() Resets all acronyms so the next usage will include their definitions again. |
| 14 | + #print-index(…) Prints an index of all acronyms used, with customizable heading level, order, and display parameters. |
| 15 | + #display-def(…) Displays the definition of an acronym. Use plural: true to display the plural version of the definition. |
| 16 | + racr, raacr, acrf, acrfpl Shortcuts names for respectively reset-acronym, reset-all-acronyms, acrfull, and acrfullpl. |
| 17 | +
|
| 18 | +Shortcut names inspired by the acronym package for LaTeX by Tobias Oetiker: |
| 19 | + #ac(…) Same as acr, display an acronym. |
| 20 | + #acf(…) Same as acrfull, display the long version of an acronym. |
| 21 | + #acfp(…) Same as acf but plural. |
| 22 | + #acs(…) Display the short version of the acronym, does not update the acronym state. |
| 23 | + #acsp(…) Same as acs but plural. |
| 24 | + #acused(…) Mark an acronym as used without printing anything. |
| 25 | + #acresetall(…) Reset all acronyms. |
| 26 | +*/ |
| 27 | + |
| 28 | + |
| 29 | +#init-acronyms(( |
| 30 | + // "CBOR": ( |
| 31 | + // short: "CBOR", |
| 32 | + // long: "Concise Binary Object Representation", |
| 33 | + // short-pl: "CBORs", |
| 34 | + // long-pl: "Concise Binary Object Representations", |
| 35 | + // ), |
| 36 | + "CBOR": "Concise Binary Object Representation", |
| 37 | + "CDDL": "Concise Data Definition Language", |
| 38 | + "CEL": "Canonical Event Log", |
| 39 | + "CoT": "Chain of Trust", |
| 40 | + "CHARRA": "Challenge-Response based Remote Attestation with TPM 2.0", |
| 41 | + "DICE": "Device Identifier Composition Engine", |
| 42 | + "IETF": "Internet Engineering Task Force", |
| 43 | + "IIoT": "Industrial Internet of Things", |
| 44 | + "IoMT": "Internet of Medical Things", |
| 45 | + "IoT": "Internet of Things", |
| 46 | + "JSON": "JavaScript Object Notation", |
| 47 | + "PoC": "proof-of-concept", |
| 48 | + "PUF": "Physical(ly) Unclonable Function", |
| 49 | + "PQC": "post-quantum cryptography", |
| 50 | + "RATS": "Remote Attestation Procedures", |
| 51 | + "SE": "Secure Element", |
| 52 | + "TCG": "Trusted Computing Group", |
| 53 | + "TEE": "Trusted Execution Environment", |
| 54 | + "TPM": "Trusted Platform Module", |
| 55 | + "UID": "unique identifier", |
| 56 | +)) |
0 commit comments