Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ The `pset` function takes the following named arguments:
- `student` (string): Student completing the assignment.
- `title` (string): Title of the assignment.
- `date` (datetime): Date to be displayed on the assignment.
- `date-format` (string): Date format string to use for displaying `date` (see [Typst docs](https://typst.app/docs/reference/foundations/datetime/) for formatting instructions)
- `collaborators` (array of strings): Collaborators that worked on the assignment with the student. Can be `()`.
- `subproblems` (string): Numbering scheme for the subproblems.
3 changes: 2 additions & 1 deletion pset.typ
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: "PSET 0",
student: "Alyssa P. Hacker",
date: datetime.today(),
date-format: "[month repr:long] [day padding:none], [year]",
subproblems: "1.1.a.i",
collaborators: (),
doc,
Expand Down Expand Up @@ -60,7 +61,7 @@
text(size: 1.6em, weight: "bold")[#class -- #title \ ]
text(size: 1.2em, weight: "semibold")[#student \ ]
emph[
#date.display("[year]-[month]-[day]")
#date.display(date-format)
#if collaborators != none {
[
\ Collaborators: #collaborators
Expand Down