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 = { let name = {
align(center)[ align(left)[
#pad(bottom: 5pt)[ #pad(bottom: 5pt)[
#block[ #block[
#set text(size: 32pt, style: "normal", font: header-font) #set text(size: 32pt, style: "normal", font: header-font)
@@ -266,7 +266,7 @@
let positions = { let positions = {
set text(size: 9pt, weight: "regular") set text(size: 9pt, weight: "regular")
align(center)[ align(left)[
#__apply_smallcaps( #__apply_smallcaps(
author.positions.join(text[#" "#sym.dot.c#" "]), author.positions.join(text[#" "#sym.dot.c#" "]),
use-smallcaps, use-smallcaps,
@@ -276,7 +276,7 @@
let address = { let address = {
set text(size: 9pt, weight: "regular") set text(size: 9pt, weight: "regular")
align(center)[ align(left)[
#if ("address" in author) [ #if ("address" in author) [
#if show-address-icon [ #if show-address-icon [
#address-icon #address-icon
@@ -293,7 +293,7 @@
let separator = box(width: 5pt) let separator = box(width: 5pt)
align(center)[ align(left)[
#set text(size: 9pt, weight: "regular", style: "normal") #set text(size: 9pt, weight: "regular", style: "normal")
#block[ #block[
#align(horizon)[ #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. /// 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 /// - body (content): The body of the resume entry
#let resume-item(body) = { #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 block(above: 0.75em, below: 1.25em)
set par(leading: 0.65em) set par(leading: 0.65em)
block(above: 0.5em)[ block(above: 0.5em)[
@@ -780,7 +780,7 @@
#text(weight: "light")[#linguify("sincerely", from: lang_data)#if ( #text(weight: "light")[#linguify("sincerely", from: lang_data)#if (
language != "de" language != "de"
) [#sym.comma]] \ ) [#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") let lang_data = toml("lang.toml")
// TODO: Make this adaptable to content // TODO: Make this adaptable to content
underline(evade: false, stroke: 0.5pt, offset: 0.3em)[ [
#text(weight: "bold", size: 12pt)[#linguify( #text(weight: "bold", size: 12pt)[#linguify(
"letter-position-pretext", "letter-position-pretext",
from: lang_data, from: lang_data,
) #job-position] ) "#job-position"]
] ]
pad(top: 1em, bottom: 1em)[ pad(top: 2em)[
#text(weight: "light")[ #text(weight: "light")[
#if dear == "" [ #if dear == "" [
#linguify("dear", from: lang_data) #linguify("dear", from: lang_data)