Center Name and Info in basic-resume?

Hello,

This template is fantastic: basic-resume – Typst Universe

But I’m unsure how to center my name and personal information. It seems the format for these parts is locked by the source file.

Any ideas?

Thanks in advance.

1 Like

That’s true. If you look at lines 57-65 in resume.typ, you can see the rules the template set for the position of the heading.

  // Name will be aligned left, bold and big
  show heading.where(level: 1): it => [
    #set align(left)
    #set text(
      weight: 700,
      size: 20pt,
    )
    #pad(it.body)
  ]

You could manually edit these settings for yourself to change the alignment from left to center since it won’t affect other Typst users, but I haven’t found any way to override these rules in a separate working file.

I just proposed a small change to the author to allow for users to set a custom alignment for the author and personal info with added positional parameters:

// ...
  author-position: left,
  personal-info-position: left,
// ...

If they accept the change then you’ll be able to set a centered alignment.

Thanks very much for your response!

I copied all the code from resume.typ and pasted it in my main.typ file, then modified the lines you referenced. This is a good workaround for now, I didn’t realize I could manually use the code instead of importing the full file.

Thanks for the proposed change too.

Cheers.