mirror of https://github.com/eyhc1/rendercv.git
classic: add a new text_alignment type, justified-with-no-hyphenation (#34)
This commit is contained in:
parent
d24d33e208
commit
2fbb7c88cd
|
@ -243,7 +243,7 @@ class ThemeOptions(pydantic.BaseModel):
|
||||||
" 30 pt."
|
" 30 pt."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
text_alignment: Literal["left-aligned", "justified"] = pydantic.Field(
|
text_alignment: Literal["left-aligned", "justified", "justified-with-no-hyphenation"] = pydantic.Field(
|
||||||
default="justified",
|
default="justified",
|
||||||
title="Text Alignment",
|
title="Text Alignment",
|
||||||
description="The alignment of the text. The default value is justified.",
|
description="The alignment of the text. The default value is justified.",
|
||||||
|
|
|
@ -85,6 +85,8 @@
|
||||||
\newcolumntype{K}[1]{
|
\newcolumntype{K}[1]{
|
||||||
>{\let\newline\\\arraybackslash\hspace{0pt}}X
|
>{\let\newline\\\arraybackslash\hspace{0pt}}X
|
||||||
} % justified flexible width column type
|
} % justified flexible width column type
|
||||||
|
((* elif design.text_alignment == "justified-with-no-hyphenation" *))
|
||||||
|
\usepackage[none]{hyphenat} % for disabling hyphenation
|
||||||
((* elif design.text_alignment == "left-aligned" *))
|
((* elif design.text_alignment == "left-aligned" *))
|
||||||
\newcolumntype{K}[1]{
|
\newcolumntype{K}[1]{
|
||||||
>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}X
|
>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}X
|
||||||
|
|
Loading…
Reference in New Issue