[NTG-context] Playing with math font setup
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 ___
[NTG-context] Re: Section number in the margin and the section title followed by paragraph!
Thanks, those seems close to what I wanted but not exactly. The ASCII graphic (better in typewriter font) may explain what I desired, ``` text width |<>| ##. SECTION TITLE paragraph ... . |<-->| margin ``` I wanted paragraph to begin on the same line the section title lies. 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 ___
[NTG-context] Section number in the margin and the section title followed by paragraph!
I've able to achieve the results I wanted by trial/e using the code shown below. """ \def\subsecnumwrapper#1{\llap{#1\hskip8pt}} \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt] """ I just wanted to know if there already an option defined to achieve the desired result. 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 ___
[NTG-context] Re: Why the way key-value argument is called affected the document's output?
Since in the "setup-en.pdf" on p. 234, in "\setuplayout" the possible values for "grid" key is "yes", "no" (default), and "off" respectively. So what does the "yes " (with a trailing space) sets "grid" key to? 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 ___
[NTG-context] Re: Why the way key-value argument is called affected the document's output?
So is "\setuplayout[grid=yes]" AND "\setuplayout[ grid=yes ]" not same? I mean, we are initializing "grid" to "yes" in both cases. 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 ___