parametrize header-font for coverletters (#114)
Co-authored-by: jncfa <jncfa@proton.me>
This commit is contained in:
4
lib.typ
4
lib.typ
@@ -590,6 +590,7 @@
|
|||||||
/// - accent-color (color): The accent color of the cover letter
|
/// - accent-color (color): The accent color of the cover letter
|
||||||
/// - language (string): The language of the cover letter, defaults to "en". See lang.toml for available languages
|
/// - language (string): The language of the cover letter, defaults to "en". See lang.toml for available languages
|
||||||
/// - font (array): The font families of the cover letter
|
/// - font (array): The font families of the cover letter
|
||||||
|
/// - header-font (array): The font families of the cover letter header
|
||||||
/// - show-footer (boolean): Whether to show the footer or not
|
/// - show-footer (boolean): Whether to show the footer or not
|
||||||
/// - closing (content): The closing of the cover letter. This defaults to "Attached Curriculum Vitae". You can set this to `none` to show the default closing or remove it completely.
|
/// - closing (content): The closing of the cover letter. This defaults to "Attached Curriculum Vitae". You can set this to `none` to show the default closing or remove it completely.
|
||||||
/// - use-smallcaps (boolean): Whether to use small caps formatting throughout the template
|
/// - use-smallcaps (boolean): Whether to use small caps formatting throughout the template
|
||||||
@@ -601,6 +602,7 @@
|
|||||||
accent-color: default-accent-color,
|
accent-color: default-accent-color,
|
||||||
language: "en",
|
language: "en",
|
||||||
font: ("Source Sans Pro", "Source Sans 3"),
|
font: ("Source Sans Pro", "Source Sans 3"),
|
||||||
|
header-font: ("Roboto"),
|
||||||
show-footer: true,
|
show-footer: true,
|
||||||
closing: none,
|
closing: none,
|
||||||
paper-size: "a4",
|
paper-size: "a4",
|
||||||
@@ -685,7 +687,7 @@
|
|||||||
#set text(
|
#set text(
|
||||||
size: 32pt,
|
size: 32pt,
|
||||||
style: "normal",
|
style: "normal",
|
||||||
font: ("Roboto"),
|
font: header-font,
|
||||||
)
|
)
|
||||||
#if language == "zh" or language == "ja" [
|
#if language == "zh" or language == "ja" [
|
||||||
#text(
|
#text(
|
||||||
|
|||||||
Reference in New Issue
Block a user