ttt-utils is the core package of the typst-teacher-tools collection.
Modules
It contains several modules:
assignmentscontains functions for creating exams.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:
#import "@preview/ttt-utils:0.1.4": components
then you can access the modules function with:
#components.lines(4) or #components.caro(5), …
or import the wanted functions:
#import "@preview/ttt-utils:0.1.4": components, assignments
#import assignments: assignment, question, answer
#import components: caro as grid_pattern
// Add a question.
#assignment[First assignment
#question[
#answer(field: grid_pattern(5))
]
]
Similar projects
- scrutinize by SillyFreak: Package to create exams, very similar to the
assignmentmodule, but only questions without assignments, and a bit more low level. I adopted a few of his ideas.