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

[FEATURE] Automatic size of grid for resume-skill-item #84

Open
vslavkin opened this issue Dec 5, 2024 · 3 comments
Open

[FEATURE] Automatic size of grid for resume-skill-item #84

vslavkin opened this issue Dec 5, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vslavkin
Copy link

vslavkin commented Dec 5, 2024

I wanted to write "programming languages" as a skill item, but it doesn't fit, so it does a not-so-pleasant line-break.
While an argument with the column lengths could be passed, I wonder if there's a way to apply the max auto size of the column to the multiple grid one may have in a document.
If that couldn't be done, then the function could instead receive a list of categories and a list of lists of items, and put everything in one big grid.
(Basically, it would be just a very small wrapper around grid)

@vslavkin
Copy link
Author

vslavkin commented Dec 5, 2024

Now that I think of it, the items don't have to be in a list. They could be just content (Except if you wanted to parse them for something), and it would give more freedom to the user

@DeveloperPaul123
Copy link
Owner

Thanks for filing this. If you have any screenshots or images of what exactly you're envisioning, that would be very helpful.

@DeveloperPaul123 DeveloperPaul123 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 6, 2024
@DeveloperPaul123 DeveloperPaul123 changed the title Automatic size of grid for resume-skill-item [FEATURE] Automatic size of grid for resume-skill-item Dec 6, 2024
@vslavkin
Copy link
Author

Sorry, forgot about this, but made a small demo:
This would be the desired result image
And this is what is currently happening: image

I understand that some people will prefer the former and others the latter, but it would be great to offer an option in #resume-skill-item to toggle the feature

The code used for the former is this:

#grid(
    columns: (auto, auto),
    gutter: 10pt,
    [== Programming Languages],
    [*Python*, *C*, C++, Java, Lisp, Html, CSS, JavaScript, Rust, SQL, Pascal, Lua, Bash,],
    [== Spoken languages],
    [*Spanish (Native)*, *English (B2)*],
    [== Programs],
    [*Emacs*, *LaTeX*, git, Godot, Docker, Grafana, Unity, KiCad, Blender, DaVinci Resolve, Inkscape, OnShape])

While it works here, I don't know how to implement this, maintaining the width of the first column the same across all function calls.
image

image

The easy way is to add an optional argument to the #resume-skill-item function for setting the width of the first column, but I'd say that the best way is using the auto setting.
If it was possible to save the width of the auto width to a variable, I think it may be doable, but I don't know enough typst yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants