fix: no space for name when language is zh or jp
For chinese and japanese, don't use a space between the firstname and lastname
This commit is contained in:
31
lib.typ
31
lib.typ
@@ -169,8 +169,11 @@
|
|||||||
#smallcaps[#date]
|
#smallcaps[#date]
|
||||||
][
|
][
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.firstname
|
#if language == "zh" or language == "ja" [
|
||||||
#author.lastname
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
#sym.dot.c
|
#sym.dot.c
|
||||||
#linguify("resume", from: lang_data)
|
#linguify("resume", from: lang_data)
|
||||||
]
|
]
|
||||||
@@ -241,8 +244,12 @@
|
|||||||
style: "normal",
|
style: "normal",
|
||||||
font: ("Roboto"),
|
font: ("Roboto"),
|
||||||
)
|
)
|
||||||
#text(fill: accent-color, weight: "thin")[#author.firstname]
|
#if language == "zh" or language == "ja" [
|
||||||
#text(weight: "bold")[#author.lastname]
|
#text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname]
|
||||||
|
] else [
|
||||||
|
#text(accent-color, weight: "thin")[#author.firstname]
|
||||||
|
#text(weight: "bold")[#author.lastname]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -450,8 +457,11 @@
|
|||||||
#smallcaps[#date]
|
#smallcaps[#date]
|
||||||
][
|
][
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.firstname
|
#if language == "zh" or language == "ja" [
|
||||||
#author.lastname
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
#sym.dot.c
|
#sym.dot.c
|
||||||
#linguify("cover-letter", from: lang_data)
|
#linguify("cover-letter", from: lang_data)
|
||||||
]
|
]
|
||||||
@@ -499,8 +509,13 @@
|
|||||||
style: "normal",
|
style: "normal",
|
||||||
font: ("Roboto"),
|
font: ("Roboto"),
|
||||||
)
|
)
|
||||||
#text(accent-color, weight: "thin")[#author.firstname]
|
#if language == "zh" or language == "ja" [
|
||||||
#text(weight: "bold")[#author.lastname]
|
#text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname]
|
||||||
|
] else [
|
||||||
|
#text(accent-color, weight: "thin")[#author.firstname]
|
||||||
|
#text(weight: "bold")[#author.lastname]
|
||||||
|
]
|
||||||
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user