How draldric/ualberta-thesis-latex-template works
1. Repository purpose
- This is not an application codebase; it is a LaTeX thesis template for the University of Alberta.
- The architecture is centered on one root document that assembles many modular .tex files into a thesis-ready PDF, including compliance-oriented front matter and appendices.
2. Top-level entrypoint
- ualberta.tex is the main build target and document orchestrator.
- It likely defines the thesis structure, selects degree/department options, and pulls in all chapter, prefatory, reference, and appendix files.
- ualberta.pdf is the generated reference output / guide, not a runtime artifact.
3. Document class boundary
- ualberta.cls is the custom class file that encodes the template’s core formatting behavior.
- This is the main architectural boundary: it centralizes thesis-wide rules such as layout, title page styling, page numbering, TOC/list generation, and PDF/A-related setup.
4. Shared configuration layer
- 00_LaTeX_Files/ contains reusable preamble and configuration fragments.
- These files split responsibilities into packages, macros, theorem settings, code-listing formatting, and academic-program selectors:
- includePackages.tex
- includeMacros.tex
- includeTheorems.tex
- listingCodeFormatting.tex
- selectDegree.tex
- selectDepartment.tex
- guidePackages.tex
- Architecturally, this is the template’s cross-cutting configuration layer used by the root document and class.
5. Front matter / prefatory subsystem
- 01_Prefatory/ holds thesis front matter components such as:
- Abstract
- Acknowledgements
- Acronyms
- Glossary
- Nomenclature
- Preface
- Quotes/Dedications
- These are separate content modules so the template can automatically assemble required preliminary pages in the proper order.
6. Core thesis chapters
- 02_Chapters/ contains the main pedagogical and structural content of the template:
- Introduction
- Getting Started
- Document Structure
- Figures/Tables
- Plots/Graphs
- Mathematical Equations
- Citations/References
- JabRef
- Submitting Your Thesis
- These files are examples and guidance material rather than thesis content, and they demonstrate how the template expects authors to organize their own writing.
7. Bibliography subsystem
- 03_References/References.bib is the central BibTeX database.
- The bibliography is managed as a separate concern from chapter text, reinforcing the template’s separation between prose content and citation data.
8. Appendix subsystem
- 04_Appendices/ provides example appendices for optional or advanced material:
- Additional figures/tables
- Code listings
- Included PDFs
- Math lettering
- This section demonstrates how supplementary material is integrated without polluting the main chapter flow.
9. Embedded sample assets
- 99_Inclusions/ is a small asset sandbox used by the examples:
- Code/ with C++ and MATLAB snippets
- Data/ with a sample data file
- PDFs/ with example PDF inclusions
- Images/ for figures
- These files are reference inputs for showing how external artifacts are imported into the thesis.
10. Data and content flow
- The compilation path is: root thesis file → class/configuration files → prefatory content → chapter content → bibliography → appendices → final PDF.
- Assets in 99_Inclusions/ are consumed by chapter/appendix examples to demonstrate figure, code, table, and PDF inclusion workflows.
11. Formatting and compliance focus
- The template’s architecture is driven by GPS thesis formatting compliance and PDF/A output.
- That means formatting behavior is not left to individual chapters; it is enforced centrally through the class and shared LaTeX fragments.
12. Tooling/runtime boundary
- The repo is designed for standard LaTeX environments such as Overleaf, TeX Live, and MiKTeX.
- The README recommends pdflatex as the primary compile engine, implying a conventional LaTeX toolchain with bibliography processing as needed.
13. What to draw in an architecture diagram
- Show ualberta.tex as the orchestrator.
- Show ualberta.cls and 00_LaTeX_Files/ as the formatting/control layer.
- Show 01_Prefatory/, 02_Chapters/, 04_Appendices/, and 03_References/ as content modules.
- Show 99_Inclusions/ as a shared assets store feeding examples across chapters and appendices.
Main entry points: ualberta.tex ualberta.tex · 0C_Code_Listings.tex Code listings · 04_Figures_Tables.tex Figures tables · 05_Plots_And_Graphs.tex Plots graphs
Components 34
Root
Main thesis entrypoint and generated output
- ualberta.tex · Main document that assembles the full thesis PDF
ualberta.tex
Formatting
Class and shared LaTeX configuration
- ualberta.cls · Custom thesis class defining global formatting and compliance rules
ualberta.cls - Packages · Shared package imports and baseline LaTeX setup
00_LaTeX_Files/includePackages.tex - Macros · Reusable commands and thesis-wide macros
00_LaTeX_Files/includeMacros.tex - Theorems · Theorem and proof environment setup
00_LaTeX_Files/includeTheorems.tex - Code format · Listings and source code presentation rules
00_LaTeX_Files/listingCodeFormatting.tex - Degree select · Degree-specific template options
00_LaTeX_Files/selectDegree.tex - Department select · Department-specific template options
00_LaTeX_Files/selectDepartment.tex - Guide packages · Package set for the user guide and examples
00_LaTeX_Files/guidePackages.tex
Front matter
Preliminary thesis sections
- Abstract · Summary page for the thesis
01_Prefatory/Abstract.tex - Thanks · Acknowledgements page
01_Prefatory/Acknowledgements.tex - Acronyms · List of abbreviations
01_Prefatory/Acronyms.tex - Glossary · Definitions of key terms
01_Prefatory/Glossary.tex - Nomenclature · Symbol and notation list
01_Prefatory/Nomenclature.tex - Preface · Author preface and context
01_Prefatory/Preface.tex - Quotes · Dedications and epigraph material
01_Prefatory/Quotes_Dedications.tex
Chapters
Guidance and example chapter content
- Introduction · Template introduction and overview
02_Chapters/01_Introduction.tex - Getting started · Setup and first steps for authors
02_Chapters/02_Getting_Started.tex - Structure · How the thesis is organized
02_Chapters/03_Document_Structure.tex - Figures tables · Including and referencing visual material
02_Chapters/04_Figures_Tables.tex - Plots graphs · Chart and plot workflows
02_Chapters/05_Plots_And_Graphs.tex - Math equations · Typesetting mathematics
02_Chapters/06_Mathematical_Equations.tex - Citations refs · Citation and bibliography usage
02_Chapters/07_Citations_And_References.tex - JabRef · Reference manager workflow guidance
02_Chapters/08_JabRef.tex - Submit thesis · Final submission guidance
02_Chapters/XX_Submitting_Your_Thesis.tex
References
Bibliography data
- References.bib · Central BibTeX source for citations
03_References/References.bib
Appendices
Supplementary example sections
- Extra figures · Supplementary figure examples
04_Appendices/0A_Additional_Figures.tex - Extra tables · Supplementary table examples
04_Appendices/0B_Additional_Tables.tex - Code listings · Code inclusion examples
04_Appendices/0C_Code_Listings.tex - PDF inserts · Included PDF examples
04_Appendices/0D_Including_PDFs.tex - Math lettering · Advanced math letter styles
04_Appendices/0X_Math_Lettering.tex
Assets
Sample code, data, figures, and PDFs
- C++ sample · Example source code used by listings demonstrations
99_Inclusions/Code/cCode.cpp - MATLAB sample · Example source code used by listings demonstrations
99_Inclusions/Code/matlabCode.m - Sample data · Example data file for figures and plots
99_Inclusions/Data/scattered_example.dat
Connections 35
- ualberta.tex → ualberta.cls: uses class · Main document is built on the custom thesis class
- ualberta.tex → Packages: loads · Root document pulls in shared package setup
- ualberta.tex → Macros: loads · Root document uses common macros
- ualberta.tex → Theorems: loads · Root document includes theorem environments
- ualberta.tex → Code format: loads · Root document applies code listing formatting
- ualberta.tex → Degree select: selects · Degree options are chosen from shared configuration
- ualberta.tex → Department select: selects · Department options are chosen from shared configuration
- ualberta.tex → Guide packages: loads · Guide-oriented package setup is available to the build
- ualberta.tex → Abstract: includes · Front matter is assembled by the root document
- ualberta.tex → Thanks: includes · Front matter is assembled by the root document
- ualberta.tex → Acronyms: includes · Front matter is assembled by the root document
- ualberta.tex → Glossary: includes · Front matter is assembled by the root document
- ualberta.tex → Nomenclature: includes · Front matter is assembled by the root document
- ualberta.tex → Preface: includes · Front matter is assembled by the root document
- ualberta.tex → Quotes: includes · Front matter is assembled by the root document
- ualberta.tex → Introduction: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Getting started: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Structure: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Figures tables: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Plots graphs: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Math equations: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Citations refs: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → JabRef: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → Submit thesis: includes · Template chapters are pulled into the thesis flow
- ualberta.tex → References.bib: bibliography · The root document points at the central BibTeX database
- ualberta.tex → Extra figures: includes · Appendices are appended by the root document
- ualberta.tex → Extra tables: includes · Appendices are appended by the root document
- ualberta.tex → Code listings: includes · Appendices are appended by the root document
- ualberta.tex → PDF inserts: includes · Appendices are appended by the root document
- ualberta.tex → Math lettering: includes · Appendices are appended by the root document
- Figures tables → Sample data: demonstrates · Figure/table examples can consume sample data assets
- Plots graphs → Sample data: demonstrates · Plot examples can consume sample data assets
- Code listings → C++ sample: demonstrates · Code listing appendix uses sample C++ source
- Code listings → MATLAB sample: demonstrates · Code listing appendix uses sample MATLAB source
- PDF inserts → ualberta.tex: compiled by · The full thesis flow culminates in the root build target