Last active
January 16, 2024 04:49
-
-
Save aixnr/d64268d0e63072365bf2d71c26e3bcce to your computer and use it in GitHub Desktop.
Typst Common Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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