mirror of https://github.com/eyhc1/rendercv.git
add text_alignment option to sb2nov
This commit is contained in:
parent
433f37fa8e
commit
250471b62d
|
@ -212,6 +212,11 @@ class ThemeOptions(pydantic.BaseModel):
|
|||
" 30 pt."
|
||||
),
|
||||
)
|
||||
text_alignment: Literal["left-aligned", "justified"] = pydantic.Field(
|
||||
default="justified",
|
||||
title="Text Alignment",
|
||||
description="The alignment of the text. The default value is justified.",
|
||||
)
|
||||
margins: Margins = pydantic.Field(
|
||||
default=Margins(),
|
||||
title="Margins",
|
||||
|
|
|
@ -9,12 +9,6 @@ class ClassicThemeOptions(ThemeOptions):
|
|||
""" """
|
||||
|
||||
theme: Literal["classic"]
|
||||
|
||||
text_alignment: Literal["left-aligned", "justified"] = pydantic.Field(
|
||||
default="justified",
|
||||
title="Text Alignment",
|
||||
description="The alignment of the text. The default value is justified.",
|
||||
)
|
||||
show_timespan_in: list[str] = pydantic.Field(
|
||||
default=[],
|
||||
title="Show Time Span in These Sections",
|
||||
|
|
|
@ -57,7 +57,9 @@
|
|||
\setlength{\topskip}{0pt} % no top skip
|
||||
|
||||
% \raggedbottom
|
||||
% \raggedright
|
||||
((* if design.text_alignment == "left-aligned"*))
|
||||
\raggedright
|
||||
((* endif *))
|
||||
\setlength{\tabcolsep}{0in}
|
||||
|
||||
% Sections formatting
|
||||
|
|
32
schema.json
32
schema.json
|
@ -63,6 +63,16 @@
|
|||
"title": "Header Font Size",
|
||||
"type": "string"
|
||||
},
|
||||
"text_alignment": {
|
||||
"default": "justified",
|
||||
"description": "The alignment of the text. The default value is justified.",
|
||||
"enum": [
|
||||
"left-aligned",
|
||||
"justified"
|
||||
],
|
||||
"title": "Text Alignment",
|
||||
"type": "string"
|
||||
},
|
||||
"margins": {
|
||||
"allOf": [
|
||||
{
|
||||
|
@ -103,16 +113,6 @@
|
|||
"const": "classic",
|
||||
"title": "Theme"
|
||||
},
|
||||
"text_alignment": {
|
||||
"default": "justified",
|
||||
"description": "The alignment of the text. The default value is justified.",
|
||||
"enum": [
|
||||
"left-aligned",
|
||||
"justified"
|
||||
],
|
||||
"title": "Text Alignment",
|
||||
"type": "string"
|
||||
},
|
||||
"show_timespan_in": {
|
||||
"default": [],
|
||||
"description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).",
|
||||
|
@ -1056,6 +1056,16 @@
|
|||
"title": "Header Font Size",
|
||||
"type": "string"
|
||||
},
|
||||
"text_alignment": {
|
||||
"default": "justified",
|
||||
"description": "The alignment of the text. The default value is justified.",
|
||||
"enum": [
|
||||
"left-aligned",
|
||||
"justified"
|
||||
],
|
||||
"title": "Text Alignment",
|
||||
"type": "string"
|
||||
},
|
||||
"margins": {
|
||||
"allOf": [
|
||||
{
|
||||
|
@ -1176,6 +1186,7 @@
|
|||
"page_numbering_style": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES",
|
||||
"show_last_updated_date": true,
|
||||
"header_font_size": "30 pt",
|
||||
"text_alignment": "justified",
|
||||
"margins": {
|
||||
"entry_area": {
|
||||
"date_and_location_width": "4.1 cm",
|
||||
|
@ -1204,7 +1215,6 @@
|
|||
}
|
||||
},
|
||||
"theme": "classic",
|
||||
"text_alignment": "justified",
|
||||
"show_timespan_in": []
|
||||
},
|
||||
"description": "The design information of the CV.",
|
||||
|
|
Loading…
Reference in New Issue