t

ttt-utils

@preview

A collection of tools to make a teachers life easier.

v0.3.0
MIT

Package Information

Last Updated
Minimum Typst Version
0.14.0
Authors
Jomaway
Categories
componentsutility
Disciplines
education

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/ttt-utils:0.3.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/ttt-utils:0.3.0": *

Version History

0.3.00.14.0
b4fcb815ee1e...
0.2.00.14.0
f303302809c3...
0.1.40.13.0
f206dd417c2f...
0.1.30.11.0
c6aeacfd71cf...
0.1.20.11.0
a0c5c7554f33...
0.1.00.11.0
a1a63f68c982...

ttt-utils

ttt-utils is the core package of the typst-teacher-tools collection.

Modules

It contains several modules:

  • assignments contains functions for creating exams.
  • rubic contains a function for creating rubic tables.
  • components contains useful visual components such lines or caro pattern, tags, etc ...
  • grading contains functions for grading exams.
  • helpers contains some utility functions.
  • layout contains some layout functions such as side-by-side, etc...
  • random contains 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]
        ]
    ]
]