Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot add an image: unexpected argument #15

Closed
cgahr opened this issue Feb 12, 2025 · 2 comments
Closed

cannot add an image: unexpected argument #15

cgahr opened this issue Feb 12, 2025 · 2 comments

Comments

@cgahr
Copy link

cgahr commented Feb 12, 2025

I cannot add an image as described in the example. Instead I get the following error:

error: unexpected argument
    ┌─ @preview/moderner-cv:0.1.2/lib.typ:125:16
    │  
125 │   #let moderner-cv(
    │ ╭─────────────────^
126 │ │   name: [],
127 │ │   subtitle: [CV],
128 │ │   social: (:),
    · │
143 │ │   body,
144 │ │ ) = [
    │ ╰─^

To reproduce:

  • typst init @preview/moderner-cv:0.1.2
  • cd in folder
  • add some image
  • add the line image: image("my-image.png", height: 8em)
@pavelzw
Copy link
Owner

pavelzw commented Feb 12, 2025

this should be fixed in the next release, see #11

@cgahr
Copy link
Author

cgahr commented Feb 13, 2025

I see, I did not realized this option has not been published yet. My bad!

@cgahr cgahr closed this as completed Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants