diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-03 03:01:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-03 03:01:37 +0000 |
commit | 660cf44d2a0aee74bd6e69615fedfc57c966a260 (patch) | |
tree | 3e62bc2b2f8208c4abcad9423ee2efa266fa8c7b /macros/latex/contrib/colorist/colorart.cls | |
parent | 4841af990664e40ab2f20099d8b39dabacf5ad0f (diff) |
CTAN sync 202301030301
Diffstat (limited to 'macros/latex/contrib/colorist/colorart.cls')
-rw-r--r-- | macros/latex/contrib/colorist/colorart.cls | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/macros/latex/contrib/colorist/colorart.cls b/macros/latex/contrib/colorist/colorart.cls index 72929ae916..c361d0847f 100644 --- a/macros/latex/contrib/colorist/colorart.cls +++ b/macros/latex/contrib/colorist/colorart.cls @@ -2,7 +2,7 @@ %% This is file `colorist/colorart.cls', %% generated with the docstrip utility. %% -%% Copyright (C) 2021-2022 by Jinwen XU +%% Copyright (C) 2021-2023 by Jinwen XU %% %% This is part of the colorist class series. %% @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplClass {colorart} - {2022/09/03} {} + {2023/01/02} {} {A colorful article style} \tl_const:Nn \l__colorclass_base_class_tl { article } @@ -34,21 +34,24 @@ , draft .initial:n = { false } , fast .bool_set:N = \l__colorclass_fast_bool + , print .bool_set:N = \l__colorclass_print_mode_bool + , print .initial:n = { false } + , print mode .bool_set:N = \l__colorclass_print_mode_bool + , print~mode .bool_set:N = \l__colorclass_print_mode_bool + , print-mode .bool_set:N = \l__colorclass_print_mode_bool + , print version .bool_set:N = \l__colorclass_print_mode_bool + , print~version .bool_set:N = \l__colorclass_print_mode_bool + , print-version .bool_set:N = \l__colorclass_print_mode_bool + , load custom font file .code:n = { \bool_set_true:N \l__colorclass_load_custom_font_file_bool \str_set:Nn \l__colorclass_custom_font_file_str { #1 } } , load custom font file .default:n = { colorist.font } - , load~custom~font~file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_bool - \str_set:Nn \l__colorclass_custom_font_file_str { #1 } - } + , load~custom~font~file .meta:n = { load custom font file = { #1 } } , load~custom~font~file .default:n = { colorist.font } - , load-custom-font-file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_bool - \str_set:Nn \l__colorclass_custom_font_file_str { #1 } - } + , load-custom-font-file .meta:n = { load custom font file = { #1 } } , load-custom-font-file .default:n = { colorist.font } @@ -68,6 +71,19 @@ \LoadClass{\l__colorclass_base_class_tl} +\NewDocumentCommand \IfPrintModeTF { m m } + { + \bool_if:NTF \l__colorclass_print_mode_bool { #1 } { #2 } + } +\NewDocumentCommand \IfPrintModeT { m } + { + \bool_if:NT \l__colorclass_print_mode_bool { #1 } + } +\NewDocumentCommand \IfPrintModeF { m } + { + \bool_if:NF \l__colorclass_print_mode_bool { #1 } + } + %%================================ %% Page layout %%================================ @@ -165,6 +181,7 @@ { \setsansfont { texgyreheros } [ + Extension = .otf , Scale = MatchUppercase , UprightFont = *-regular , BoldFont = *-bold , |