\NeedsTeXFormat{LaTeX2e}[2018/01/01] \def\fileversion{0.22} \def\filedate{2022-09-28} \ProvidesPackage{concmath-otf}[\filedate\space\fileversion] % Ensure luatex or xetex engine \RequirePackage{iftex}[2019/10/24] \RequireTUTeX \RequirePackage{unicode-math} \newopentypefeature{Style}{upint}{+ss03} \newopentypefeature{Style}{leqslant}{+ss04} \newopentypefeature{Style}{smaller}{+ss05} \newopentypefeature{Style}{subsetneq}{+ss06} % Options: forward them to \setmathfont except "tight", "loose" and "no-text". \RequirePackage{xkeyval} \newtoks\CCMtoks \newcommand*{\Store@KV@Option}[2]{% \CCMtoks=\expandafter{\the\CCMtoks #1={#2},}} \newif\ifCCM@tight \newif\ifCCM@notext \DeclareOptionX{no-text}{\CCM@notexttrue} \DeclareOptionX{tight}{\CCM@tighttrue} \DeclareOptionX{loose}{\CCM@tightfalse} \DeclareOptionX{math-style}{\Store@KV@Option{math-style}{#1}} \DeclareOptionX{bold-style}{\Store@KV@Option{bold-style}{#1}} \DeclareOptionX{nabla}{\Store@KV@Option{nabla}{#1}} \DeclareOptionX{partial}{\Store@KV@Option{partial}{#1}} \DeclareOptionX{CharacterVariant}{\Store@KV@Option{CharacterVariant}{#1}} \DeclareOptionX{StylisticSet}{\Store@KV@Option{StylisticSet}{#1}} \DeclareOptionX{Style}{\Store@KV@Option{Style}{#1}} \ExecuteOptionsX{tight} \ProcessOptionsX % \ifCCM@tight \thinmuskip=2mu \medmuskip=2.5mu plus 1mu minus 2.5mu \thickmuskip=3.5mu plus 2.5mu \fi % Text Serif fonts: \ifCCM@notext \else \setmainfont{cmunorm.otf} [BoldFont = cmunobx.otf , ItalicFont = cmunoti.otf , BoldItalicFont = cmunobi.otf ] \fi %Math fonts: % Following Joseph Wright in https://tex.stackexchange.com/questions/451 \begingroup \edef\temp{% \endgroup \noexpand\setmathfont{Concrete-Math.otf}% [\unexpanded\expandafter{\the\CCMtoks}]% } \temp % Text Sans Serif fonts: default (lmss unless specified) % Text Typewriter fonts: default (lmtt unless specified) \AtBeginDocument{% % Concrete specific math \Umathchardef\varemptyset = 0 0 "E021 \relax \Umathchardef\mbfdotlessi = 0 0 "E046 \relax \Umathchardef\mbfdotlessj = 0 0 "E047 \relax \Umathchardef\mithbar = 0 0 "E078 \relax \Umathchardef\lesseqslantgtr = 3 0 "E094 \relax \Umathchardef\gtreqslantless = 3 0 "E095 \relax \Umathchardef\lesseqqslantgtr = 3 0 "E096 \relax \Umathchardef\gtreqqslantless = 3 0 "E097 \relax \Umathchardef\nsubseteqq = 3 0 "E0AE \relax \Umathchardef\nsupseteqq = 3 0 "E0AF \relax % \widearc and\overrightarc \newcommand*{\widearc}{\Umathaccent 0 0 "E540 }% \newcommand*{\overrightarc}{\Umathaccent 0 0 "20D5 }% % amssymb \@ifpackageloaded{amssymb}% {\PackageWarning{concmath-otf}{% Concmath-otf provides all AMS symbols.\MessageBreak Loading amssymb.sty is not advisable.\MessageBreak Reported}% }% {% AMS Symbols not referenced in unicode-math-table.tex % \Umathchardef\ = % : \mathord=0 \mathrel=3 ; =0 \Umathchardef\circledR = 0 0 "24C7 \relax \Umathchardef\circledS = 0 0 "24C8 \relax \Umathchardef\diagup = 0 0 "E0A0 \relax \Umathchardef\diagdown = 0 0 "E0A1 \relax \Umathchardef\shortmid = 3 0 "E0A2 \relax \Umathchardef\shortparallel = 3 0 "E0A3 \relax \Umathchardef\nshortmid = 3 0 "E0A4 \relax \Umathchardef\nshortparallel = 3 0 "E0A5 \relax \Umathchardef\lvertneqq = 3 0 "E0A6 \relax \Umathchardef\gvertneqq = 3 0 "E0A7 \relax \Umathchardef\varsubsetneq = 3 0 "E0AC \relax \Umathchardef\varsupsetneq = 3 0 "E0AD \relax \Umathchardef\varsubsetneqq = 3 0 "E09C \relax \Umathchardef\varsupsetneqq = 3 0 "E09D \relax \Umathchardef\nleqslant = 3 0 "E0A8 \relax \Umathchardef\ngeqslant = 3 0 "E0A9 \relax \Umathchardef\nleqq = 3 0 "E0AA \relax \Umathchardef\ngeqq = 3 0 "E0AB \relax \Umathchardef\npreceq = 3 0 "E098 \relax \Umathchardef\nsucceq = 3 0 "E099 \relax \let\centerdot\cdotp \let\restriction\upharpoonright \let\doteqdot\Doteq \let\doublecup\Cup \let\doublecap\Cap \let\llless\lll \let\gggtr\ggg \let\circlearrowleft\acwopencirclearrow \let\circlearrowright\cwopencirclearrow \let\lozenge\mdlgwhtlozenge \let\blacklozenge\mdlgblklozenge \let\square\mdlgwhtsquare \let\blacksquare\mdlgblksquare \let\dashleftarrow\leftdasharrow \let\dashrightarrow\rightdasharrow \let\ntriangleleft\nvartriangleleft \let\ntriangleright\nvartriangleright \let\varpropto\propto \let\thicksim\sim \let\thickapprox\approx \let\smallsmile\smile \let\smallfrown\frown }% % latexsym \@ifpackageloaded{latexsym}% {\PackageWarning{concmath-otf}{% Concmath-otf provides all LaTeX symbols.\MessageBreak Loading latexsym.sty is not advisable.\MessageBreak Reported}% }% {\let\lhd\vartriangleleft \let\rhd\vartriangleright \let\unlhd\trianglelefteq \let\unrhd\trianglerighteq \let\leadsto\rightcurvedarrow \let\Box\lgwhtsquare \let\Diamond\mdlgwhtdiamond }% } \endinput