add bibliography support
This commit is contained in:
		
							
								
								
									
										11
									
								
								main.typ
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								main.typ
									
									
									
									
									
								
							@@ -18,7 +18,7 @@
 | 
			
		||||
  body 
 | 
			
		||||
) = {
 | 
			
		||||
  // === DOCUMENT SETUP ===
 | 
			
		||||
  set document(title: [#title - #group_name], author: author)
 | 
			
		||||
  set document(title: [#title], author: author)
 | 
			
		||||
  // set text(font: ("Fira Sans", "Helvetica", "Arial", "Roboto") // Custom font can be set here
 | 
			
		||||
  set par(justify: true)
 | 
			
		||||
  show link: underline
 | 
			
		||||
@@ -108,7 +108,6 @@
 | 
			
		||||
#show: report.with(
 | 
			
		||||
  title: "Algorithms for Lightsaber Dueling",
 | 
			
		||||
  author: "Anakin Skywalker",
 | 
			
		||||
  group_name: "Jedi Order Research Group", // Added for completeness
 | 
			
		||||
  unit_type: "Full Unit",
 | 
			
		||||
  report_type: "Final Report",
 | 
			
		||||
  course_name: "BSc (Hons) in Computer Science",
 | 
			
		||||
@@ -126,9 +125,7 @@
 | 
			
		||||
#lorem(20)
 | 
			
		||||
 | 
			
		||||
== Citation
 | 
			
		||||
This is something stated from a source. 
 | 
			
		||||
// The citation @example-source was removed because the bibliography is currently disabled.
 | 
			
		||||
// You will need to add an entry for "example-source" in your "references.yml" file.
 | 
			
		||||
This is something stated from a source. @martin2009clean
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
== Tables
 | 
			
		||||
@@ -165,4 +162,6 @@ Then, we know that:
 | 
			
		||||
$ a^2 + b^2 = c^2 $
 | 
			
		||||
 | 
			
		||||
Prove by induction:
 | 
			
		||||
$ sum_(k=1)^n k = (n(n+1)) / 2 $
 | 
			
		||||
$ sum_(k=1)^n k = (n(n+1)) / 2 $
 | 
			
		||||
 | 
			
		||||
#bibliography("references.bib")
 | 
			
		||||
		Reference in New Issue
	
	Block a user