From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: Fractions (was \placefigure[location=here...] problem)
Date: Sun, 10 Dec 2023 12:37:51 +0100 [thread overview]
Message-ID: <5301ad3b-dca3-4793-86cc-731685939f37@freedom.nl> (raw)
In-Reply-To: <s7037o57-0835-37qn-684p-5rr827qqn7qq@hzvpu.rqh>
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-12-10 11:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-09 13:43 [NTG-context] " 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5301ad3b-dca3-4793-86cc-731685939f37@freedom.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@freedom.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).