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

Adds header_info_size variable to metadata #77

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alexk101
Copy link

Resolves #76

@yunanwg
Copy link
Owner

yunanwg commented Jan 20, 2025

Hi @alexk101 sorry for the late reaction, I've been quite busy recently.

Will take a look later today!

@yunanwg yunanwg self-assigned this Jan 20, 2025
@@ -24,6 +24,7 @@ language = "en"

# Decide if you want to display profile photo or not
display_profile_photo = true
info_font_size = "8pt"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if a comment could be placed above the new item.

@@ -32,6 +32,7 @@
let lastName = metadata.personal.last_name
let headerQuote = metadata.lang.at(metadata.language).header_quote
let displayProfilePhoto = metadata.layout.header.display_profile_photo
let headerInfoFontSize = metadata.layout.header.info_font_size
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For optional value, please use syntax like metadata.layout.at("before_section_skip", default: 1pt) with default value.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you will also need to add eval function, as font size is not string in typst but a special data type.

@alexk101
Copy link
Author

Will try and resolve some of these issues soon

@yunanwg
Copy link
Owner

yunanwg commented Jan 22, 2025

Appreciated! I made a commit yesterday on your PR but don't know why it got lost somewhere. It should not be too complicated, tell me if you encounter any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to change header info font size
2 participants