23 lines
		
	
	
		
			785 B
		
	
	
	
		
			Typst
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			785 B
		
	
	
	
		
			Typst
		
	
	
	
	
	
| #let han_header_font = ("linux libertine", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans CN")
 | |
| #let han_main_font = ("linux libertine", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans CN")
 | |
| 
 | |
| #let tab = h(2em)
 | |
| #let halftab = h(1em)
 | |
| 
 | |
| #let italic(body) = text(style: "italic", body)
 | |
| #let mtext(body) = text(font: han_main_font, weight: "regular", body)
 | |
| 
 | |
| #let initdocument(title: "", papersize: "a4", body) = {
 | |
| 	set document(title: title)
 | |
| 	set text(font: han_main_font, lang: "zh")
 | |
| 	set page(paper: papersize, margin: 2cm)
 | |
| 
 | |
| 	show par: set block(above: 1.2em, below: 1.2em)
 | |
| 	show heading: set text(font: han_header_font, weight: "semibold")
 | |
| 	set list(marker: (sym.square.filled.small, [--]), indent: .5em)
 | |
| 	set par(leading: 0.75em)
 | |
| 	set par(justify: true)
 | |
| 	set text(13pt)
 | |
| 	body
 | |
| }
 |