Skip to content

shealligh/typst-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Assignment template based on Typst

Basic usage

Create another file, e.g. hw1.typ, import this template and config basic information.

#import "conf.typ": *

#show: doc => conf(
    course: [course name],
    homework: [Homework 1/2/3/4/],
    due_time: [Sep 16/17/18, 2024],
    instructor: [someone],
    student: [you],
    id: [id],
    doc,
)

Then write problems in homework like this:

#problem(name: [name])[     // or #problem(name: "name")
    #lorem(20)
    something
]

or number the problems automatically:

#problem[
    #lorem(50)
    something
]

Other useful functions

#proof[                     // #proof(color: blue)[...]
    #lorem(50)
    something
]
#ans[                       // #ans(color: red)[...]
    #lorem(50)
    something
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages