diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-02 21:23:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-02 21:23:26 +0000 |
commit | a6b52c418b122f8c7f693297f90312835d4b8ce0 (patch) | |
tree | d38b846d4ce9b1bde89c33d79a269be0cd98c25b /Master/texmf-dist/tex/latex/lebhart | |
parent | 298587016f189af9336278f57b0f59980cbe234e (diff) |
jxu (2jan23)
git-svn-id: svn://tug.org/texlive/trunk@65436 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lebhart')
-rw-r--r-- | Master/texmf-dist/tex/latex/lebhart/lebhart.cls | 96 |
1 files changed, 53 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/lebhart/lebhart.cls b/Master/texmf-dist/tex/latex/lebhart/lebhart.cls index a78a85bccd8..9d609a925e2 100644 --- a/Master/texmf-dist/tex/latex/lebhart/lebhart.cls +++ b/Master/texmf-dist/tex/latex/lebhart/lebhart.cls @@ -2,7 +2,7 @@ %% This is file `lebhart/lebhart.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 {lebhart} - {2022/09/03} {} + {2023/01/02} {} {A colorful article style} \tl_const:Nn \l__colorclass_base_class_tl { article } @@ -42,6 +42,15 @@ , 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 @@ -54,15 +63,9 @@ \str_set:Nn \l__colorclass_custom_font_file_math_str { colorist.font.math } } , 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 } , load custom latin font file .code:n = { @@ -70,15 +73,9 @@ \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 } } , load custom latin font file .default:n = { colorist.font.latin } - , load~custom~latin~font~file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool - \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 } - } + , load~custom~latin~font~file .meta:n = { load custom latin font file = { #1 } } , load~custom~latin~font~file .default:n = { colorist.font.latin } - , load-custom-latin-font-file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool - \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 } - } + , load-custom-latin-font-file .meta:n = { load custom latin font file = { #1 } } , load-custom-latin-font-file .default:n = { colorist.font.latin } , load custom cjk font file .code:n = { @@ -86,15 +83,9 @@ \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 } } , load custom cjk font file .default:n = { colorist.font.cjk } - , load~custom~cjk~font~file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool - \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 } - } + , load~custom~cjk~font~file .meta:n = { load custom cjk font file = { #1 } } , load~custom~cjk~font~file .default:n = { colorist.font.cjk } - , load-custom-cjk-font-file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool - \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 } - } + , load-custom-cjk-font-file .meta:n = { load custom cjk font file = { #1 } } , load-custom-cjk-font-file .default:n = { colorist.font.cjk } , load custom math font file .code:n = { @@ -102,15 +93,9 @@ \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 } } , load custom math font file .default:n = { colorist.font.math } - , load~custom~math~font~file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool - \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 } - } + , load~custom~math~font~file .meta:n = { load custom math font file = { #1 } } , load~custom~math~font~file .default:n = { colorist.font.math } - , load-custom-math-font-file .code:n = { - \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool - \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 } - } + , load-custom-math-font-file .meta:n = { load custom math font file = { #1 } } , load-custom-math-font-file .default:n = { colorist.font.math } , a4paper .bool_set:N = \l__colorclass_a_four_paper_bool @@ -129,6 +114,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 %%================================ @@ -607,14 +605,9 @@ ] \setmathfont { latinmodern-math.otf } [ - range = { \ast } , + range = { frak, bffrak, \mitvarpi, \mupvarpi, \ast } , Scale = 1.10 ] - \setmathfont { latinmodern-math.otf } - [ - range = { frak, bffrak } - ] - \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n} \setmathfont { texgyrepagella-math.otf } [ range = { `(, `) } , @@ -622,9 +615,14 @@ ] \setmathfont { texgyrepagella-math.otf } [ + range = { \mathcomma, \mathsemicolon } , + ] + \setmathfont { texgyrepagella-math.otf } + [ range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num } ] - \setmathfont { KpMath-Regular.otf } [ range = {} ] + \setmathfont { KpMath-Regular.otf } [ range = { cal, bfcal }, RawFeature=+ss01 ] + % \setmathfont { KpMath-Regular.otf } [ range = {} ] \sys_if_engine_luatex:T { @@ -704,15 +702,27 @@ { \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] } } + \NewDocumentCommand \xtwoheadrightarrow { O{} m } + { + \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] } + } + \NewDocumentCommand \xtwoheadleftarrow { O{} m } + { + \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] } + } \hook_gput_code:nnn { begindocument/end } { colorclass } { \RenewDocumentCommand \twoheadrightarrow {} { - \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] } + \colorclass_xarrows_generic:nnnn { + \mathchoice { \,\, } { \, } { } { } + } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] } } \RenewDocumentCommand \twoheadleftarrow {} { - \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] } + \colorclass_xarrows_generic:nnnn { + \mathchoice { \,\, } { \, } { } { } + } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] } } } } |