tweak paragraph and epigraph
This commit is contained in:
		
							parent
							
								
									4c065799f7
								
							
						
					
					
						commit
						2af94a6c61
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
					@ -8,16 +8,18 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ------------ FORMATING ------------
 | 
					// ------------ FORMATING ------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#let paragraph(title) = [#title #h(1em)]
 | 
					#let paragraph(title, body) = [_ #title _ #h(1em) #body]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#let epigraph(attribution, body) = align(right, box(width: 50%)[
 | 
					#let epigraph(attribution, body) = align(center, {
 | 
				
			||||||
  #set align(left)
 | 
					  quote(
 | 
				
			||||||
  #quote(
 | 
					 | 
				
			||||||
    block: true,
 | 
					    block: true,
 | 
				
			||||||
    attribution: attribution, 
 | 
					    attribution: attribution, 
 | 
				
			||||||
    body
 | 
					    body
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
])
 | 
					  v(.7cm)
 | 
				
			||||||
 | 
					  line(length: 100%, stroke: .2mm)
 | 
				
			||||||
 | 
					  v(.7cm)
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#let highlight(fill: luma(230), content) = {
 | 
					#let highlight(fill: luma(230), content) = {
 | 
				
			||||||
  block(
 | 
					  block(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue