Skip to content

Commit f455743

Browse files
authored
eckelmeckel update 2 (#5)
* Adding a new template and a sample file. Includes all other related files, such as fonts, graphics, acronyms, references, etc, and a Makefile. Signed-off-by: Michael Eckel <[email protected]> * A first attempt to create an official Typst template. Signed-off-by: Michael Eckel <[email protected]> * Massively extended template and demo document. --------- Signed-off-by: Michael Eckel <[email protected]>
1 parent d80a25b commit f455743

File tree

227 files changed

+10518
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+10518
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
*.pdf
1+
/*.pdf
22
.DS_Store

Makefile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
################################################################################
2+
# Copyright 2025, Trusted Computing Group (TCG). #
3+
# All rights reserved. #
4+
# ---------------------------------------------------------------------------- #
5+
# Makefile for locally building TCG Typst documents. #
6+
# ---------------------------------------------------------------------------- #
7+
# Author: Michael Eckel <[email protected]> #
8+
# Date Modified: 2025-06-10T08:22:42+02:00 #
9+
# Date Created: 2025-06-10T08:22:42+02:00 #
10+
################################################################################
11+
12+
13+
SHELL := /bin/sh
14+
TYPST := typst
15+
RM := rm
16+
17+
EXTRA_BUILD_OPTS = --font-path='./fonts/'
18+
19+
TYPST_FILES := $(wildcard *.typ)
20+
PDF_FILES := $(patsubst %.typ, %.pdf, $(TYPST_FILES))
21+
HTML_FILES := $(patsubst %.typ, %.html, $(TYPST_FILES))
22+
23+
.PHONY: all pdf html clean
24+
25+
all: pdf
26+
27+
pdf: $(PDF_FILES)
28+
html: $(HTML_FILES)
29+
30+
%.pdf: %.typ
31+
$(TYPST) compile \
32+
$(EXTRA_BUILD_OPTS) \
33+
--format='pdf' \
34+
--pdf-standard='a-2b' \
35+
$< \
36+
$@
37+
38+
%.html: %.typ
39+
$(TYPST) compile \
40+
$(EXTRA_BUILD_OPTS) \
41+
--features='html' \
42+
--format='html' \
43+
$< \
44+
$@
45+
46+
clean:
47+
$(RM) $(PDF_FILES) $(HTML_FILES)

acronyms/acronyms.typ

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

Comments
 (0)