Skip to content

Commit 3e74afe

Browse files
committed
Update version to 0.0.7
1 parent ae47d3d commit 3e74afe

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
## Fix
2-
3-
- Fix a bug that removed the coverletter tittle `cl-title` when had a `postcode = []` in the coverletter template.
1+
## Added
2+
- Allow both `coverletter` and `statement` templates to accept a `margin` argument for configurable page layouts.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ This package provides one **cover letter** template and one **statement** templa
3636
3737
#show: coverletter.with(
3838
font-type: "PT Serif",
39+
margin: (left: 2cm, right: 2cm, top: 3cm, bottom: 2cm),
3940
name: [example],
4041
address: [],
4142
contacts: (
@@ -63,6 +64,7 @@ This package provides one **cover letter** template and one **statement** templa
6364
| Parameter | Description |
6465
| --- | --- |
6566
| `font-type` | The font type of the cover letter, e.g. "PT Serif" |
67+
| `margin` | Optional page margins as a single value or directional tuple |
6668
| `name` | The name of the sender |
6769
| `address` | The address of the sender |
6870
| `contacts` | The contact information of the sender(text:[], link: []) |
@@ -85,6 +87,7 @@ This package provides one **cover letter** template and one **statement** templa
8587
8688
#show: statement.with(
8789
font-type: "PT Serif",
90+
margin: (left: 2cm, right: 2cm, top: 3cm, bottom: 2cm),
8891
name: [],
8992
address: [],
9093
contacts: (
@@ -107,6 +110,7 @@ This package provides one **cover letter** template and one **statement** templa
107110
| Parameter | Description |
108111
| --- | --- |
109112
| `font-type` | The font type of the cover letter, e.g. "PT Serif" |
113+
| `margin` | Optional page margins as a single value or directional tuple |
110114
| `name` | The name of the sender |
111115
| `address` | The address of the sender |
112116
| `contacts` | The contact information of the sender(text:[], link: []) |
@@ -125,8 +129,8 @@ You just need to import the FontAwesome package at the beginning of the document
125129

126130
### Cover Letter
127131

128-
![Cover Letter Preview](https://minioapi.pjx.ac.cn/img1/2024/08/79decf8975b899d31b9dc76c5466a01a.png)
132+
![Cover Letter Preview](https://img.pengjiaxin.com/2024/08/79decf8975b899d31b9dc76c5466a01a.png)
129133

130134
### Statement
131135

132-
![Statement Preview](https://minioapi.pjx.ac.cn/img1/2024/08/0483a06862932e1e9a9f1589676ce862.png)
136+
![Statement Preview](https://img.pengjiaxin.com/2024/08/0483a06862932e1e9a9f1589676ce862.png)

modernpro-coverletter.typ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
///////////////////////////////
22
// modernpro-coverletter.typ
33
// A cover letter template with modern Sans font for job applications and other formal letters.
4-
// Copyright (c) 2024
4+
// Copyright (c) 2025
55
// Author: Jiaxin Peng
66
// License: MIT
7-
// Version: 0.0.6
8-
// Date: 2024-12-29
7+
// Version: 0.0.7
8+
// Date: 2025-10-14
99
// Email: jiaxin.peng@outlook.com
1010
///////////////////////////////
1111

template/coverletter.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "@preview/fontawesome:0.5.0": *
2-
#import "@preview/modernpro-coverletter:0.0.6": *
2+
#import "@preview/modernpro-coverletter:0.0.7": *
33

44
#show: coverletter.with(
55
font-type: "PT Serif",

template/statement.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "@preview/fontawesome:0.5.0": *
2-
#import "@preview/modernpro-coverletter:0.0.6": *
2+
#import "@preview/modernpro-coverletter:0.0.7": *
33

44
#show: statement.with(
55
font-type: "PT Serif",

typst.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "modernpro-coverletter"
3-
version = "0.0.6"
3+
version = "0.0.7"
44
entrypoint = "modernpro-coverletter.typ"
55
authors = [ "jxpeng98",]
66
repository = "https://github.com/jxpeng98/typst-coverletter"

0 commit comments

Comments
 (0)