Giter Site home page Giter Site logo

nd-assignment-templates's Introduction

ND Assignment Templates

About

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.

Usage Notes:

  • 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 from utils.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").
  • See custom functions below.

Some Custom Functions:

  • #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.

Changelog

  • [3/6/24] - Reworked headings, fixed outline issue

Screenshot

image

nd-assignment-templates's People

Contributors

gmax9803 avatar

Watchers

 avatar

nd-assignment-templates's Issues

Outline is broken

The outline I typically use doesn't work. Some weird problem with the typst counter I implemented. Will take a look and fix when I have more time.

Reference image:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.