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