summaryrefslogtreecommitdiff
path: root/src/final/main.typ
diff options
context:
space:
mode:
authorCaptainJack2491 <jayrupnakawala@gmail.com>2025-10-28 19:50:29 +0000
committerCaptainJack2491 <jayrupnakawala@gmail.com>2025-10-28 19:50:29 +0000
commit08b4091132b05f200d8deb25ec868ce78422f206 (patch)
tree50ec2ecafb8bfc025cc834b3e17fcb21ce57195b /src/final/main.typ
Initial commit: Set up project structure
Diffstat (limited to 'src/final/main.typ')
-rw-r--r--src/final/main.typ61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/final/main.typ b/src/final/main.typ
new file mode 100644
index 0000000..31c8050
--- /dev/null
+++ b/src/final/main.typ
@@ -0,0 +1,61 @@
+// 1. Define or import the title page function
+#let title-page(title:[], subtitle:[], name:[], studentid:[], body) = {
+ // Use `auto` for page dimensions unless you need fixed sizes
+ // set page(width: auto, height: auto, margin: (top: 1.5in, rest: 1in)) // Adjusted margins
+ set text(size: 12pt) // Set base size for body, adjust locally
+ // Define title page specific layout
+ align(horizon + left)[
+ #line(length: 100%, stroke: 2pt)
+ #v(1em)
+ #text(size: 24pt, weight: "bold", title)
+ #v(1em)
+ #text(size: 18pt, subtitle)
+ #v(3em) // More space before name
+ #text(size: 14pt, name)
+ #v(0.5em)
+ #text(size: 14pt, studentid)
+ #v(1fr) // Push content down if needed
+ ]
+ pagebreak() // Ensures body starts on a new page
+ // Reset text size for the main body content
+ set text(size: 12pt)
+ // Apply heading numbering for the rest of the document here or after preface
+ set heading(numbering: "1.1")
+ body // This is where the included content will go
+}
+
+// 2. Apply the show rule using the function
+#show: body => title-page(
+ title: [Testing In-Context Sleeper Agents: Challenges in Detecting Hidden Goal Pursuit], // Your updated title
+ subtitle: [Dissertation (CN6000)],
+ name: "Jayrup Nakawala",
+ studentid: "u2613621",
+ body // Pass the actual document body through
+)
+
+// --- Document Content Starts Here ---
+
+// 3. Include preface content (Abstract, Acknowledgements, ToC)
+#include "preface.typ"
+
+// 4. Include main chapters
+#include "intro.typ" // Introduction
+#include "lit.typ" // Literature Review
+#include "methodology.typ" // Methodology
+#include "results.typ" // Results
+#include "analysis.typ" // Analysis
+#include "conclusion.typ" // Conclusion
+
+// 5. Include Bibliography (if in separate file or define here)
+// #bibliography("references.bib")
+
+// Title page
+// Contents
+// = C1: Introduction
+// = C2: Literature Review
+// = C3: Methodology
+// = C4: Results
+// = C5: Analysis
+// = C6: Conclusion
+// References
+// Appendices