summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/simplivre/simplivre.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-03 03:01:37 +0000
committerNorbert Preining <norbert@preining.info>2023-01-03 03:01:37 +0000
commit660cf44d2a0aee74bd6e69615fedfc57c966a260 (patch)
tree3e62bc2b2f8208c4abcad9423ee2efa266fa8c7b /macros/unicodetex/latex/simplivre/simplivre.cls
parent4841af990664e40ab2f20099d8b39dabacf5ad0f (diff)
CTAN sync 202301030301
Diffstat (limited to 'macros/unicodetex/latex/simplivre/simplivre.cls')
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre.cls94
1 files changed, 52 insertions, 42 deletions
diff --git a/macros/unicodetex/latex/simplivre/simplivre.cls b/macros/unicodetex/latex/simplivre/simplivre.cls
index cedeb63c85..63a861edea 100644
--- a/macros/unicodetex/latex/simplivre/simplivre.cls
+++ b/macros/unicodetex/latex/simplivre/simplivre.cls
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{simplivre}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear book style}
\tl_const:Nn \l__minimclass_base_class_tl { book }
@@ -42,6 +42,15 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__minimclass_fast_bool
+ , print .bool_set:N = \l__minimclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print~mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print-mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print version .bool_set:N = \l__minimclass_print_mode_bool
+ , print~version .bool_set:N = \l__minimclass_print_mode_bool
+ , print-version .bool_set:N = \l__minimclass_print_mode_bool
+
, classical .bool_set:N = \l__minimclass_classical_bool
, classical .initial:n = { false }
@@ -61,15 +70,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { minimalist.font.math }
}
, load custom font file .default:n = { minimalist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { minimalist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { minimalist.font }
, load custom latin font file .code:n = {
@@ -77,15 +80,9 @@
\str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
}
, load custom latin font file .default:n = { minimalist.font.latin }
- , load~custom~latin~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.latin }
- , load-custom-latin-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.latin }
, load custom cjk font file .code:n = {
@@ -93,15 +90,9 @@
\str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
}
, load custom cjk font file .default:n = { minimalist.font.cjk }
- , load~custom~cjk~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.cjk }
- , load-custom-cjk-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.cjk }
, load custom math font file .code:n = {
@@ -109,15 +100,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
}
, load custom math font file .default:n = { minimalist.font.math }
- , load~custom~math~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.math }
- , load-custom-math-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_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 = { minimalist.font.math }
, a4paper .bool_set:N = \l__minimclass_a_four_paper_bool
@@ -141,6 +126,19 @@
\bool_set_false:N \l__minimclass_useindent_bool
}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__minimclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__minimclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__minimclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -630,14 +628,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 = { `(, `) } ,
@@ -645,9 +638,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
{
@@ -727,15 +725,27 @@
{
\minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] }
}
+ \NewDocumentCommand \xtwoheadrightarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ }
+ \NewDocumentCommand \xtwoheadleftarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ }
\hook_gput_code:nnn { begindocument/end } { minimclass }
{
\RenewDocumentCommand \twoheadrightarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
}
\RenewDocumentCommand \twoheadleftarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
}
}
}