add header_font_size option

This commit is contained in:
Sina Atalay 2023-11-24 18:36:30 +01:00
parent b9fa3692d7
commit d2d7de01af
4 changed files with 17 additions and 3 deletions

View File

@ -517,6 +517,12 @@ class ClassicThemeOptions(BaseModel):
), ),
) )
header_font_size: LaTeXDimension = Field(
default="30 pt",
title="Header Font Size",
description="The font size of the header (the name of the person).",
)
margins: ClassicThemeMargins = Field( margins: ClassicThemeMargins = Field(
default=ClassicThemeMargins(), default=ClassicThemeMargins(),
title="Margins", title="Margins",

View File

@ -1,7 +1,7 @@
((* import "components/header_connections.tex.j2" as print_connections *)) ((* import "components/header_connections.tex.j2" as print_connections *))
((* macro header(name, connections) *)) ((* macro header(name, connections) *))
\begin{header} \begin{header}
\Huge \fontsize{<<theme_options.header_font_size>>}{<<theme_options.header_font_size>>}
\textbf{<<name>>} \textbf{<<name>>}
\vspace{<<theme_options.margins.header.vertical_between_name_and_connections>>} \vspace{<<theme_options.margins.header.vertical_between_name_and_connections>>}

View File

@ -192,6 +192,13 @@
"title": "Show Last Updated Date", "title": "Show Last Updated Date",
"type": "boolean" "type": "boolean"
}, },
"header_font_size": {
"default": "30 pt",
"description": "The font size of the header (the name of the person).",
"pattern": "\\d+\\.?\\d* *(cm|in|pt|mm|ex|em)",
"title": "Header Font Size",
"type": "string"
},
"margins": { "margins": {
"allOf": [ "allOf": [
{ {
@ -1600,6 +1607,7 @@
"font_size": "10pt", "font_size": "10pt",
"options": { "options": {
"date_and_location_width": "4.1 cm", "date_and_location_width": "4.1 cm",
"header_font_size": "30 pt",
"margins": { "margins": {
"entry_area": { "entry_area": {
"left_and_right": "0.2 cm", "left_and_right": "0.2 cm",

View File

@ -109,7 +109,7 @@
\LenToUnit{\paperwidth-1.35 cm-0.2 cm+0.05cm}, \LenToUnit{\paperwidth-1.35 cm-0.2 cm+0.05cm},
\LenToUnit{\paperheight-0.675 cm} \LenToUnit{\paperheight-0.675 cm}
){\vtop{{\null}\makebox[0pt][c]{ ){\vtop{{\null}\makebox[0pt][c]{
\small\color{gray}\textit{Last updated on November 22, 2023}\hspace{\widthof{Last updated on November 22, 2023}} \small\color{gray}\textit{Last updated on REPLACETHISWITHTODAY}\hspace{\widthof{Last updated on REPLACETHISWITHTODAY}}
}}}% }}}%
}% }%
}% }%
@ -123,7 +123,7 @@
\placelastupdatedtext \placelastupdatedtext
\begin{header} \begin{header}
\Huge \fontsize{30 pt}{30 pt}
\textbf{John Doe} \textbf{John Doe}
\vspace{0.2 cm} \vspace{0.2 cm}