Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
################################################################################
# Copyright 2025, Trusted Computing Group (TCG). #
# All rights reserved. #
# ---------------------------------------------------------------------------- #
# Makefile for locally building TCG Typst documents. #
# ---------------------------------------------------------------------------- #
# Author: Michael Eckel <[email protected]> #
# Date Modified: 2025-06-10T08:22:42+02:00 #
# Date Created: 2025-06-10T08:22:42+02:00 #
################################################################################


SHELL := /bin/sh
TYPST := typst
RM := rm

EXTRA_BUILD_OPTS = --font-path='./fonts/'

TYPST_FILES := $(wildcard *.typ)
PDF_FILES := $(patsubst %.typ, %.pdf, $(TYPST_FILES))
HTML_FILES := $(patsubst %.typ, %.html, $(TYPST_FILES))

.PHONY: all pdf html clean

all: pdf

pdf: $(PDF_FILES)
html: $(HTML_FILES)

%.pdf: %.typ
$(TYPST) compile \
$(EXTRA_BUILD_OPTS) \
--format='pdf' \
--pdf-standard='a-2b' \
$< \
$@

%.html: %.typ
$(TYPST) compile \
$(EXTRA_BUILD_OPTS) \
--features='html' \
--format='html' \
$< \
$@

clean:
$(RM) $(PDF_FILES) $(HTML_FILES)
56 changes: 56 additions & 0 deletions acronyms/acronyms.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#import "@preview/acrostiche:0.5.2": *

/*
URL: https://typst.app/universe/package/acrostiche/

Functions Summary:
#init-acronyms(…) Initializes the acronyms by defining them in a dictionary where the keys are acronyms and the values are definitions.
#acr(…) Prints the acronym with its definition on the first call, then just the acronym in subsequent calls.
#acrpl(…) Prints the plural version of the acronym. Uses plural definition if available, otherwise adds an ‘s’ to the acronym.
#acrfull(…) Displays the full (long) version of the acronym without affecting the state or tracking its usage.
#acrfullpl(…) Displays the full plural version of the acronym without affecting the state or tracking its usage.
#reset-acronym(…) Resets a single acronym so the next usage will include its definition again.
#reset-all-acronyms() Resets all acronyms so the next usage will include their definitions again.
#print-index(…) Prints an index of all acronyms used, with customizable heading level, order, and display parameters.
#display-def(…) Displays the definition of an acronym. Use plural: true to display the plural version of the definition.
racr, raacr, acrf, acrfpl Shortcuts names for respectively reset-acronym, reset-all-acronyms, acrfull, and acrfullpl.

Shortcut names inspired by the acronym package for LaTeX by Tobias Oetiker:
#ac(…) Same as acr, display an acronym.
#acf(…) Same as acrfull, display the long version of an acronym.
#acfp(…) Same as acf but plural.
#acs(…) Display the short version of the acronym, does not update the acronym state.
#acsp(…) Same as acs but plural.
#acused(…) Mark an acronym as used without printing anything.
#acresetall(…) Reset all acronyms.
*/


#init-acronyms((
// "CBOR": (
// short: "CBOR",
// long: "Concise Binary Object Representation",
// short-pl: "CBORs",
// long-pl: "Concise Binary Object Representations",
// ),
"CBOR": "Concise Binary Object Representation",
"CDDL": "Concise Data Definition Language",
"CEL": "Canonical Event Log",
"CoT": "Chain of Trust",
"CHARRA": "Challenge-Response based Remote Attestation with TPM 2.0",
"DICE": "Device Identifier Composition Engine",
"IETF": "Internet Engineering Task Force",
"IIoT": "Industrial Internet of Things",
"IoMT": "Internet of Medical Things",
"IoT": "Internet of Things",
"JSON": "JavaScript Object Notation",
"PoC": "proof-of-concept",
"PUF": "Physical(ly) Unclonable Function",
"PQC": "post-quantum cryptography",
"RATS": "Remote Attestation Procedures",
"SE": "Secure Element",
"TCG": "Trusted Computing Group",
"TEE": "Trusted Execution Environment",
"TPM": "Trusted Platform Module",
"UID": "unique identifier",
))
Loading