0b8ceda4f1874f236fd154fbfa5b18add1c44cfe
feat!: make authors.*.edu_program optional, derive it from edu_program_short instead docs: minor changes to readme and lab template
Typst Template for NURE Works
General Info
This project contains two template functions and some utilities for writing NURE works. All functions include documentation comments inside them, so you can explore all possibilities using LSP.
Templates
pz-lb-template
- For Laboratory and Practical Works
This template:
- Sets up document styles;
- Formats the title page according to NURE guidelines.
cw-template
- For Course Works
This template:
- Sets up document styles;
- Formats the title, task, calendar plan, and abstract pages;
- Typesets the bibliography, outline, and appendices according to standard requirements.
Utilities
nheading
- For unnumbered headings, such as "Introduction" and "Conclusion".hfill
- Fills horizontal space with a filled box instead of just empty space; useful for creating underlines.uline
- Creates underlined fields that need to be filled, such as the name field on the task list.bold
- Inserts bold text inside functional environments.img
- Inserts images with a caption, automatically deriving the label from the image file name.
Usage
As a local typst package
- Clone this repository into ~/.local/share/typst/packages/:
git clone https://gitea.linerds.us/pencelheimer/typst_nure_template.git ~/.local/share/typst/packages/local/nure/0.0.0
- Init your project with Typst:
typst init @local/nure:0.0.0 project-name
As a file in your project
Include lib.typ in your project and utilize the provided functions:
// Import the template either from a local package...
#import "@local/nure:0.0.0": *
// ...or by importing a lib.typ directly from a project's root directory
// #import "lib.typ": *
// Setup the document
#show: pz-lb-template.with(
title: "Some title",
// etc: "and so on",
// ...
)
// this template automatically inserts a `=title`
// Write your content
#v(-spacing) // remove spacing between headings
== Purpose
Some text
Notes:
- Use
#v(-spacing)
to remove vertical spacing between titles (this cannot be automatically handled by the template). Variablespacing
used here is imported from the template.
Example Project Structure
project-folder/
├── main.typ
├── template.typ
├── images/
│ ├── figure1.png
│ ├── figure2.png
│ ├── ...
├── ...
Languages
Typst
100%