fix: alignment

This commit is contained in:
elagil
2025-08-01 19:18:16 +02:00
parent dc0eb7a648
commit f5d9ba995a

18
lib.typ
View File

@@ -249,7 +249,7 @@
}
let name = {
align(center)[
align(left)[
#pad(bottom: 5pt)[
#block[
#set text(size: 32pt, style: "normal", font: header-font)
@@ -266,7 +266,7 @@
let positions = {
set text(size: 9pt, weight: "regular")
align(center)[
align(left)[
#__apply_smallcaps(
author.positions.join(text[#" "#sym.dot.c#" "]),
use-smallcaps,
@@ -276,7 +276,7 @@
let address = {
set text(size: 9pt, weight: "regular")
align(center)[
align(left)[
#if ("address" in author) [
#if show-address-icon [
#address-icon
@@ -293,7 +293,7 @@
let separator = box(width: 5pt)
align(center)[
align(left)[
#set text(size: 9pt, weight: "regular", style: "normal")
#block[
#align(horizon)[
@@ -417,7 +417,7 @@
/// This formats the item for the resume entries. Typically your body would be a bullet list of items. Could be your responsibilities at a company or your academic achievements in an educational background section.
/// - body (content): The body of the resume entry
#let resume-item(body) = {
set text(size: 10pt, style: "normal", weight: "light")
set text(size: 10pt, weight: "light")
set block(above: 0.75em, below: 1.25em)
set par(leading: 0.65em)
block(above: 0.5em)[
@@ -780,7 +780,7 @@
#text(weight: "light")[#linguify("sincerely", from: lang_data)#if (
language != "de"
) [#sym.comma]] \
#text(weight: "regular")[#author.firstname #author.lastname] \ \
#text(weight: "bold")[#author.firstname #author.lastname] \ \
]
]
}
@@ -827,13 +827,13 @@
let lang_data = toml("lang.toml")
// TODO: Make this adaptable to content
underline(evade: false, stroke: 0.5pt, offset: 0.3em)[
[
#text(weight: "bold", size: 12pt)[#linguify(
"letter-position-pretext",
from: lang_data,
) #job-position]
) "#job-position"]
]
pad(top: 1em, bottom: 1em)[
pad(top: 2em)[
#text(weight: "light")[
#if dear == "" [
#linguify("dear", from: lang_data)