From f9418ac1e9385653cfa09da311bb2d405a936334 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 17 Jun 2022 03:01:24 +0000 Subject: CTAN sync 202206170301 --- macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf | Bin 269138 -> 222939 bytes macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex | 6 +- macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf | Bin 147743 -> 92143 bytes macros/unicodetex/latex/lebhart/lebhart-doc-en.tex | 6 +- macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf | Bin 151300 -> 93425 bytes macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex | 6 +- macros/unicodetex/latex/lebhart/lebhart.cls | 126 ++++++++++++--------- 7 files changed, 80 insertions(+), 64 deletions(-) (limited to 'macros/unicodetex/latex/lebhart') diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf index ec7f4c5b4d..cde237718f 100644 Binary files a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf and b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf differ diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex index 650496e149..55e53b41af 100644 --- a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex +++ b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex @@ -1,4 +1,4 @@ -\documentclass[English,Chinese,French,use boldface,simple name]{lebhart} +\documentclass[title in boldface, title in scshape, simple name]{lebhart} %%================================ %% Import toolkit @@ -8,8 +8,6 @@ \usepackage{hologo} % more TeX logo \usetikzlibrary{calc} -\usepackage{relsize} - \usepackage{blindtext} \UseLanguage{Chinese} @@ -93,7 +91,7 @@ %%================================ \begin{document} -\def\PackageVersion{2022/04/24} +\def\PackageVersion{2022/06/16} \title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\以多彩的方式排版你的文章} \author{许锦文} diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf index daa3bd4461..08043c1346 100644 Binary files a/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf and b/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf differ diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex index 0a50116911..b40f05cdd0 100644 --- a/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex +++ b/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex @@ -1,4 +1,4 @@ -\documentclass[English,Chinese,French,use boldface,simple name]{lebhart} +\documentclass[title in boldface, title in scshape, simple name]{lebhart} %%================================ %% Import toolkit @@ -8,8 +8,6 @@ \usepackage{hologo} % more TeX logo \usetikzlibrary{calc} -\usepackage{relsize} - \usepackage{blindtext} \UseLanguage{English} @@ -93,7 +91,7 @@ %%================================ \begin{document} -\def\PackageVersion{2022/04/24} +\def\PackageVersion{2022/06/16} \title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\write your articles in a colorful way} \author{Jinwen XU} diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf index 5d430a9e85..a94ea9c456 100644 Binary files a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf and b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf differ diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex index fca4e4df4d..369644bf47 100644 --- a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex +++ b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex @@ -1,4 +1,4 @@ -\documentclass[English,Chinese,French,use boldface,simple name]{lebhart} +\documentclass[title in boldface, title in scshape, simple name]{lebhart} %%================================ %% Import toolkit @@ -8,8 +8,6 @@ \usepackage{hologo} % more TeX logo \usetikzlibrary{calc} -\usepackage{relsize} - \usepackage{blindtext} \UseLanguage{French} @@ -93,7 +91,7 @@ %%================================ \begin{document} -\def\PackageVersion{2022/04/24} +\def\PackageVersion{2022/06/16} \title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\écrivez vos articles de manière colorée} \author{Jinwen XU} diff --git a/macros/unicodetex/latex/lebhart/lebhart.cls b/macros/unicodetex/latex/lebhart/lebhart.cls index 7cdec242e0..9635010f70 100644 --- a/macros/unicodetex/latex/lebhart/lebhart.cls +++ b/macros/unicodetex/latex/lebhart/lebhart.cls @@ -1,7 +1,7 @@ %% %% This is file `lebhart/lebhart.cls', %% generated with the docstrip utility. - +%% %% Copyright (C) 2021-2022 by Jinwen XU %% %% This is part of the colorist class series. @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplClass {lebhart} - {2022/04/24} {} + {2022/06/16} {} {A colorful article style} \tl_const:Nn \l__colorclass_base_class_tl { article } @@ -229,43 +229,39 @@ \__colorclass_load_file_or_config:Nnn \l__colorclass_load_custom_font_file_latin_bool { \l__colorclass_custom_font_file_latin_str } { - \__colorclass_if_font_exist:nnn { Palatino~Linotype } + \bool_if:NTF \l__projlib_font_useosf_bool { - \bool_if:NTF \l__projlib_font_useosf_bool - { - \setmainfont { Palatino~Linotype } [ Numbers = OldStyle ] - } - { - \setmainfont { Palatino~Linotype } - } + \setmainfont { TeXGyrePagellaX-Regular.otf } + [ + BoldFont = TeXGyrePagellaX-Bold.otf , + ItalicFont = TeXGyrePagellaX-Italic.otf , + BoldItalicFont = TeXGyrePagellaX-BoldItalic.otf , + Numbers = OldStyle , + ] + \setsansfont { SourceSansPro-Regular.otf } + [ + Scale = 1.05 , + BoldFont = SourceSansPro-Semibold.otf , + ItalicFont = SourceSansPro-RegularIt.otf , + BoldItalicFont = SourceSansPro-SemiboldIt.otf , + Numbers = OldStyle , + ] } { - \bool_if:NTF \l__projlib_font_useosf_bool - { - \setmainfont { TeXGyrePagellaX-Regular.otf } - [ - BoldFont = TeXGyrePagellaX-Bold.otf , - ItalicFont = TeXGyrePagellaX-Italic.otf , - BoldItalicFont = TeXGyrePagellaX-BoldItalic.otf , - Numbers = OldStyle , - ] - } - { - \setmainfont { TeXGyrePagellaX-Regular.otf } - [ - BoldFont = TeXGyrePagellaX-Bold.otf , - ItalicFont = TeXGyrePagellaX-Italic.otf , - BoldItalicFont = TeXGyrePagellaX-BoldItalic.otf , - ] - } + \setmainfont { TeXGyrePagellaX-Regular.otf } + [ + BoldFont = TeXGyrePagellaX-Bold.otf , + ItalicFont = TeXGyrePagellaX-Italic.otf , + BoldItalicFont = TeXGyrePagellaX-BoldItalic.otf , + ] + \setsansfont { SourceSansPro-Regular.otf } + [ + Scale = 1.05 , + BoldFont = SourceSansPro-Semibold.otf , + ItalicFont = SourceSansPro-RegularIt.otf , + BoldItalicFont = SourceSansPro-SemiboldIt.otf , + ] } - \setsansfont { SourceSansPro-Regular.otf } - [ - Scale = 1.05 , - BoldFont = SourceSansPro-Bold.otf , - ItalicFont = SourceSansPro-RegularIt.otf , - BoldItalicFont = SourceSansPro-BoldIt.otf , - ] \setmonofont { NewCMMono10-Regular.otf } [ Scale = 1.05 , @@ -544,10 +540,8 @@ { \bool_if:NF \g_projlib_font_already_set_bool { - \bool_if:NTF \l__colorclass_fast_bool - { - \RequirePackage { amssymb } - } + \RequirePackage { amssymb } + \bool_if:NF \l__colorclass_fast_bool { \PassOptionsToPackage { warnings-off = { mathtools-colon, mathtools-overbracket } } { unicode-math } \RequirePackage { unicode-math } @@ -557,6 +551,11 @@ [ range = { \sum, \prod, \coprod } ] + \setmathfont { latinmodern-math.otf } + [ + range = { \ast } , + Scale = 1.10 + ] \setmathfont { latinmodern-math.otf } [ range = { frak, bffrak } @@ -571,17 +570,34 @@ [ range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num } ] + \setmathfont { KpMath-Regular.otf } [ range = {} ] + + \sys_if_engine_luatex:T + { + \mathitalicsmode=1 + } \hook_gput_code:nnn { begindocument } { colorclass } { - \NewCommandCopy \colorclass_backup_mid: \mid - \RenewDocumentCommand \mid {} - { \skip_horizontal:n {-.1em} \colorclass_backup_mid: \skip_horizontal:n {-.1em} } - \NewCommandCopy \colorclass_backup_nmid: \nmid - \RenewDocumentCommand \nmid {} - { \skip_horizontal:n {-.1em} \colorclass_backup_nmid: \skip_horizontal:n {-.1em} } + \cs_gset_eq:NN \overline \wideoverbar + \cs_gset_eq:NN \square \mdwhtsquare } + % A temporary hack proposed in https://tex.stackexchange.com/a/647789 + \hook_gput_code:nnn { begindocument } { minimclass } + { + \NewCommandCopy\unicodevdots\vdots + \RenewDocumentCommand{\vdots}{}{\mathrel{\loweredvdots}} + } + \newcommand{\loweredvdots}{\mathpalette\loweredvdots@\relax} + \newcommand{\loweredvdots@}[2]{% + \begingroup + \sbox\z@{$\m@th#1\unicodevdots$}% + \vrule width \z@ height 2.25\ht\z@ depth 0.012\ht\z@ + \raisebox{0.25\height}{\usebox\z@}% + \endgroup + } + \RequirePackage { tikz-cd } \tikzcdset { arrow~style = tikz, diagrams = { >={Stealth[round,length=3.4pt,width=6.15pt,inset=2.25pt]} } } @@ -650,21 +666,27 @@ } } +\char_set_catcode_active:n { `\· } +\cs_new_protected:Npn · { \ensuremath\cdot } + \PassOptionsToPackage { all } { nowidow } \RequirePackage { nowidow } -\RequirePackage { regexpatch } -\skip_new:N \g_colorclass_parfillskip_skip -\xpatchcmd{\@trivlist}{\@flushglue}{\g_colorclass_parfillskip_skip}{}{} -\hook_gput_code:nnn { begindocument } { colorclass } +\sys_if_engine_xetex:T { - \skip_gset:Nn \g_colorclass_parfillskip_skip { 0pt plus \dim_eval:n { \linewidth - 2\parindent } } - \skip_gset_eq:NN \parfillskip \g_colorclass_parfillskip_skip + \RequirePackage { regexpatch } + \skip_new:N \g_colorclass_parfillskip_skip + \xpatchcmd{\@trivlist}{\@flushglue}{\g_colorclass_parfillskip_skip}{}{} + \hook_gput_code:nnn { begindocument } { colorclass } + { + \skip_gset:Nn \g_colorclass_parfillskip_skip { 0pt plus \dim_eval:n { \linewidth - 3em } } + \skip_gset_eq:NN \parfillskip \g_colorclass_parfillskip_skip + } } \hook_gput_code:nnn { begindocument/before } { colorclass } { - \@ifpackageloaded { biblatex } + \IfPackageLoadedTF { biblatex } { \PassOptionsToPackage { biblatex } { embrac } } {} -- cgit v1.2.3