ttt-utils is the core package of the typst-teacher-tools collection.
Modules
It contains several modules:
assignmentscontains functions for creating exams.rubiccontains a function for creating rubic tables.componentscontains useful visual components such lines or caro pattern, tags, etc …gradingcontains functions for grading exams.helperscontains some utility functions.layoutcontains some layout functions such as side-by-side, etc…randomcontains a function to shuffle an array.
Usage
You can import the modules you need with the following command.
Just replace <VERSION> with a valid version.
#import "@preview/ttt-utils:<VERSION>": components
then you can access the modules function with:
#assignments.question[] or #components.caro(5), …
or import the wanted functions:
#import "@preview/ttt-utils:<VERSION>": components, assignments
#import assignments: scenario, question, answer
#import components: caro
// Add a question.
#scenario[First scenario
#question[
What is the capital of France?
#caro(5)[
#answer[Paris]
]
]
]