Compare commits
2 Commits
2d79994f43
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
5a290913a2
|
|||
|
9315fd36fd
|
1
functions/code.typ
Normal file
1
functions/code.typ
Normal file
@@ -0,0 +1 @@
|
||||
#let code = raw.with(block: true)
|
||||
@@ -1,4 +1,6 @@
|
||||
#let document(
|
||||
#import "functions/code.typ": code
|
||||
|
||||
#let default(
|
||||
title: "This is a title",
|
||||
authors: ((
|
||||
name: "Yi-Ting Shih",
|
||||
@@ -11,6 +13,8 @@
|
||||
set page(
|
||||
paper: "a4",
|
||||
margin: (x: 1.8cm, y: 1.5cm),
|
||||
header: align(right, title),
|
||||
numbering: "1",
|
||||
)
|
||||
set text(
|
||||
font: "Libertinus serif",
|
||||
@@ -30,12 +34,13 @@
|
||||
numbering: "1."
|
||||
)
|
||||
|
||||
// Raw default
|
||||
show raw: set text(
|
||||
font: "Consolas",
|
||||
size: 8pt,
|
||||
)
|
||||
// Code section default
|
||||
show raw: self => {
|
||||
set text(
|
||||
font: "Consolas",
|
||||
size: 8pt
|
||||
)
|
||||
show raw.where(block: true): self => {
|
||||
block(
|
||||
fill: luma(240),
|
||||
inset: 8pt,
|
||||
Reference in New Issue
Block a user