Although the respository might contain more templates in the future, currently it just contains my main typesetting template for Typst that I use for Theory of Computing and similar proof-based math classes.
In general/
you can find the general dynamic typst template I've created and used for most of my assignments.
View on Typst here for most up-to-date version.
- When you first use it/download it, go to
utils.typ
and personalize the dictionary information at the top. It will look something like the following. Everything is dynamically updated fromutils.typ
, so if something is not updating like you might want it to, you need to change a setting.#let ddata = ( hw_num: "##", // int, insert HW number (i.e. for HW1 -> 01) due_date: datetime(year: 2024, month: 4, day: 5), // Due Date author: "First Last", // Author fullname net_id: "netid", // Your netid (i.e. jshmoe2) outline: false, // Print table of contents? (true | false)... table of contents not working right now.. slug: "toc", // Class slug, toc = theory of computing cname: "Theory of Computing", // Full class name atype: "hw" // assignment type: hw, ps (problem set), etc )
- Every iteration of
#problem()
keeps track of the problem numbering.- Likewise with
#subprob()
, but you can provide a custom lettering like this should you prefer:#subprob("a")
.
- Likewise with
- See custom functions below.
#proof()[]
#proof(b: true)[ This will make a proof box with a border. Prefixed with "proof:" and suffixed with QED. If you dont want a border, simply omit the 'b: true' -> proof()[content]. ]
#cbox()[]
#cbox(b: true)[ Works exactly the same as '#proof', just doesn't have the proof items. ]
#qed
Appends a QED to the end, right aligned.
- [3/6/24] - Reworked headings, fixed outline issue
![image](https://private-user-images.githubusercontent.com/27639180/310654334-5a85b3a9-f941-41c7-b404-88e724dfb889.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDMxMDksIm5iZiI6MTcyMTQwMjgwOSwicGF0aCI6Ii8yNzYzOTE4MC8zMTA2NTQzMzQtNWE4NWIzYTktZjk0MS00MWM3LWI0MDQtODhlNzI0ZGZiODg5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDE1MjY0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3NTNkYTJkM2Y1MzI0N2M3MzJiMjcyNTE0NTFlYzVkZGJhNGJiOTg1M2U4MjllOWMxNzBkNDcxMzEyN2U2YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LEhFGnDK8VZgNqsItFCTOQRgTyM28-fOVzm112ymP1o)