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
]
#proof[ // #proof(color: blue)[...]
#lorem(50)
something
]
#ans[ // #ans(color: red)[...]
#lorem(50)
something
]