Simple and Functional Typst Note Template
This template is designed for efficient and organized note-taking with Typst. It provides a clean and straightforward structure, making it easy to capture and organize your thoughts without unnecessary complexity.
Usage
#import "@preview/xyznote:0.3.0": *
#show: xyznote.with(
title: "xyznote",
author: "wardenxyz",
abstract: "A simple typst note template",
createtime: "2024-11-27",
lang: "zh",
bibliography-style: "ieee",
preface: [], //Annotate this line to delete the preface page.
bibliography-file: bibliography("refs.bib"), //Annotate this line to delete the bibliography page.
)
Features
-
PDF Metadata: Includes fields for title, author and date.
-
Table of Contents: Automatically generated ToC for easy navigation through the document.
-
References (Optional): A dedicated section for citing sources and references. Include this only if you need it.
Custom styles
#tipbox[
contents
]
#markbox[
contents
]
#sectionline
This is #highlight(fill: blue.C)[highlighted in blue].
This is #highlight(fill: yellow.C)[highlighted in yellow].
This is #highlight(fill: green.C)[highlighted in green].
This is #highlight(fill: red.C)[highlighted in red].
#brainstorming[
This is a brainstorming.
]
#definition[
This is a definition.
]
#question[
This is a question.
]
#task[
This is a task.
]
#brainstorming(lang: "zh")[
This is a brainstorming.
]
#definition(lang: "zh")[
This is a definition.
]
#question(lang: "zh")[
This is a question.
]
#task(lang: "zh")[
This is a task.
]
Edit in the vscode(Recommended)
-
Install the Tinymist Typst extension in VS Code, which provides syntax highlighting, error checking, and PDF preview
-
Start the project
typst init @preview/xyznote:0.3.0
cd xyznote
code .
-
Press
Ctrl+K V
to open the PDF preview -
Click
Export PDF
at the top of the Typst file to export the PDF.
Edit in the Webapp
Click the Create project in app
button on the right to edit within the Webapp.
Acknowledgments
The following projects have been instrumental in providing substantial inspiration and code for this project.
https://github.com/gRox167/typst-assignment-template
https://github.com/DVDTSB/dvdtyp