0cc8781f493aa0a3090bb62efe1825b33a0da994
Typst Templates
A collection of Typst templates for creating professional Persian (RTL) reports for Kimia Razi.
Templates
This repository contains three templates:
Paper Template (paper_template.typ)
A general working-paper / report template (based on the SSRN paper layout). It exposes a paper function with:
- Persian (RTL) layout with custom fonts (
IRNazanin,IRZar,IRLotus) - A rotated sidebar background showing company, title, destinations, and page number
- A logo header that appears from the second page onward
- Configurable
title,subtitle,company,authors,destinations,purpose, anddate - Numbered headings, equations, and footnotes
Product Test Template (product_test_template.typ)
A template for raw-material / product test reports. It builds on the paper function and adds helper functions for tabular results:
general_info_table(...)– general report information (dates, sample type, count, supplier)received_samples_table(rows)– structured table of received samplessample_section(...)/sample_entry(...)– per-sample heading and info blockstest_result_table(cols)/pigment_result_block(name, rows)– non-breakable result tables grouped per sample
Travel Report Template (travel-report-template.typ)
A template for mission / travel reports. It exposes a report function and a report-table helper with:
- Persian (RTL) layout with fonts loaded from
template_files/ - A title block with company, subtitle, and logo
- A general-info section (destination, purpose, team, date)
- A rotated sidebar background with destinations, authors, and page number
Examples
main.product-test-example.typ– a completed product test report (Esmaltes pigments) usingproduct_test_template.typmain.travel-report-example.typ– a completed mission report usingtravel-report-template.typ
Usage
Product test report
#import "product_test_template.typ": *
#show: paper.with(
title: "گزارش تست مواد اولیه",
subtitle: "دپارتمان جوهر",
authors: ((name: "نام نویسنده"),),
date: "۱۴۰۵/۰۱/۲۴",
)
= اطلاعات کلی
#general_info_table("۱۴۰۵/۰۱/۱۷", "۱۴۰۵/۰۱/۲۴", "پیگمنت", "۹", "Esmaltes")
Travel report
#import "travel-report-template.typ": report, report-table
#show: report.with(
title: "گزارش مأموریت",
destinations: ((name: "کاشی آسیا"),),
purpose: "تست آزمایشی جوهرها",
date: "۰۵/۰۲/۲۷",
)
= گزارش مأموریت
متن گزارش ...
Installation
Clone this repository to use the templates:
git clone ssh://git@git.faryad.top:2222/rhino/typst-templates.git
Requirements
- Typst - Install from https://github.com/typst/typst
- Persian fonts (
IRNazanin,IRZar,IRLotus). The travel report template loads fonts fromtemplate_files/; compile with--font-path template_files.
Contributing
Feel free to submit issues and enhancement requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Languages
Typst
100%