From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 1D64325E11 for ; Tue, 21 May 2024 16:44:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6FDC4483E8D for ; Tue, 21 May 2024 16:42:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6VlRJB_MRj7n for ; Tue, 21 May 2024 16:42:19 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EC75D483DF1 for ; Tue, 21 May 2024 16:42:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2717D48442C for ; Tue, 21 May 2024 16:41:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sf0_Isz6IKjA for ; Tue, 21 May 2024 16:41:52 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B36354845BE for ; Tue, 21 May 2024 16:40:45 +0200 (CEST) MIME-Version: 1.0 From: "Ali Ali" <111414w@gmail.com> To: ntg-context@ntg.nl Date: Tue, 21 May 2024 14:40:45 -0000 Message-ID: <171630244572.1996.3670850218643042704@cgl.ntg.nl> User-Agent: HyperKitty on http://mailman.ntg.nl/ Message-ID-Hash: SEC3LFJTDKN52SH64WEIM4Q5TRN243XH X-Message-ID-Hash: SEC3LFJTDKN52SH64WEIM4Q5TRN243XH X-MailFrom: 111414w@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Playing with math font setup List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, hope everyone's doing well! Is it possible to setup math font so that all the basic ascii characters (i.e. a..zA..Z0..9) glyphs are substituted with current serif (or sans) font. I tried playing with fallback thing but it didn't got me anywhere! e.g. $x$ will use the 'x' glyph from current serif italic font, and $\bf x$ will use the 'x' glyph from current serif bold font! I would appreciate any suggestions and help! Suppose we have all the required font files in the 'font' directory of the working directory, and below is the minimal source code! """ \starttypescriptcollection[CustomFontSelection] \starttypescript [serif] [CustomFontSelection] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] % [file:font/Lora-Regular.ttf] [file:font/Lora-Medium.ttf] [features=default,fallbacks=Serif] \definefontsynonym [SerifBold] [file:font/Lora-Bold.ttf] [features=default,fallbacks=SerifBold] \definefontsynonym [SerifItalic] % [file:font/Lora-Italic.ttf] [file:font/Lora-MediumItalic.ttf] [features=default,fallbacks=SerifItalic] \definefontsynonym [SerifBoldItalic] [file:font/Lora-BoldItalic.ttf] [features=default,fallbacks=SerifBoldItalic] \stoptypescript \starttypescript [math] [CustomFontSelection] [name] %%% \definefontfallback [MathRomanFallBack] %%% [SansItalic] %%% [extendedlatin] %%% [force=yes] \definefontsynonym [MathRoman] [file:font/STIXTwoMath-Regular.otf] [features=math,fallbacks=MathRomanFallBack] \stoptypescript \starttypescript[CustomFontSelection] \definetypeface [CustomFontSelection] [rm] [serif] [CustomFontSelection] [default] [rscale=0.9] \definetypeface [CustomFontSelection] [ss] [sans] [newcomputermodern-book] [default] \definetypeface [CustomFontSelection] [tt] [mono] [newcomputermodern-book] [default] \definetypeface [CustomFontSelection] [mm] [math] [CustomFontSelection] [default] [rscale=0.97] \stoptypescript \stoptypescriptcollection \setupbodyfont[CustomFontSelection] \starttext We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever. \mathematics{% \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases } We use $\bf X$, $\bf Y$, $\bf Z$ and $\bf n$, $\bf m$, etc. $\bf \sin(x) \gets \limsup x_n$ whatever. \stoptext """ Best regards, Ali ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________