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

trying to change letter-position-pretext errors out #98

Open
Ablesius opened this issue Feb 12, 2025 · 5 comments
Open

trying to change letter-position-pretext errors out #98

Ablesius opened this issue Feb 12, 2025 · 5 comments
Assignees
Milestone

Comments

@Ablesius
Copy link

I'm trying to use modern-cv and wanted to change "Bewerbung für " to "Bewerbung als" because it's more idiomatic in my coverletter.typ. Here's what happens when I try to use it:

#letter-heading(
  job-position: "Projektmanager*in",
  letter-position-pretext: "Bewerbung als",    // THIS throws an error, see below!
  dear: "Liebes",   // necessary because otherwise "Sehr geehrte" is hard-coded; note that *this* can be set and typst compiles without problems!
  addressee: "Hiring Team von <company>",
)

I then get this error:

   ┌─ coverletter.typ:46:0
   │
46 │ letter-position-pretext: "Bewerbung als",
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I think this is wrong, because other keys can be overwritten, like "dear" in the example works as expected.

@DeveloperPaul123
Copy link
Owner

Is there more information other than the error you posted? This doesn't tell me why it failed, but it seems that it might be just because it's not expecting that as an input.

Also can you confirm what version of the template you're using?

@Ablesius
Copy link
Author

Hi! The version I use is 0.8.0.

I've created a minimal (not) working example: https://paste.xinu.at/OzAfH/ comment out line 19 to see the error vs not. :-)

@DeveloperPaul123
Copy link
Owner

Hmm looks like this input parameter does not exist and that's why it's giving you an error. I can add it as a feature.

@Ablesius
Copy link
Author

Thank you! Just to understand, letter-position-pretext does not yet exist as an input parameter, but curriculum-vitae and attached do; where is that defined? When I search this repo for these terms respectively, I find the same results, so it's surprising that only one of them can't be defined by the user yet.

@DeveloperPaul123
Copy link
Owner

These are defined in the lang.toml file which is how I provide translations of the same text. These aren't customizable directly from the template, you would have to edit the lang.toml. In fact you could do the same for letter-position-pretext.

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