jskherman / imprecv

A no-frills curriculum vitae (CV) template using Typst and YAML to version control CV data.
Apache License 2.0
319 stars 38 forks source link

Links along with text #25

Closed kinalmehta closed 2 months ago

kinalmehta commented 2 months ago

Ability to add links in any text location (eg. job highlights, projects description, etc)

I tried adding using #link function but it didn't work.

jskherman commented 2 months ago

Can you send an example snippet? For me, it seems to work with v1.0.1 by making sure the strings in the YAML file is properly enclosed in "" quotation marks and properly escaping the quotation marks in the link() function. This is because # starts a comment in YAML. For example:

# ...
projects:
  - name: "Job Tailor"
    # ...other fields here
    highlights:
      - "Developed an #link(\"https://openrouter.ai\")[AI-powered] résumé editor app to create tailored résumés from users' CVs based on specific job descriptions."
# ...
kinalmehta commented 2 months ago

Thanks for clarifying. It works with the method you mentioned but only in highlights. However i'm trying to add link in the work/positions/position and it doesn't seem to be working. Example below

work:
  - organization: IIIT Hyderabad
    url: # https://www.iiit.ac.in/
    location: Hyderabad, India
    positions:
      - position: "Graduate Research Assistant - #link(\"https://faculty.iiit.ac.in/~pawan.kumar/myhomepage/\")[Prof. Pawan Kumar]"
jskherman commented 2 months ago

Yeah... unfortunately the template currently only does text for the position field:

https://github.com/jskherman/imprecv/blob/2fe6eb22298483ab5a7b986c78438086b9c50959/cv.typ#L142

Although it might be a quick fix to change it to accept content:

- #text(style: "italic")[#p.position] #h(1fr) 
+ #text(style: "italic", eval(p.position, mode: "markup")) #h(1fr) 
kinalmehta commented 2 months ago

This worked, thanks for your help.