diff options
Diffstat (limited to 'macros/unicodetex/latex/beaulivre/beaulivre.cls')
-rw-r--r-- | macros/unicodetex/latex/beaulivre/beaulivre.cls | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/macros/unicodetex/latex/beaulivre/beaulivre.cls b/macros/unicodetex/latex/beaulivre/beaulivre.cls index d90f081dca..b56b03e2b9 100644 --- a/macros/unicodetex/latex/beaulivre/beaulivre.cls +++ b/macros/unicodetex/latex/beaulivre/beaulivre.cls @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplClass {beaulivre} - {2022/03/19} {} + {2022/03/28} {} {A colorful book style} \tl_const:Nn \l__colorclass_base_class_tl { book } @@ -548,51 +548,39 @@ \PassOptionsToPackage { warnings-off = { mathtools-colon, mathtools-overbracket } } { unicode-math } \RequirePackage { unicode-math } \unimathsetup { math-style = ISO, partial = upright, nabla = upright } - \setmathfont { Asana-Math.otf } + \setmathfont { KpMath-Regular.otf } + \setmathfont { KpMath-Sans.otf } + [ + range = { \sum, \prod, \coprod } + ] \__colorclass_if_font_exist:nnn { Neo~Euler } { \setmathfont { Neo~Euler } [ range = { up / { Latin, latin, Greek, greek }, bfup / { Latin, latin, Greek, greek }, - cal, bfcal, frak, bffrak, - `(, `), `[, `], `\{, `\}, `:, `=, \ne, \equiv, `/, \backslash, - \in, \notin, \ni, \subset, \supset, \subseteq, \supseteq, - \rightarrow, \leftarrow, \leftrightarrow, - \longleftarrow, \longrightarrow, \longleftrightarrow, - \Leftarrow, \Rightarrow, \Leftrightarrow, - \Longleftarrow, \Longrightarrow, \Longleftrightarrow, - \nrightarrow, \nleftarrow, \nleftrightarrow, - \nLeftarrow, \nRightarrow, \nLeftrightarrow, - \mapsto, \hookrightarrow, \hookleftarrow, - \leftharpoonup, \rightharpoonup, \leftharpoondown, \rightharpoondown, - \rightleftharpoons, \leftrightharpoons, - \sum, \prod, \coprod, - \sqrt, \int, \iint, \iiint, \oint + `(, `), `[, `], `\{, `\} }, - script-features = {}, - sscript-features = {}, Scale = 1.05, ] }{} \setmathfont { latinmodern-math.otf } [ - range = { \leq, \geq, \ll, \gg, \lll, \ggg, \leqslant, \geqslant }, - Scale = 0.95, + range = { cal, bfcal, frak, bffrak } ] \setmathfont { texgyrepagella-math.otf } [ - range = { up / num, bfup / num } + range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num } ] \hook_gput_code:nnn { begindocument } { colorclass } { \NewCommandCopy \colorclass_backup_mid: \mid \RenewDocumentCommand \mid {} - { \skip_horizontal:n {-.15em} \colorclass_backup_mid: \skip_horizontal:n {-.15em} } + { \skip_horizontal:n {-.1em} \colorclass_backup_mid: \skip_horizontal:n {-.1em} } \NewCommandCopy \colorclass_backup_nmid: \nmid \RenewDocumentCommand \nmid {} - { \skip_horizontal:n {-.15em} \colorclass_backup_nmid: \skip_horizontal:n {-.15em} } + { \skip_horizontal:n {-.1em} \colorclass_backup_nmid: \skip_horizontal:n {-.1em} } } \RequirePackage { tikz-cd } @@ -607,10 +595,10 @@ \hbox_set:Nn \l__colorclass_xarrows_below_box { \ensuremath { \scriptstyle #1 } } \hbox_set:Nn \l__colorclass_xarrows_above_box { \ensuremath { \scriptstyle #2 } } \dim_set:Nn \l__colorclass_xarrows_length_dim - { \dim_eval:n { \dim_max:nn { \box_wd:N \l__colorclass_xarrows_below_box } { \box_wd:N \l__colorclass_xarrows_above_box } + .8em } } + { \dim_eval:n { \dim_max:nn { \box_wd:N \l__colorclass_xarrows_below_box } { \box_wd:N \l__colorclass_xarrows_above_box } + 1em } } \mathrel { - \tikz [ #3, baseline = -.55ex, every~node/.style = { inner~sep = 0pt } ] + \tikz [ #3, line~width = .6pt, baseline = -.5ex, every~node/.style = { inner~sep = 0pt }, >={Stealth[round,length=3.4pt,width=6.15pt,inset=2.25pt]} ] \draw (0,0) #4 node [ below = 3pt ] { \box_use:N \l__colorclass_xarrows_below_box } node [ above = 2pt ] { \box_use:N \l__colorclass_xarrows_above_box } |