Skip to content

Instantly share code, notes, and snippets.

@aixnr
Last active January 16, 2024 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aixnr/d64268d0e63072365bf2d71c26e3bcce to your computer and use it in GitHub Desktop.
Save aixnr/d64268d0e63072365bf2d71c26e3bcce to your computer and use it in GitHub Desktop.
Typst Common Template
#set page("us-letter", margin: (x: 32pt, y: 32pt), columns: 2)
#set text(font: "Inter", size: 7pt)
#set par(leading: 1.25em, first-line-indent: 1em)
#show link: set text(blue)
// variable binding ------------------------------------------------------------
#let t_ored(body, fill: rgb("#ff4500")) = {
set text(fill)
[#body]}
#let t_fgreen(body, fill: rgb("#228b22")) = {
set text(fill)
[#body]}
#let t_mblue(body, fill: rgb("#191970")) = {
set text(fill)
[#body]}
#let t_bviolet(body, fill: rgb("#8a2be2")) = {
set text(fill)
[#body]}
#let phtx(text, color: rgb(238, 130, 238, 85)) = { highlight(fill: color)[#text] }
// document start --------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment