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
___________________________________________________________________________________
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
___________________________________________________________________________________