A clean and professional Typst template for note-taking and academic writing, designed for University of Granada (UGR) students and Spanish-speaking writers.
The template includes ready-to-use components for mathematical and technical content:
- Mathematical environments (definitions, theorems, propositions, proofs)
- Professional styling with UGR branding
- Support for code highlighting
- Automatic table of contents
- Author metadata with ORCID and GitHub links
- Academic year tracking
A compiled example PDF is available in the repository. Note: The PDF is not included in the package to reduce its size.
Set-Up
The template is pre-filled with sample content to demonstrate the available features. The output is generated by compiling main.typ.
After installing Typst, create a new project using:
typst init @preview/academi-notes-gr:0.1.0
Then edit the template parameters in main.typ:
#show: project.with(
title: "Your Title",
author: "Your Name",
academic-year: "Academic Year",
logo: image("UGR-Logo.png", width: 40%),
orcid: "https://orcid.org/xxxx-xxxx-xxxx-xxxx",
github: "https://github.com/your-username",
)
Template Parameters
title(string): Title of your document/notes.author(string): Name of the author.academic-year(string): Academic year or course information. Default:"Curso 2025-2026".logo(content): Logo image to display on the title page. Default:image("UGR-Logo.png", width: 40%). Passnoneto omit.orcid(string, optional): ORCID profile URL. If provided, will be displayed on the title page.github(string, optional): GitHub profile URL. If provided, will be displayed on the title page.body(content): Main document content.
Available Components
Mathematical Environments
The template provides several pre-configured mathematical environments:
Definition
#definicion("Name")[
Definition content here.
]
Theorem
#teorema("Name")[
Theorem statement here.
]
Proposition
#proposicion("Name")[
Proposition content here.
]
Proof
#demostracion[
Proof content here. The QED symbol ($square$) is automatically added.
]
English-language aliases (definition, theorem, proposition, proof) are also available.
Code Highlighting
Include code blocks with automatic syntax highlighting:
```rust
fn main() {
println!("Hello, world!");
}
```
Styling
The template uses a professional color scheme:
- Primary (Orange): Definitions and titles
- Secondary (Blue): Theorems and mathematical statements
- Accent (Green): Examples
- Background (Light Gray): Code blocks
- Proof Background (Light Blue): Proof environments
Features
- Professional UGR branding with institutional logo
- Automatic table of contents
- Running headers with page numbers
- Section numbering with 1.1 format
- Author metadata (ORCID, GitHub)
- Color-coded mathematical environments
- Code syntax highlighting
- Justified text alignment
- Responsive page layout (A4 format)
Usage Example
#import "@preview/academi-notes-gr:0.1.0": *
#show: project.with(
title: "Introduction to Probability Theory",
author: "Miguel Ángel De la Vega Rodriguez",
academic-year: "Curso 2025-2026",
logo: image("UGR-Logo.png", width: 40%),
github: "https://github.com/Miguevrgo",
)
= Chapter 1: Basic Concepts
== Probability Spaces
#definicion("Probability Space")[
A probability space is a triple $(Omega, cal(A), P)$ where:
- $Omega$: Sample space
- $cal(A)$: σ-algebra of events
- $P$: Probability measure with $P(Omega) = 1$
]
#teorema("Central Limit Theorem")[
For i.i.d. random variables $X_1, ..., X_n$ with mean $mu$ and variance $sigma^2$:
$ sqrt(n)(bar(X)_n - mu) / sigma arrow.r N(0,1) $
]
Customization
You can customize colors and styles by editing the colors dictionary in lib.typ:
#let colors = (
primary: rgb("#E67E22"), // Orange
secondary: rgb("#3498DB"), // Blue
accent: rgb("#2ECC71"), // Green
text: rgb("#2C3E50"), // Dark gray
code-bg: rgb("#F4F6F6"), // Light gray
proof-bg: rgb("#EBF5FB"), // Light blue
)
License
This template is released under the MIT License. See LICENSE file for details.
The UGR-Logo.png file is the official logo of the University of Granada. It is included for educational and demonstration purposes. Users who redistribute this template should be aware that the UGR logo is a registered trademark of the Universidad de Granada and its use may be subject to institutional guidelines.
Support
For issues, feature requests, or improvements, please visit the GitHub repository.