Compare commits

..

20 Commits

Author SHA1 Message Date
4ac89d6b0f Update product test template 2026-07-07 13:42:59 +03:30
4274c215ca Add tinymist skill to use it instead of downloading typst 2026-07-07 13:26:45 +03:30
4c79d7c6e4 Refactor heading display logic in product test template 2026-07-07 13:25:54 +03:30
2e997ff366 Add commit message guidelines for concise and effective writing 2026-07-01 14:38:46 +03:30
f647e0cd6d Enhance product test template with improved font management, structured header, and refined table layouts 2026-07-01 14:38:24 +03:30
f35bb0afde Add structured tables for test conditions and ink formula in product test template. 2026-06-30 14:26:10 +03:30
0cc8781f49 Refactor templates for consistency and clarity. 2026-06-30 14:01:02 +03:30
46a1d1255c Update README to reflect new templates and usage examples. 2026-06-30 13:30:01 +03:30
bd7c8e6459 Add .gitignore and stop tracking local Typst report files.
Keep main.typ and generated PDFs out of version control as local working artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 01:25:42 +03:30
2b33c8bd36 Add product test template and pigment color measurement data.
Include a reusable Typst report template and reference CSV, and recommend the CSV editor extension for the workspace.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 01:24:46 +03:30
6e7a8a142c added more template files 2026-06-17 09:57:35 +00:00
038466563b added template files 2026-06-17 09:56:49 +00:00
037ab625de added travel report example and its template file 2026-06-17 09:54:58 +00:00
2a00e4cb2b added templete for tables without breaking to two pages 2026-01-06 14:25:36 +03:30
d719b429b5 Added rtl text sample 2026-01-05 14:53:49 +03:30
f35748b7d7 added extension for csv 2026-01-04 14:13:03 +00:00
a75ed47886 place department name between company and title 2025-12-21 12:22:25 +03:30
3c7fa073e9 Add MIT License 2025-12-15 08:20:00 +00:00
a45de8b716 Add comprehensive README documentation 2025-12-15 08:20:00 +00:00
d18f6dbfbe Initial commit 2025-12-15 08:20:00 +00:00
23 changed files with 1089 additions and 149 deletions

View File

@@ -0,0 +1,39 @@
---
name: commit-messages
description: >-
Write short git commit messages, preferably under 20 words. Use when drafting
commits, writing commit messages, amending commits, or creating pull request
titles and summaries.
---
# Commit Messages
Keep commit messages **short**. Prefer **under 20 words** total.
## Rules
1. **One line** — subject only; no body unless the user asks for one.
2. **Imperative mood** — "Add table", not "Added table" or "Adds table".
3. **Say what changed** — lead with the action; drop filler ("this commit", "in order to").
4. **No lists** — one change per commit when possible; if many changes, summarize the main one.
5. **Count words** before committing; trim if over 20.
## Format
```
<verb> <what> [<optional context>]
```
Optional conventional prefix when it helps: `feat:`, `fix:`, `refactor:`, `docs:`.
## Examples
| Bad (too long) | Good |
|---|---|
| Add structured tables for test conditions and ink formula in product test template. | Add horizontal ink formula table |
| Refactor templates for consistency and clarity across travel and product test reports. | Align product test header with travel template |
| Update README to reflect new templates and usage examples for both report types. | Update README with template examples |
## PR titles
Apply the same limit to PR titles. PR body can be slightly longer but keep the summary to 1–3 short bullets.

View File

@@ -0,0 +1,49 @@
---
name: tinymist
description: >-
Compile and check Typst documents in this project with tinymist, not typst-cli.
Use when compiling .typ files, checking Typst errors, or validating report output.
---
# Use Tinymist for Typst
Always use **tinymist**, never `typst` CLI. Do not download or install typst.
## Binary
```bash
/home/diaco/.local/bin/tinymist
```
Fallback: `tinymist` if on PATH.
## Compile
From project root:
```bash
tinymist compile --font-path template_files main.typ main.pdf
```
Other entry points:
```bash
tinymist compile --font-path template_files main.travel-report-example.typ
tinymist compile --font-path template_files main.product-test-example.typ
```
Always pass `--font-path template_files` (fonts: `IRNazanin`, `IRZar`).
## Check errors
Use `tinymist compile` — errors print to stderr. For a quick pass/fail:
```bash
tinymist test main.typ
```
## Do not
- Run `typst compile`
- Download typst from GitHub releases
- Install typst via cargo unless the user explicitly asks

41
.gitignore vendored Normal file
View File

@@ -0,0 +1,41 @@
# Typst build artifacts
*.pdf
main.typ
# Typst cache / packages (local)
.typst-cache/
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon?
._*
# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
Desktop.ini
$RECYCLE.BIN/
# Linux
*~
.fuse_hidden*
.directory
.Trash-*
# Editor / IDE
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea/
*.swp
*.swo
# Temp / backup files
*.tmp
*.temp
*.bak
*.log

View File

@@ -1,6 +1,7 @@
{
"recommendations": [
"aminadav.rtl-editor",
"myriad-dreamin.tinymist"
"myriad-dreamin.tinymist",
"repreng.csv"
]
}

10
.zed/settings.json Normal file
View File

@@ -0,0 +1,10 @@
{
"lsp": {
"tinymist": {
"settings": {
"exportPdf": "onSave",
"outputPath": "$root/$dir/$name"
}
}
}
}

14
Color measurement.csv Normal file
View File

@@ -0,0 +1,14 @@
Pigment Color,Pigment Provider,Pigment Code,Doc. Ref.,KR Int Ref,Lab Int Ref,Glaze,Temperature,L*,a*,b*,Surface Texture,Notes
Blue,Std,K301,,,,CPO4760,1150,32.8,4.9,-36.4,Matt,Cobalt Aluminate
Blue,Yasna,121,106,1576,PI-BL46,CPO4760,1150,28.8,6.1,-30.6,,
Blue,Std,K315,,,,CPO4760,1150,28.1,6.8,-31.8, ,Cobalt Silicate
Beige,Std,OC860A,,,,CPO4760,1150,44.5,21.5,42,,
Beige,Yasna,716,107,1577,PI-BG27,CPO4760,1150,44.8,19.3,46.5,,
Beige,Std,MAR3-4,,,,CPO4760,1150,42.4,19.6,40.1,,
Red Brown,Std,OC858A,,,,CPO4760,1150,20.5,24.9,21.4,,
Red Brown,Std,OL3009,,,,CPO4760,1150,22.2,24.6,20.9,,
Red Brown,Yasna,703,105,1575,PI-RBR20,CPO4760,1150,21.7,24.7,21,,
Yellow,Std,HC30901D,,,,CPO4760,1150,71.5,-6.9,36.9,,
Yellow,Yasna,421,104,1574,PI-Y31,CPO4760,1150,69.3,-4.8,28.4,,
Black,Std,KER-6065,,,,CPO4760,1150,21.6,-0.6,2.1,,
Black,Yasna,928,108,1578,PI-BK29,CPO4760,1150,24,2.5,0.1,,
1 Pigment Color Pigment Provider Pigment Code Doc. Ref. KR Int Ref Lab Int Ref Glaze Temperature L* a* b* Surface Texture Notes
2 Blue Std K301 CPO4760 1150 32.8 4.9 -36.4 Matt Cobalt Aluminate
3 Blue Yasna 121 106 1576 PI-BL46 CPO4760 1150 28.8 6.1 -30.6
4 Blue Std K315 CPO4760 1150 28.1 6.8 -31.8 Cobalt Silicate
5 Beige Std OC860A CPO4760 1150 44.5 21.5 42
6 Beige Yasna 716 107 1577 PI-BG27 CPO4760 1150 44.8 19.3 46.5
7 Beige Std MAR3-4 CPO4760 1150 42.4 19.6 40.1
8 Red Brown Std OC858A CPO4760 1150 20.5 24.9 21.4
9 Red Brown Std OL3009 CPO4760 1150 22.2 24.6 20.9
10 Red Brown Yasna 703 105 1575 PI-RBR20 CPO4760 1150 21.7 24.7 21
11 Yellow Std HC30901D CPO4760 1150 71.5 -6.9 36.9
12 Yellow Yasna 421 104 1574 PI-Y31 CPO4760 1150 69.3 -4.8 28.4
13 Black Std KER-6065 CPO4760 1150 21.6 -0.6 2.1
14 Black Yasna 928 108 1578 PI-BK29 CPO4760 1150 24 2.5 0.1

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Rhino
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

113
README.md Normal file
View File

@@ -0,0 +1,113 @@
# 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`, and `date`
- 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 samples
- `sample_section(...)` / `sample_entry(...)` – per-sample heading and info blocks
- `test_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) using `product_test_template.typ`
- `main.travel-report-example.typ` – a completed mission report using `travel-report-template.typ`
## Usage
### Product test report
```typst
#import "product_test_template.typ": *
#show: paper.with(
title: "گزارش تست مواد اولیه",
subtitle: "دپارتمان جوهر",
authors: ((name: "نام نویسنده"),),
date: "۱۴۰۵/۰۱/۲۴",
)
= اطلاعات کلی
#general_info_table("۱۴۰۵/۰۱/۱۷", "۱۴۰۵/۰۱/۲۴", "پیگمنت", "۹", "Esmaltes")
```
### Travel report
```typst
#import "travel-report-template.typ": report, report-table
#show: report.with(
title: "گزارش مأموریت",
destinations: ((name: "کاشی آسیا"),),
purpose: "تست آزمایشی جوهرها",
date: "۰۵/۰۲/۲۷",
)
= گزارش مأموریت
متن گزارش ...
```
### Installation
Clone this repository to use the templates:
```bash
git clone ssh://git@git.faryad.top:2222/rhino/typst-templates.git
```
### Requirements
- [Typst](https://typst.app/) - Install from [https://github.com/typst/typst](https://github.com/typst/typst)
- Persian fonts (`IRNazanin`, `IRZar`, `IRLotus`). The travel report template loads fonts from `template_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](LICENSE) file for details.

View File

@@ -0,0 +1,124 @@
#import "product_test_template.typ": *
#set text(lang: "fa")
#show: paper.with(
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
),
date: "۲۲ تا ۴/۶/۲۶",
destinations: (
(name: " نتايج تست پيگمنت‌های شرکت اسمالتس"),
),
purpose: "بازدید و بررسی وضعیت",
)
// Your main content goes here
\
= اطلاعات کلی
#general_info_table(
"۱۴۰۵/۰۱/۱۷",
"۱۴۰۵/۰۱/۲۴",
"پیگمنت",
"۹",
"Esmaltes",
)
\
== نمونه‌های دریافت شده
#received_samples_table((
("پیگمنت زرد", "CLCE-539/1", "PI-Y36", "2"),
("پیگمنت قهوه‌ای", "CLCE-539/2", "PI-DBR3", "3"),
("پیگمنت بژ", "CLCE-539/3", "PI-BG31", "4"),
("پیگمنت بژ", "CLCE-539/4", "PI-BG32", "5"),
("پیگمنت آبی", "CLCE-539/5", "PI-BL53", "6"),
("پیگمنت آبی", "CLCE-539/6", "PI-BL54", "7"),
("پیگمنت مشکی", "CLCE-539/7", "PI-BK38", "8"),
("پیگمنت مشکی", "CLCE-539/8", "PI-BK39", "9"),
("پیگمنت صورتی", "CLCE-539/9", "PI-P26", "10"),
))
\
#colbreak()
== تست‌های انجام شده
با استفاده از این پیگمنت‌ها نمونه جوهر ساخته و در کنار نمونه آزمایشگاهی ساخته شده با پیگمنت استاندارد کیمیا رازی با شرایط زیر تست شد.
- روش اعمال: قطره‌ای
- لعاب: سه لعاب مختلف (براق و مات)
- دمای پخت: ۱۰۳۰، ۱۱۵۰ و ۱۱۸۰ °C
- مرجع مقایسه: پیگمنت استاندارد کیمیا رازی
\
فرمول نمونه جوهر بر اساس درصد وزنی:
#ink_formula_table((
("پیگمنت", 30),
("حلال", 60),
("دیسپرسانت", 10),
))
\
تست‌ها شامل:
- بررسی کیفیت سطح
- شدت رنگ
- تم رنگ
// تست پایداری جوهر در مقابل رسوب‌گذاری و ته‌نشینی نیز انجام شده است.
#colbreak()
\
== نتایج تست‌ها
// وضعیت نمونه‌های پیگمنت تست شده در مقایسه با نمونه استاندارد کیمیا رازی:
#columns(2, gutter: 8pt)[
#pigment_result_block("پیگمنت زرد", (
([*معیار*], [*CLCE-539/1*]),
([کیفیت سطح], [خوب]),
([تم رنگ], [چرک]),
([شدت رنگ], [خوب]),
([نتیجه نهایی], [نامناسب (تم چرک)]),
))
#pigment_result_block("پیگمنت قهوه‌ای", (
([*معیار*], [*CLCE-539/2*]),
([کیفیت سطح], [خوب]),
([تم رنگ], [خوب]),
([شدت رنگ], [کمتر]),
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)]),
))
\
#pigment_result_block("پیگمنت بژ", (
([*معیار*], [*CLCE-539/3*], [*CLCE-539/4*]),
([کیفیت سطح], [خوب], [خوب]),
([تم رنگ], [خوب], [خوب]),
([شدت رنگ], [خوب], [خوب]),
([نتیجه نهایی], [متفاوت از رفرنس], [متفاوت از رفرنس]),
))
#pigment_result_block("پیگمنت آبی", (
([*معیار*], [*CLCE-539/5*], [*CLCE-539/6*]),
([کیفیت سطح], [خوب], [خوب]),
([تم رنگ], [خوب], [تم سایان]),
([شدت رنگ], [کمتر], [خوب]),
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)], [مناسب برای سایان]),
))
\
#pigment_result_block("پیگمنت مشکی", (
([*معیار*], [*CLCE-539/7*], [*CLCE-539/8*]),
([کیفیت سطح], [خوب], [خوب]),
([تم رنگ], [قهوه‌ای], [خوب]),
([شدت رنگ], [کمتر], [کمتر]),
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)], [نامناسب (شدت رنگ کمتر)]),
))
\
=== پیگمنت صورتی
به دلیل موجود کافی در انبار تست این پیگمنت به زمان دیگری موکول شد.
]
\
== جمع بندی نتايج
- بین پیگمنت‌های بژ، نمونه CLCE-539/3 مشابه پیگمنت OC860A و نمونه CLCE-539/4 زردتر از آن است.
- در پیگمنت‌های آبی، نمونه CLCE539/5 مشابه کد ICK12/K315 و نمونه CLCE539/6 دارای تم سایان است.
\
== پیشنهادات
هیچ کدام از پیگمنت‌ها برای انجام تست صنعتی در نظر گرفته نشد ولی در صورت بروز مشکل در تأمین پیگمنت‌های مصرفی کنونی، می‌توان این نمونه‌ها را به عنوان کاندید جایگزینی در نظر گرفت.
\
\
== نظر مدیر کارخانه

View File

@@ -0,0 +1,116 @@
#import "travel-report-template.typ": report, report-table
#show: report.with(
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
),
date: "شروع: ۰۵/۰۲/۲۷ پایان: ۰۵/۰۲/۲۸",
destinations: (
(name: "کاشی آسیا"),
),
purpose: "تست آزمایشی جوهرهای کیمیا رازی برای خط پولیش/پرسلان",
)
// ===== CONTENT SECTIONS =====
= گزارش مأموریت
این شرکت دو کوره برای کاشی کف و یک کوره برای پرسلان و پولیشی دارد و تولید روزانه آن حدود ۱۲ هزار متر مربع است. چهار ماشین چاپ دیجیتال دارد. دستگاه Tecnoferrari با هدهای ۱۰۰۲ و Xaar ۱۰۰۳ و دو دستگاه NKT با هدهای Xaar ۲۰۰۲.
سه دستگاه خط ۱، ۲ و ۳ با جوهر کیمیا رازی کار می‌کند
- #box(width: 2.5cm)[آبی:] KRCY-1100T
- #box(width: 2.5cm)[قهوه‌ای:] KRBR-1200T
- #box(width: 2.5cm)[عسلی:] KRHN-1700T
- #box(width: 2.5cm)[مشکی:] KRBK-1300T
و یک دستگاه (خط ۴) از اسفند سال گذشته با ترکیب کیمیا رازی و اینکرا
- #box(width: 2.5cm)[آبی کیمیا رازی:] KRCY-1100T
- #box(width: 2.5cm)[قهوه‌ای اینکرا:] IK-RB715
- #box(width: 2.5cm)[زرد طلایی اینکرا:] IK-YE328
- #box(width: 2.5cm)[مشکی اینکرا:] IK-BK913G
در خط ۴ دمای کوره تا حدود ۱۲۲۰ درجه سانتیگراد بالا برده شده و به همین دلیل، شدت رنگ جوهرها کاهش یافته است. برای بهبود کیفیت چاپ، جوهرهای جدید با شدت رنگ و پایداری بیشتر در دمای بالا در نظر گرفته شده‌اند که در این گزارش، نتایج تست‌های اولیه آن‌ها ارائه شده است.
== شرایط تست
نمونه‌ها در شرایط زیر روی لعاب مات پرسلان در کوره خط ۴ تست شدند:
- #box(width: 2.6cm)[دما:] #text(dir: ltr, "1217 °C")
- #box(width: 2.6cm)[سیکل:] #text(dir: ltr, "75'")
- #box(width: 2.6cm)[لعاب:] مات پرسلان
- #box(width: 2.6cm)[غلظت نمونه:] ۳٪ وزنی
- #box(width: 2.6cm)[مقدار اعمال شده:] #text(dir: ltr, "400 µL")
// ===== RESULTS SECTIONS =====
\
#align(center, line(length: 100%))
= نتایج
#columns(2, gutter: 1cm)[
== قهوه‌ای
#report-table(
columns: (1.3fr, 2.2fr),
[*کد نمونه*],
[*نتیجه*],
[KRBR-1201T],
[شدت رنگ بیشتر],
[KRBR-1202T],
[شدت رنگ بیشتر],
[ICJ/408],
[شدت رنگ بیشتر],
)
بین نمونه‌های قهوه‌ای، ICJ/408 بیشترین شدت رنگ را دارد. کد KRBR-1202T به نمونه رفرنس نزدیک‌تر است.
== زرد طلایی
#report-table(
columns: (1.3fr, 2.2fr),
[*کد نمونه*],
[*نتیجه*],
[KRBG-1600T],
[تم رنگ تیره‌تر],
[KRHN-1700T],
[تم رنگ تیره‌تر],
[KRGY-1900T],
[تم رنگ تیره‌تر],
[KRGY-1901T],
[مشابه رفرنس (کمی تیره‌تر)],
[KRYL-1400T],
[زردی بیشتر],
)
#colbreak()
== مشکی
#report-table(
columns: (1.3fr, 2.2fr),
[*کد نمونه*],
[*نتیجه*],
[ICJ/610],
[تم سبز],
[ICJ/EH600],
[تم قهوه‌ای],
[ICJ/EH630],
[تم قهوه‌ای],
[ICJ/EH680],
[کمترین شدت رنگ، تم قهوه‌ای],
[KRBL-1300T],
[تم سبز],
[KRBL-1314T],
[بیشترین شدت رنگ],
)
]
با توجه به تست‌های انجام شده، نمونه‌های KRBR-1202T (قهوه‌ای)، KRGY-1901T (زرد طلایی) و KRBL-1314T (مشکی) به عنوان کاندید جایگزینی جوهرهای اینکرا در نظر گرفته شدند.
نتایج تست‌ها به رویت آقای حسنی مدیر کارخانه، مهندس حری مدیر تولید و آقای مهندس عظیمی سرپرست خط رسید و صورتجلسه ای در این خصوص تنظیم شد.
با نظر آقای مهندس حری قرار شد نمونه‌هایی که شدت رنگ بیشتری دارند با پلاتر هم تست شوند. تست پلاتر در کیمیا رازی اانجام و نمونه جهت پخت در کوره کاشی آسیا ارسال شد.
نتایج نمونه‌های تست پلاتر مشابه نمونه های تست سملر هستند. آقای مهندس حری در تماس تلفنی تأیید کردند که نمونه‌های تست شده از جوهرهای فعلی (اینکرا) شرایط بهتری دارند.
// ===== ATTACHMENTS =====
\
#align(center, line(length: 100%))
صورت جلسه در پیوست گزارش آمده است.

View File

@@ -1,66 +0,0 @@
#import "paper_template.typ": *
#set text(lang: "fa")
#show: paper.with(
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
(
name: "آقای حسین زاده",
affiliation: "واحد فروش",
note:"مدیر فروش"
),
(
name: "خانم مردانیان",
affiliation: "واحد فروش",
note: "کارشناس فروش",
),
(
name: "خانم کرمانی",
affiliation: "آزمایشگاه لعاب",
note: "مدیر آزمایشگاه"
),
),
date: "۲۲ تا ۴/۶/۲۶",
destinations: (
(name: "نتايج تست پيگمنت مشکی شرکت آیسان تجارت"),
),
purpose: "بازدید و بررسی وضعیت",
)
// Your main content goes here
\
= نتايج تست پيگمنت مشکی شرکت آیسان تجارت برای جوهر دیجیتال
تاریخ دریافت نمونه: ۱۴۰۴/۰۹/۱۸
تاریخ گزارش: ۱۴۰۴/۰۹/۲۴
\
== نمونه دریافتی
تعداد نمونه: ۱ عدد
=== پیگمنت مشکی کبالتی
- تأمین کننده: آیسان تجارت فرداد ایرانیان (بازرگانی مهام سرام)
- سند: 101
- کد: y9002800
- کد داخلی: PI-BK28
\
== تست‌های انجام شده
با استفاده از این پیگمنت نمونه جوهر ساخته شد و این نمونه در کنار نمونه آزمایشگاهی ساخته شده با پیگمنت KER-6065 به صورت قطره‌ای روی سه لعاب مختلف و در دماهای مختلف پخت (۱۰۵۰، ۱۱۷۰ و ۱۱۵۰ درجه سانتی‌گراد) و روی لعاب‌های براق و مات تست شد.
تست‌ها شامل:
- بررسی کیفیت سطح
- براقیت
- شدت رنگ
- تم رنگ
// تست پایداری جوهر در مقابل رسوب‌گذاری و ته‌نشینی نیز انجام شده است.
\
== نتایج تست‌ها
- کیفیت سطح و براقیت: نمونه تست شده با این پیگمنت در تمامی دماها و روی تمامی لعاب‌ها کیفیت سطح خوبی داشته و بر خلاف نمونه ساخته شده با پیگمنت KER-6065 مات شدگی مشاهده نشده است.
- تم رنگ: این نمونه تم قهوه‌ای دارد و این مشکل در همه شرایط تست به وضوح مشاهده می‌شود.
- شدت رنگ: شدت رنگ این نمونه کمتر از نمونه ساخته شده با پیگمنت KER-6065 بوده است.
== جمع بندی نتايج
پیگمنت مشکی کبالتی شرکت آیسان تجارت از نظر کیفیت سطح و براقیت خوب است اما تم رنگ قهوه‌ای نقطه ضعف این پیگمنت است. و به همین دلیل برای استفاده در جوهر دیجیتال مناسب نیست.

View File

@@ -15,99 +15,107 @@
company: "کیمیا رازی",
title: "گزارش تست مواد اولیه",
subtitle: "دپارتمان جوهر",
destinations: (none),
destinations: none,
purpose: none,
authors: ("دیاکو سلطانپور"),
authors: "دیاکو سلطانپور",
date: "",
doc,
) = {
set math.equation(numbering: "(1)", supplement: auto)
set math.equation(numbering: "(1)", supplement: auto)
set par(leading: 1em)
// Set and show rules from before.
set par(leading: 1em)
// Set and show rules from before.
set text(
font: font,
size: fontsize
)
set page(
paper: "a4",
header:
context {if counter(page).get().first() > 1 [
#grid(
gutter: 5pt,
columns: (4.2%,25%,3%,20%),
grid.cell(align: right, stroke: 1pt, image(height: 19pt,"kimia razi logo bw.png")),
align: top+right,
title,
"|",
subtitle,
grid.hline(start: 0),)]},
background: place(
dx: -54%,
dy: 63.5%,
rotate(
-90deg,
text(13pt,font: "IRZar",
// TODO: do not use grid. use #text and fr if possible
grid(
columns: (15%,25%, 40% ,5%),
rows: 20pt,
align: top,
context[
#h(1fr) #company #h(2fr)|],
[#h(2fr) #title #h(4fr)|],
[#h(2fr)#destinations.map(destination => destination.name).join("\n") #h(2fr)],
grid.cell(fill: black,
align: center,
stroke: 1pt,
text(fill: white,
context(counter(page).display("۱/۱", both: true,)))),
grid.hline(start: 0),
)
)
)
)
)
set document(
title: title,
author: authors.map(author => author.name),
set text(
font: font,
size: fontsize,
)
set page(
paper: "a4",
header: context {
if counter(page).get().first() > 1 [
#grid(
gutter: 5pt,
columns: (4.2%, 25%, 3%, 20%),
grid.cell(align: right, stroke: 1pt, image(
height: 19pt,
"kimia razi logo bw.png",
)),
align: top + right,
title,
"|",
subtitle,
grid.hline(start: 0),
)]
},
background: place(
dx: -54%,
dy: 63.5%,
rotate(
-90deg,
text(
13pt,
font: "IRZar",
// TODO: do not use grid. use #text and fr if possible
grid(
columns: (15%, 25%, 40%, 5%),
rows: 20pt,
align: top,
context [
#h(1fr) #company #h(2fr)|],
[#h(2fr) #title #h(4fr)|],
[#h(2fr)#(
destinations.map(destination => destination.name).join("\n")
) #h(2fr)],
grid.cell(fill: black, align: center, stroke: 1pt, text(
fill: white,
context (counter(page).display("۱/۱", both: true)),
)),
grid.hline(start: 0),
),
),
),
),
)
set document(
title: title,
author: authors.map(author => author.name),
)
set align(right)
if subtitle != none {
text(align(center, { strong(company) }))
}
if subtitle != none {
text(align(center, { subtitle }))
}
text(18pt, align(center, { strong(title) }))
set text(13pt, font: "IRLotus")
align(center, line(length: 85%))
/*
pad(x: 40pt,
grid(
columns: (2fr, 3fr, 2fr, 3fr),
gutter: (2em,22pt),
[بازدید از:], grid.cell(align: left, strong(destinations.map(destination => destination.name).join("\n"))), [هدف بازدید:], grid.cell(align: left, strong(purpose)),
[تیم اعزامی:], grid.cell(align: left, strong(authors.map(author => author.name).join("\n"))), [تاریخ بازدید:], grid.cell(align(left, strong(date))),)
)
align(center, line(length: 85%))
set align(right)
if subtitle != none {
text(align(center,{strong(company)}))
}
text(18pt, align(center,{strong(title)}))
set text(13pt, font: "IRLotus")
if subtitle != none {
text(align(center,{subtitle}))
}
align(center, line(length: 85%))
/*
pad(x: 40pt,
grid(
columns: (2fr, 3fr, 2fr, 3fr),
gutter: (2em,22pt),
[بازدید از:], grid.cell(align: left, strong(destinations.map(destination => destination.name).join("\n"))), [هدف بازدید:], grid.cell(align: left, strong(purpose)),
[تیم اعزامی:], grid.cell(align: left, strong(authors.map(author => author.name).join("\n"))), [تاریخ بازدید:], grid.cell(align(left, strong(date))),)
)
align(center, line(length: 85%))
v(10pt)
*/
set heading(numbering: "۱.۱- ")
set math.equation(numbering: "(1)")
set footnote(numbering: "۱.")
set footnote.entry(separator: line(length: 100%, stroke: 0.5pt))
set footnote.entry(indent: 0em)
set align(right)
v(10pt)
*/
set heading(numbering: "۱.۱- ")
set math.equation(numbering: "(1)")
set footnote(numbering: "۱.")
set footnote.entry(separator: line(length: 100%, stroke: 0.5pt))
set footnote.entry(indent: 0em)
set align(right)
show heading: it => [
#set align(right)
#counter(heading).display(
it.numbering
) #it.body
it.numbering,
) #it.body
#v(10pt)
]
@@ -118,7 +126,7 @@
justify: true,
)
columns(1, doc)
columns(1, doc)
}

324
product_test_template.typ Normal file
View File

@@ -0,0 +1,324 @@
///////////////////////////////
// This Typst template is for working paper draft.
// It is based on the general SSRN paper.
// Copyright (c) 2024
// Author: Diaco
// License: MIT
// Version: 0.9.0
// Date: 2024-05-16
// Email: dyaco8464@yahoo.com
///////////////////////////////
#let fonts = (
body: "IRNazanin",
sidebar: "IRZar",
)
#let paper(
font: fonts.body,
fontsize: 13pt,
company: "کیمیا رازی",
title: "گزارش تست مواد اولیه",
subtitle: "دپارتمان جوهر",
destinations: (),
purpose: "",
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
),
date: "",
doc,
) = {
set math.equation(numbering: "(1)", supplement: auto)
set par(leading: 1em)
// Set and show rules from before.
set text(
font: font,
size: fontsize,
)
set page(
margin: (left: 2cm, right: 2cm, top: 2.5cm, bottom: 2.5cm),
paper: "a4",
header: context {
if counter(page).get().first() > 1 [
#grid(
gutter: 5pt,
columns: (auto, 1fr, auto, auto),
grid.cell(align: right, stroke: 1pt, image(
height: 19pt,
"template_files/kimia razi logo bw.png",
)),
align: top + right,
company,
"|",
subtitle,
grid.hline(start: 0),
)]
},
background: place(
dx: -64%,
dy: 73%,
rotate(
-90deg,
text(13pt, font: fonts.sidebar, grid(
columns: (30%, 30%, 5%),
rows: 20pt,
align: top,
[#h(1fr) #title #h(5fr)],
[#h(1fr) #(destinations.map(destination => destination.name).join(", ")) #h(5fr)],
grid.cell(fill: black, align: center, stroke: 1pt, text(
fill: white,
context (counter(page).display("۱/۱", both: true)),
)),
grid.hline(start: 0),
)),
),
),
numbering: "۱",
)
set document(
title: title,
author: authors.map(author => author.name),
)
// ===== TITLE SECTION =====
block(width: 100%)[
#grid(
columns: (auto, auto, 1fr),
align: top,
[
#align(right)[
#set par(leading: 0.9em, spacing: 0em)
#text(21pt, font: font, weight: "bold", strong(company))
#if subtitle != none and subtitle != "" {
text(14pt, " | " + subtitle)
}
#linebreak()
#text(14pt, strong(title))
]
],
[],
[#align(left, image(
"template_files/kimia razi logo bw.png",
height: 1.8cm,
))],
)
]
// set heading(numbering: "۱.۱- ")
set math.equation(numbering: "(1)")
set footnote(numbering: "۱.")
set footnote.entry(separator: line(length: 100%, stroke: 0.5pt))
set footnote.entry(indent: 0em)
set align(right)
show heading: it => context {
let y = here().position().y
let body-top = if counter(page).get().first() > 1 {
page.margin.top + 28pt
} else {
page.margin.top
}
let not-at-top = y > body-top + 12pt
[
#if not-at-top and it.level <= 2 [
#line(length: 100%)
#v(8pt)
]
#set align(right)
#it.body
#v(10pt)
]
}
set text(spacing: 100%)
set par(
leading: 1.2em,
first-line-indent: 0em,
justify: true,
)
columns(1, doc)
}
// Renders a centered, non-breakable result table.
// Each row is a tuple of content cells; the first row is the header.
// Usage:
// #test_result_table((
// ([*معیار*], [*CLCE-539/1*]),
// ([کیفیت سطح], [خوب]),
// ([نتیجه نهایی], [مناسب]),
// ))
#let test_result_table(cols) = {
block(
breakable: false,
align(center, table(
columns: (auto,) * (cols.first().len()),
inset: 8pt,
stroke: 0.5pt,
fill: (x, y) => if y == 0 { luma(230) },
..cols.flatten(),
)),
)
}
// Renders a level-3 heading + result table as a non-breakable unit.
// Usage:
// #pigment_result_block("پیگمنت زرد", (
// ([*معیار*], [*CLCE-539/1*]),
// ([کیفیت سطح], [خوب]),
// ([نتیجه نهایی], [نامناسب]),
// ))
#let pigment_result_block(name, rows) = {
block(breakable: false)[
=== #name
#test_result_table(rows)
]
}
// Renders a standalone pigment info block (no heading).
// Use inside a sample_section for additional codes under the same heading,
// or alone when a group shares a heading.
// Usage:
// #sample_entry("CLCE-539/4", "PI-BG32", "5")
#let sample_entry(supplier_code, internal_code, document_no) = {
grid(
columns: (auto, auto),
inset: 10pt,
[- کد تأمین کننده:], [#supplier_code],
[- کد داخلی], [#internal_code],
[- شماره سند:], [#document_no],
)
}
// Renders a level-3 heading + pigment info block as a non-breakable unit.
// Use for each pigment group in the received samples section.
// Usage:
// #sample_section("پیگمنت زرد", "CLCE-539/1", "PI-Y36", "2")
#let sample_section(title, supplier_code, internal_code, document_no) = {
block(breakable: false)[
=== #title
#sample_entry(supplier_code, internal_code, document_no)
]
}
// Renders the general report information table.
// Usage:
// #general_info_table(
// "۱۴۰۵/۰۱/۱۷",
// "۱۴۰۵/۰۱/۲۴",
// "پیگمنت",
// "۹",
// "Esmaltes",
// )
#let general_info_table(
received_date,
report_date,
sample_type,
sample_count,
supplier,
) = {
block(
breakable: false,
align(center, table(
columns: (auto, auto, auto, auto, auto),
align: right,
stroke: 0.5pt,
inset: 8pt,
fill: (x, y) => if y == 0 { luma(235) },
[*تاریخ دریافت نمونه*],
[*تاریخ گزارش*],
[*نوع نمونه*],
[*تعداد*],
[*تأمین کننده*],
[#received_date],
[#report_date],
[#sample_type],
[#sample_count],
[#supplier],
)),
)
}
// Renders the test conditions as a structured key/value table.
// Each row is a tuple of (label, value).
// Usage:
// #test_conditions_table((
// ([روش اعمال], [قطره‌ای]),
// ([دمای پخت], [۱۰۳۰، ۱۱۵۰، ۱۱۸۰ °C]),
// ))
#let test_conditions_table(rows) = {
block(
breakable: false,
align(center, table(
columns: (auto, auto),
align: right,
stroke: 0.5pt,
inset: 8pt,
fill: (x, y) => if y == 0 { luma(235) },
[*شرط آزمون*],
[*مقدار*],
..rows.flatten(),
)),
)
}
// Renders the ink formula as a horizontal component / weight-% table and
// appends an automatic total column. Component names are rendered LTR (English).
// Each row is a tuple of (component, weight).
// Usage:
// #ink_formula_table((
// ("Pigment", 30),
// ("Sol-1", 60),
// ("Super Disp.", 10),
// ))
#let ink_formula_table(rows) = {
let total = rows.fold(0, (acc, row) => acc + row.at(1))
let last-col = rows.len()
block(
breakable: false,
align(center, table(
columns: (auto,) * (rows.len() + 1),
align: center,
stroke: 0.5pt,
inset: 8pt,
fill: (x, y) => {
if x == last-col { luma(245) }
else if y == 0 { luma(235) }
},
..rows
.map(row => [*#text(dir: ltr, row.at(0))*])
.flatten(),
[*جمع*],
..rows.map(row => [#row.at(1)]).flatten(),
[*#total*],
)),
)
}
// Renders the received samples as a structured table.
// Each row should contain:
// (pigment_name, supplier_code, internal_code, document_no)
#let received_samples_table(rows) = {
block(
breakable: false,
align(center, table(
columns: (auto, auto, auto, auto),
align: right,
stroke: 0.5pt,
inset: 7pt,
fill: (x, y) => if y == 0 { luma(235) },
[*نوع پیگمنت*],
[*کد تأمین کننده*],
[*کد داخلی*],
[*شماره سند*],
..rows.flatten(),
)),
)
}

BIN
template_files/IRLotus.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
template_files/IRTitr.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
template_files/IRZar.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

146
travel-report-template.typ Normal file
View File

@@ -0,0 +1,146 @@
// Families from template_files/; compile with --font-path template_files
#let fonts = (
body: "IRNazanin",
sidebar: "IRZar",
)
#let destination-names(destinations) = {
if destinations == none { "" } else {
destinations.map(d => d.name).join(" - ")
}
}
#let report-meta-row(label-width, label, value) = grid(
columns: (label-width, 1fr),
gutter: (2em, 0pt),
align: right + top,
[#label], [#strong(value)],
)
#let report-meta-label-width = 8em
#let report(
font: fonts.body,
fontsize: 13pt,
company: "کیمیا رازی",
title: "گزارش مأموریت",
subtitle: "دپارتمان جوهر",
destinations: (),
purpose: "",
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
),
date: "",
body,
) = {
set page(
margin: (left: 2cm, right: 2cm, top: 2.5cm, bottom: 2.5cm),
paper: "a4",
header: context {
if counter(page).get().first() > 1 [
#grid(
gutter: 5pt,
columns: (auto, 1fr, auto, auto),
grid.cell(align: right, stroke: 1pt, image(
height: 19pt,
"template_files/kimia razi logo bw.png",
)),
align: top + right,
company,
"|",
subtitle,
grid.hline(start: 0),
)]
},
background: place(
dx: -64%,
dy: 73%,
rotate(
-90deg,
text(13pt, font: fonts.sidebar, grid(
columns: (30%, 30%, 5%),
rows: 20pt,
align: top,
[#h(1fr) گزارش ماموریت #destination-names(destinations) #h(5fr)],
context [
#let side_authors = if authors.len() == 0 {
""
} else {
authors.map(author => author.name).join(" - ")
}
#let textwidth = measure(side_authors).width
#if authors.len() > 0 and textwidth > page.width * 0.28 {
side_authors = authors.first().name + " و ..."
}
#h(1fr) #side_authors #h(4fr)],
grid.cell(fill: black, align: center, stroke: 1pt, text(
fill: white,
context (counter(page).display("۱/۱", both: true)),
)),
grid.hline(start: 0),
)),
),
),
numbering: "۱",
)
set text(lang: "fa", dir: rtl, font: font, size: fontsize)
// ===== TITLE SECTION =====
block(width: 100%)[
#grid(
columns: (auto, auto, 1fr),
align: top,
[
#align(right)[
#set par(leading: 0.9em, spacing: 0em)
#text(21pt, font: fonts.body, weight: "bold", strong(company))
#if subtitle != none and subtitle != "" {
text(14pt, " | " + subtitle)
}
#linebreak()
#text(14pt, strong(title))
]
],
[],
[#align(left, image(
"template_files/kimia razi logo bw.png",
height: 1.8cm,
))],
)
]
set align(right)
v(20pt)
align(center, line(length: 100%))
text(1.4em, strong([اطلاعات کلی]))
align(center, block(width: 100%)[
#set par(leading: 0.9em, spacing: 0em)
#stack(
spacing: 14pt,
report-meta-row(
report-meta-label-width,
[مقصد:],
destination-names(destinations),
),
report-meta-row(report-meta-label-width, [هدف مأموریت:], purpose),
report-meta-row(
report-meta-label-width,
[تیم اعزامی:],
authors.map(author => author.name).join(" - "),
),
report-meta-row(report-meta-label-width, [تاریخ:], date),
)
])
v(40pt)
align(center, line(length: 100%))
body
}
#let report-table(..args) = table(
align: center,
..args,
)