add bibliography support

This commit is contained in:
2025-06-10 23:12:38 +01:00
parent 2f822d0d20
commit 5cdac81b01
3 changed files with 12 additions and 13 deletions

View File

@ -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")

7
references.bib Normal file
View File

@ -0,0 +1,7 @@
@book{martin2009clean,
title={Clean Code: A Handbook of Agile Software Craftsmanship},
author={Martin, Robert C.},
year={2009},
publisher={Prentice Hall},
isbn={0-13-235088-0},
}

View File

@ -1,7 +0,0 @@
# https://typst.app/docs/reference/model/bibliography/
example-source:
type: Web
author: "Bob"
title: Example web source
url: https://example.org/