add bibliography support
This commit is contained in:
9
main.typ
9
main.typ
@@ -18,7 +18,7 @@
|
|||||||
body
|
body
|
||||||
) = {
|
) = {
|
||||||
// === DOCUMENT SETUP ===
|
// === 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 text(font: ("Fira Sans", "Helvetica", "Arial", "Roboto") // Custom font can be set here
|
||||||
set par(justify: true)
|
set par(justify: true)
|
||||||
show link: underline
|
show link: underline
|
||||||
@@ -108,7 +108,6 @@
|
|||||||
#show: report.with(
|
#show: report.with(
|
||||||
title: "Algorithms for Lightsaber Dueling",
|
title: "Algorithms for Lightsaber Dueling",
|
||||||
author: "Anakin Skywalker",
|
author: "Anakin Skywalker",
|
||||||
group_name: "Jedi Order Research Group", // Added for completeness
|
|
||||||
unit_type: "Full Unit",
|
unit_type: "Full Unit",
|
||||||
report_type: "Final Report",
|
report_type: "Final Report",
|
||||||
course_name: "BSc (Hons) in Computer Science",
|
course_name: "BSc (Hons) in Computer Science",
|
||||||
@@ -126,9 +125,7 @@
|
|||||||
#lorem(20)
|
#lorem(20)
|
||||||
|
|
||||||
== Citation
|
== Citation
|
||||||
This is something stated from a source.
|
This is something stated from a source. @martin2009clean
|
||||||
// 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.
|
|
||||||
|
|
||||||
|
|
||||||
== Tables
|
== Tables
|
||||||
@@ -166,3 +163,5 @@ $ a^2 + b^2 = c^2 $
|
|||||||
|
|
||||||
Prove by induction:
|
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
7
references.bib
Normal 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},
|
||||||
|
}
|
@@ -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/
|
|
Reference in New Issue
Block a user