Skip to content

Commit 974453a

Browse files
committed
fix: page counter cannot be used in 0.13.0
1 parent 07d90cd commit 974453a

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
## Fix
22

3-
- Fix unclickable contact details in the header of CV.
4-
- Page margin is better adjusted.
5-
6-
## Update
7-
8-
- Update the `fontawesome` package to version `0.5.0`.
3+
- Fix the `context` error when rendering page number count with typst version `0.13.0`.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ If you want to find a cover letter template, you can check out [modernpro-coverl
1111
If you use Typst CLI, you can use the following command to create a new project:
1212

1313
```bash
14-
typst init modernpro-cv
14+
typst init @preview/modernpro-cv
1515
```
1616

17+
>If you use the typst version `<0.13.0`, you need to use the following code to initial your project.
18+
> `typst init @preview/modernpro-cv:1.0.2`
19+
1720
It will create a folder named `modernpro-cv` with the following structure:
1821

1922
```plain

example_double.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@local/modernpro-cv:1.0.0": *
1+
#import "@local/modernpro-cv:1.1.0": *
22
#import "@preview/fontawesome:0.5.0": *
33

44
#show: cv-double(

modernpro-cv.typ

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
///////////////////////////////
22
// modernpro-cv.typ
33
// A CV template with modern Sans font and professional look
4-
// Copyright (c) 2024
4+
// Copyright (c) 2025
55
// Author: Jiaxin Peng
66
// License: MIT
7-
// Version: 1.0.2
8-
// Date: 2024-10-22
7+
// Version: 1.1.0
8+
// Date: 2025-03-13
99
// Email: jiaxin.peng@outlook.com
1010
///////////////////////////////
1111

@@ -212,7 +212,7 @@
212212
style: "italic",
213213
fill: primary-colour,
214214
weight: "light",
215-
)[Page #counter(page).display("1 / 1", both: true)]
215+
)[Page #context counter(page).display("1 / 1", both: true)]
216216
}
217217
])
218218

@@ -314,7 +314,7 @@
314314
style: "italic",
315315
fill: primary-colour,
316316
weight: "light",
317-
)[Page #counter(page).display("1 / 1", both: true)]
317+
)[Page #context counter(page).display("1 / 1", both: true)]
318318
}
319319
])
320320

template/cv-double.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/modernpro-cv:1.0.2": *
1+
#import "@preview/modernpro-cv:1.1.0": *
22

33
#import "@preview/fontawesome:0.5.0": *
44

template/cv-single.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/modernpro-cv:1.0.2": *
1+
#import "@preview/modernpro-cv:1.1.0": *
22

33
#import "@preview/fontawesome:0.5.0": *
44

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-cv"
3-
version = "1.0.2"
3+
version = "1.1.0"
44
entrypoint = "modernpro-cv.typ"
55
authors = [ "jxpeng98",]
66
repository = "https://github.com/jxpeng98/Typst-CV-Resume"

0 commit comments

Comments
 (0)