* [NTG-context] Fractions (was \placefigure[location=here...] problem)
@ 2023-12-09 13:43 Wolfgang Schuster
2023-12-09 13:57 ` [NTG-context] " Henning Hraban Ramm
2023-12-09 15:33 ` [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) Aditya Mahajan
0 siblings, 2 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2023-12-09 13:43 UTC (permalink / raw)
To: mailing list for ConTeXt users, anton.chigurh
anton.chigurh@mail.com schrieb am 09.12.2023 um 14:15:
> I worked, ;-), thanks.
> Let me ask you another thing, how can I avoid messing up the
> line spacing by using \sqrt and \frac, the line that follows these has increased
> line spacing in the pdf output
>
> code:
> Find the normal and shearing stresses on an oblique plane defined by
> $l=\sqrt{\frac{3}{13}}$, $m=\sqrt{\frac{1}{13}}$, and $n=\sqrt{\frac{9}{13}}$.
Complete working minimal examples are preferred over code snippets.
To avoid single lines with different spacing you can either increase the
line spacing for all
lines with \setupinterlinespace or you use a different fraction command
which uses
smaller numbers or creates inline fractions.
\starttext
\startlines
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
\type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
\type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
\type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
\type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
\type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
\type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
\stoplines
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 13:43 [NTG-context] Fractions (was \placefigure[location=here...] problem) Wolfgang Schuster @ 2023-12-09 13:57 ` Henning Hraban Ramm 2023-12-09 14:47 ` anton.chigurh 2023-12-09 15:13 ` Fabrice Couvreur 2023-12-09 15:33 ` [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) Aditya Mahajan 1 sibling, 2 replies; 12+ messages in thread From: Henning Hraban Ramm @ 2023-12-09 13:57 UTC (permalink / raw) To: ntg-context Am 09.12.23 um 14:43 schrieb Wolfgang Schuster: > anton.chigurh@mail.com schrieb am 09.12.2023 um 14:15: > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} > \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} > \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} > \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} > \stoplines There’s also \vulgarfraction{1}{3} (but probably not suitable for your application). Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 13:57 ` [NTG-context] " Henning Hraban Ramm @ 2023-12-09 14:47 ` anton.chigurh 2023-12-09 15:13 ` Fabrice Couvreur 1 sibling, 0 replies; 12+ messages in thread From: anton.chigurh @ 2023-12-09 14:47 UTC (permalink / raw) To: ntg-context Thanks :-) ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 13:57 ` [NTG-context] " Henning Hraban Ramm 2023-12-09 14:47 ` anton.chigurh @ 2023-12-09 15:13 ` Fabrice Couvreur 2023-12-09 14:52 ` Wolfgang Schuster 1 sibling, 1 reply; 12+ messages in thread From: Fabrice Couvreur @ 2023-12-09 15:13 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1591 bytes --] Hi Wolfgang, I'm reading this thread and I'm interested because I type a lot of text with mathematical formulas. In fact, I find that \dfrac{} creates unsightly leading space and that \frac{} is too small. What is the difference between \frac{} and \tfrac{} ? Fabrice Le sam. 9 déc. 2023 à 14:00, Henning Hraban Ramm <texml@fiee.net> a écrit : > Am 09.12.23 um 14:43 schrieb Wolfgang Schuster: > > anton.chigurh@mail.com schrieb am 09.12.2023 um 14:15: > > \startlines > > \type{\frac{1}{3}}: \m{\frac{1}{3}} > > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} > > \type{\frac{1}{3}}: \m{\frac{1}{3}} > > \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} > > \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} > > \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} > > \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} > > \stoplines > > There’s also \vulgarfraction{1}{3} (but probably not suitable for your > application). > > Hraban > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2709 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 15:13 ` Fabrice Couvreur @ 2023-12-09 14:52 ` Wolfgang Schuster [not found] ` <CACyK-ep3tOb5w5pWwqYBt5pOwBFGr=H19vGbJ9pJ61Xmz7zwtw@mail.gmail.com> 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2023-12-09 14:52 UTC (permalink / raw) To: mailing list for ConTeXt users, Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 829 bytes --] Fabrice Couvreur schrieb am 09.12.2023 um 16:13: > Hi Wolfgang, > I'm reading this thread and I'm interested because I type a lot of > text with mathematical formulas. > In fact, I find that \dfrac{} creates unsightly leading space and that > \frac{} is too small. What is the difference between \frac{} and > \tfrac{} ? \frac switches the math style while \tfrac (textstyle), \dfrac (displaystyle) and \sfrac (scriptstyle) enforce a certain style. %%%% begin example \startbuffer[frac] \frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2} \stopbuffer \starttext \startformula \getbuffer[frac] \stopformula \m{\getbuffer[frac]} \startformula \frac {\getbuffer[frac]} {\getbuffer[frac]} \stopformula \m{\frac {\getbuffer[frac]} {\getbuffer[frac]}} \stoptext %%%% end example Wolfgang [-- Attachment #1.2: Type: text/html, Size: 1552 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CACyK-ep3tOb5w5pWwqYBt5pOwBFGr=H19vGbJ9pJ61Xmz7zwtw@mail.gmail.com>]
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) [not found] ` <CACyK-ep3tOb5w5pWwqYBt5pOwBFGr=H19vGbJ9pJ61Xmz7zwtw@mail.gmail.com> @ 2023-12-09 15:39 ` Wolfgang Schuster 2023-12-09 22:30 ` Mikael Sundqvist 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2023-12-09 15:39 UTC (permalink / raw) To: Fabrice Couvreur; +Cc: Mikael Sundqvist, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 224 bytes --] Fabrice Couvreur schrieb am 09.12.2023 um 17:19: > Very clear ! > In typography for Mathematics books, what choice should we make for > the best possible result ? A question better answered by Mikael or Aditya! Wolfgang [-- Attachment #1.2: Type: text/html, Size: 783 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 15:39 ` Wolfgang Schuster @ 2023-12-09 22:30 ` Mikael Sundqvist 2023-12-10 12:24 ` [NTG-context] Re: Fractions Henning Hraban Ramm 0 siblings, 1 reply; 12+ messages in thread From: Mikael Sundqvist @ 2023-12-09 22:30 UTC (permalink / raw) To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 649 bytes --] Hi, On Sat, Dec 9, 2023 at 4:39 PM Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote: > > Fabrice Couvreur schrieb am 09.12.2023 um 17:19: > > Very clear ! > In typography for Mathematics books, what choice should we make for the best possible result ? > > > A question better answered by Mikael or Aditya! Thank you for your trust, Wolfgang. I am not sure I have something valuable to say in addition to Adityas suggestion \frac{1/3} in inline math. In any case, I attach a passage, with suggestions inspired by Lansburgh's book (iin Swedish). Not sure the file size makes it through to the list, though. /Mikael [-- Attachment #2: fractions.pdf --] [-- Type: application/pdf, Size: 130820 bytes --] [-- Attachment #3: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions 2023-12-09 22:30 ` Mikael Sundqvist @ 2023-12-10 12:24 ` Henning Hraban Ramm 2023-12-10 13:19 ` Gavin via ntg-context 2023-12-11 14:23 ` Henning Hraban Ramm 0 siblings, 2 replies; 12+ messages in thread From: Henning Hraban Ramm @ 2023-12-10 12:24 UTC (permalink / raw) To: ntg-context Am 09.12.23 um 23:30 schrieb Mikael Sundqvist: > Hi, > > On Sat, Dec 9, 2023 at 4:39 PM Wolfgang Schuster > <wolfgang.schuster.lists@gmail.com> wrote: >> >> Fabrice Couvreur schrieb am 09.12.2023 um 17:19: >> >> Very clear ! >> In typography for Mathematics books, what choice should we make for the best possible result ? >> >> A question better answered by Mikael or Aditya! > > Thank you for your trust, Wolfgang. I am not sure I have something > valuable to say in addition to Adityas suggestion \frac{1/3} in inline > math. In any case, I attach a passage, with suggestions inspired by > Lansburgh's book (iin Swedish). Not sure the file size makes it > through to the list, though. Thank you! I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text. With these and \frac, the spacing below the numerator (depth) is too big, while the denominator sticks too tightly to the fraction bar. (Of course I use regular numbers for fractions, not mediaeval.) Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks “horrible” in comparison to the few usual fractions contained in fonts (like ½ & ¾). I tried to use the OpenType fraction features to no avail. So I’m still looking for “the best” solution for simple fractions inline. Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions 2023-12-10 12:24 ` [NTG-context] Re: Fractions Henning Hraban Ramm @ 2023-12-10 13:19 ` Gavin via ntg-context 2023-12-11 14:23 ` Henning Hraban Ramm 1 sibling, 0 replies; 12+ messages in thread From: Gavin via ntg-context @ 2023-12-10 13:19 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Gavin Hello fraction fascinated friends, > On Dec 10, 2023, at 5:24 AM, Henning Hraban Ramm <texml@fiee.net> wrote: > > Am 09.12.23 um 23:30 schrieb Mikael Sundqvist: >> Hi, >> On Sat, Dec 9, 2023 at 4:39 PM Wolfgang Schuster >> <wolfgang.schuster.lists@gmail.com> wrote: >>> >>> Fabrice Couvreur schrieb am 09.12.2023 um 17:19: >>> >>> Very clear ! >>> In typography for Mathematics books, what choice should we make for the best possible result ? >>> >>> A question better answered by Mikael or Aditya! >> Thank you for your trust, Wolfgang. I am not sure I have something >> valuable to say in addition to Adityas suggestion \frac{1/3} in inline >> math. In any case, I attach a passage, with suggestions inspired by >> Lansburgh's book (iin Swedish). Not sure the file size makes it >> through to the list, though. > > Thank you! > > I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text. > With these and \frac, the spacing below the numerator (depth) is too big, while the denominator sticks too tightly to the fraction bar. > (Of course I use regular numbers for fractions, not mediaeval.) > > Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks “horrible” in comparison to the few usual fractions contained in fonts (like ½ & ¾). > > I tried to use the OpenType fraction features to no avail. > > So I’m still looking for “the best” solution for simple fractions inline. > > Hraban I also use fractions frequently, so I’ve tried a few things. Some fonts have superior and inferior numbers that can be used to make small slash fractions. I’ve done this, but my method is not pretty. Hraban suggested using font features for this, but I haven’t learned how to do that. Any advice is welcome. Example code below uses the Libertinus font, which has these superior and inferior numbers, to produce sample paragraph demonstrating a few options for fractions in text. Gavin \usetypescriptfile[libertinus] \setupbodyfont [libertinus,11pt]% \setupinterlinespace[line=3.1ex] \define\fracone{\getnamedglyphdirect{libertinus}{onesuperior}} % 1 \define\fracthree{\getnamedglyphdirect{libertinus}{threesuperior}} % 3 \define\fracnine{\getnamedglyphdirect{libertinus}{ninesuperior}} % 9 \define\thirteenths{\textfraction\getnamedglyphdirect{libertinus}{oneinferior}\getnamedglyphdirect{libertinus}{threeinferior}} % /13 \define\onethirteenth{\text{\fracone\thirteenths}} % 1/13 \define\threethirteenths{\text{\fracthree\thirteenths}} % 3/13 \define\ninethirteenths{\text{\fracnine\thirteenths}} % 9/13 \starttext Some small fractions are already available in many fonts, like \onehalf\ and \onethird. Others can be built using superior and inferior numbers in some fonts. This includes the fractions required to find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{\threethirteenths}$, $m=\sqrt{\onethirteenth}$, and $n=\sqrt{\ninethirteenths}$. Of course, you could just find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{3/13}$, $m=\sqrt{1/13}$, and $n=\sqrt{9/13}$. Vulgar fractions are between these extremes. Find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{\vfrac{3}{13}}$, $m=\sqrt{\vfrac{1}{13}}$, and $n=\sqrt{\vfrac{9}{13}}$. I included more text than strictly necessary in this example to demonstrate the effect on line spacing. \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions 2023-12-10 12:24 ` [NTG-context] Re: Fractions Henning Hraban Ramm 2023-12-10 13:19 ` Gavin via ntg-context @ 2023-12-11 14:23 ` Henning Hraban Ramm 1 sibling, 0 replies; 12+ messages in thread From: Henning Hraban Ramm @ 2023-12-11 14:23 UTC (permalink / raw) To: ntg-context Am 10.12.23 um 13:24 schrieb Henning Hraban Ramm: > Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks > “horrible” in comparison to the few usual fractions contained in fonts > (like ½ & ¾). I take this back: I had a problem in my font setup. Usually, \vulgarfraction is quite okay. Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 13:43 [NTG-context] Fractions (was \placefigure[location=here...] problem) Wolfgang Schuster 2023-12-09 13:57 ` [NTG-context] " Henning Hraban Ramm @ 2023-12-09 15:33 ` Aditya Mahajan 2023-12-10 11:37 ` Hans Hagen via ntg-context 1 sibling, 1 reply; 12+ messages in thread From: Aditya Mahajan @ 2023-12-09 15:33 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > \starttext > > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} > \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} > \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} > \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} > \stoplines > > \stoptext Or, for inline math, $\sqrt{1/3}$. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) 2023-12-09 15:33 ` [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) Aditya Mahajan @ 2023-12-10 11:37 ` Hans Hagen via ntg-context 0 siblings, 0 replies; 12+ messages in thread From: Hans Hagen via ntg-context @ 2023-12-10 11:37 UTC (permalink / raw) To: ntg-context; +Cc: Hans Hagen On 12/9/2023 4:33 PM, Aditya Mahajan wrote: > On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > >> \starttext >> >> \startlines >> \type{\frac{1}{3}}: \m{\frac{1}{3}} >> \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} >> \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} >> \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} >> \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} >> \type{\frac{1}{3}}: \m{\frac{1}{3}} >> \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} >> \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} >> \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} >> \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} >> \stoplines >> >> \stoptext > > Or, for inline math, $\sqrt{1/3}$. radicals are somewhat special to deal with: - multidimensional delimiter - vertical spacing inside - horizontal spacing oustside - anchoring degrees - left and right radicals - more consistent rules (char based) - size dependent additional spacing (avoid clash) - normalize size across formula - lack of granularity in variants sizes by now we have dealt with all of that (some not in the current release), think of additional control in the engine, compensation for insufficient opentype math features, companion fonts with more sizes there will always be suboptimal cases but the average is ok (we put radical - character kerning on hold because it is a lot of definitions) and we don't want to add hard to fight heuristics so to inline: in most cases the solution that Adirya suggests will work out okay with respect toline spacing Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-12-11 14:25 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-12-09 13:43 [NTG-context] Fractions (was \placefigure[location=here...] problem) Wolfgang Schuster 2023-12-09 13:57 ` [NTG-context] " Henning Hraban Ramm 2023-12-09 14:47 ` anton.chigurh 2023-12-09 15:13 ` Fabrice Couvreur 2023-12-09 14:52 ` Wolfgang Schuster [not found] ` <CACyK-ep3tOb5w5pWwqYBt5pOwBFGr=H19vGbJ9pJ61Xmz7zwtw@mail.gmail.com> 2023-12-09 15:39 ` Wolfgang Schuster 2023-12-09 22:30 ` Mikael Sundqvist 2023-12-10 12:24 ` [NTG-context] Re: Fractions Henning Hraban Ramm 2023-12-10 13:19 ` Gavin via ntg-context 2023-12-11 14:23 ` Henning Hraban Ramm 2023-12-09 15:33 ` [NTG-context] Re: Fractions (was \placefigure[location=here...] problem) Aditya Mahajan 2023-12-10 11:37 ` Hans Hagen via ntg-context
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).