{\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
}{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
>
> \stopt
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
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
{\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
}}: \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
It seems that displaystyle fractions insert extra vertical space before the
main item.
With textstyle fractions, the code works fine.
\blank[back,overlay] can get rid of the gap above the first row, but not
the space inserted by \dfrac.
\defineitemgroup[alex]
\setupitemgroup
[alex]
[each
{ward}
\startitemize[n][style=\bf]
\startitem
\startalextable
\startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem
\startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem
\startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem
\startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9
bf]
> \item \godown[-\lineheight] \startitemize
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \ite
[nowhite]}]
\item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
\stopitemize
\stopitemize
A. Christe
Le 22 août 2023 à 04:08 +0200, fv leung
I'd do it this way:
\starttext
\startitemize[n][style=\bf]
\item\vtop{%
\startitemize[a,horizontal,four][stopper=\)]
\startitem
$6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\stopitem
\startitem
$-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\stopitem
\startitem
$7(x
[a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
\item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
\stopitemize
\stopitemize
}
\stopformula
\stopitemize
\stopexercici
@fv leung said I have to replace frac for dfrac, but it mess up the following
content in my book.
Thanks all,
On Thu, 24 Feb 2022 23:04:43 +
Bruce Horrocks ha escrit:
>
>
> > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get
display style fraction.
\defineenumeration
[exercici]
[alternative=serried, before={\blank[medium]\testpage[1]},
text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
distance=0.25em, width=fit, headcolor
de\plusone
> > \protect
> > \popcatcodetable
> > \popoverloadmode}
> >
> > \starttikzinput
> > \input t-pgf
> > \stoptikzinput
> >
> >
> > \usetypescriptfile[euler]
> > \definetypeface[mainfont][rm][serif][pagella][defa
\stoptikzinput
\usetypescriptfile[euler]
\definetypeface[mainfont][rm][serif][pagella][default]
\definetypeface[mainfont][mm][math] [pagellaovereuler][default]
\definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8,
features=none]
\setupbodyfont[mainfont,11pt]
\starttext
$\dfrac{1}{2
tikzinput
\usetypescriptfile[euler]
\definetypeface[mainfont][rm][serif][pagella][default]
\definetypeface[mainfont][mm][math] [pagellaovereuler][default]
\definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8,
features=none]
\setupbodyfont[mainfont,11pt]
\starttext
$\dfrac{1}{2}$
\stoptext
w
] [dejavu][default] [rscale=0.8,
features=none]
\setupbodyfont[mainfont,11pt]
\starttext
$\dfrac{1}{2}$
\stoptext
which gives:
system > module wrapping error in 'tikz'
close source> level 2, order 67, name
'/opt/luametatex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open
d'or, noté \m{\phi}, est tel que
\m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
\stopexercice
\startsolution
Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel.
\stopsolution
\stoptext
>[text=Exercice,
> number=yes,
> numbercommand=\groupedcommand{}{.},
> style=italic]
>
> \defineenumeration
>[solution]
>[text=Solution,
> headcommand=\ACFRAME,
> number=no,
> numbercommand=\groupedcommand{}{},
> style=normal]
>
>
=normal]
\starttext
\startexercice{Le nombre d'or est irrationnel}
Le nombre d'or, noté \m{\phi}, est tel que
\m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
\stopexercice
\startsolution
Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel.
\stopsolution
On 12/24/2020 4:37 PM, Fabrice Couvreur wrote:
Hi,
I just updated lmtx and I don't understand the error that occurs with
the \dfrac{}{}. Thank you.
Fabrice
#
\starttext
\m{f(x)=\dfrac{a + b\ln(x)}{x}}
\stoptext
#
tex error > tex error on lin
Hi,
I just updated lmtx and I don't understand the error that occurs with the
\dfrac{}{}. Thank you.
Fabrice
#
\starttext
\m{f(x)=\dfrac{a + b\ln(x)}{x}}
\stoptext
#
tex error > tex error on line 2 in file ./hans_21.tex: Math error:
parame
ntinued
> fractions:|
> > ||
> >
> > |%
> https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format
> >
> \documentclass{article}\usepackage{amsmath}\begin{document}\newcommand*{\cofrac}[2]{%{%\rlap{$\dfrac{1}{\p
}\newcommand*{\cofrac}[2]{%{%\rlap{$\dfrac{1}{\phantom{#1}}$}%\genfrac{}{}{0pt}{0}{}{#1+#2}%}%}\[a_0
+
\cofrac{a_1}{\cofrac{a_2}{\cofrac{a_3}{\genfrac{}{}{0pt}{0}{}{\ddots\]\end{document}
|
|As I could read from the mailing list, ConTeXt no longer supports
\genfrac, so I've tried
Hi list! I've tried adapting the following code for continued fractions:
%https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format
\documentclass{article}\usepackage{amsmath}
\begin{document}\newcommand*{\cofrac}[2]{%
{%
\rlap{$\dfrac{1
{\bi Affirmation 4 :} La valeur exacte de la somme des 12 premiers
termes de la suite géométrique \m{\left(u_n\right)} de premier terme \m{4}
et de raison \m{\dfrac{1}{3}} est :
\startformula
6\left(1-\left(\frac{1}{3}\right)^{13}\right)
\stopformula
tps://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net
>>
>> ___
>>
>>
>> Thank you very much, I'm looking forward to the next be
sed about the different versions. I would have guessed
that there was \tbinom and \dbinom and that \binom used one of them
depending on if one is in text mode or in display mode (just as I would
expect \frac to behave like \tfrac in text mode and \dfrac in display
mode). But \tbinom looks very differe
orward to the next beta, and I will try
to wikify it when I have tried it out. Also lucida looks better than latin
modern does at the moment.
I am a bit confused about the different versions. I would have guessed that
there was \tbinom and \dbinom and that \binom used one of them depending on
i
{\dfrac{15}{100}\times 12\,000.}
\item \math{1\,500.}
\item \math{1\,800.}
\stopitemize
\stopitemize
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
Hello,
I am posting again on the same subject but with more precision.
I use Standalone Context in its latest version.
We can observe that the alignment is not correct with \dfrac{}{} but it is
with {}\ over{}. But if I use Texlive 2016 there are no problems.
Thank you
Fabrice
correct, why ?
>
> ##
> \starttext
>
> \startitemize[n][stopper={.},style=bold,color=darkred]
>
>\item Soit \math{f} la fonction définie pour tout réel \m{x} différent
> de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
>
Hello,
The alignment of the third level is incorrect, why ?
##
\starttext
\startitemize[n][stopper={.},style=bold,color=darkred]
\item Soit \math{f} la fonction définie pour tout réel \m{x} différent
de \m{-1} par \math{f(x)=\dfrac{x+2
Something is wrong in the current implmentation of \tfrac.
If we take away all the bells and whistles provided by
\definemathfraction,
* \tfrac#1#2 should be equal to {\textstyle #2 \over #1}
* \dfrac#1#2 should be equal to {\displaystyle #2 \over #1}
* \frac should be equal to \tfrac
Hi Wolfgang,
Thank you for these three solutions. One thing I'm missing is the role
of grid I did not know.
Fabrice
___
If your question is of interest to others as well, please add an entry to the
Wiki!
Am 22.03.2015 um 13:10 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:
The alignment of the second item on the baseline is not correct if I use the
command \dfrac{}{}.
How to solve this problem without using the command \framed ?
Best regards,
Fabrice
\starttext
\startitemize
The alignment of the second item on the baseline is not correct if I use the
command \dfrac{}{}.
How to solve this problem without using the command \framed ?
Best regards,
Fabrice
\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold]
\item $f^{\prime}(x) = \dfrac{- 1}{(x
.
However, the settings don't seem to affect fractions inside square
roots. Here's an example (the 20pt setting is to exaggerate the
possible effect), using 2014.05.17 beta.
\starttext
\placeformula\startformula
\dfrac{ag}{bcd}\quad{ag\over bcd}
\stopformula
\placeformula\startformula
\sqrt{1\over
probabilité que ce soit une femme ?
{\it On note \math{P_{C}(F)} cette probabilité.}
\item Calculer \math{\dfrac{P(F \cap C)}{P(C)}}. Que constate-t-on ?
\stopitemize
\item \startitemize[a][stopper=),style=bold]
\item On choisit une femme parmi les personnes de l'entreprise. Quelle est
la probabilité
On 1/29/2013 12:20 AM, Khaled Hosny wrote:
On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote:
The \frac command uses \vcenter for the content while \dfrac and
\tfrac only set the mathstyle before placing the content with the
\over primitive.
The use of \vcenter seems odd here
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is
\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t
Le 28 janv. 13 à 10:11, Janne Junnila a écrit :
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is
\startformula
f_{B_t | B_s = S
On Mon, 28 Jan 2013, Roland Thiers wrote:
Le 28 janv. 13 à 10:11, Janne Junnila a écrit :
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
Am 28.01.2013 um 20:41 schrieb Aditya Mahajan adit...@umich.edu:
On Mon, 28 Jan 2013, Roland Thiers wrote:
Le 28 janv. 13 à 10:11, Janne Junnila a écrit :
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions
On Mon, 28 Jan 2013, Wolfgang Schuster wrote:
I'll look into fractions later this week. All the fraction macros of ConTeXt
were based on \genfrac macro from AMSTeX so, in principle, they should behave
in the same manner.
The \frac command uses \vcenter for the content while \dfrac
with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is
\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s
.
The \frac command uses \vcenter for the content while \dfrac and \tfrac only
set the mathstyle before placing the content with the \over primitive.
Then something has been lost in the MkII - MkIV transition. I am pretty sure
(cannot check right now), that the code in MkII used \genfrac
On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote:
The \frac command uses \vcenter for the content while \dfrac and
\tfrac only set the mathstyle before placing the content with the
\over primitive.
The use of \vcenter seems odd here as it means the fraction rule
to illustrate my point. The result seems to be
independent of the font in use.
\startformula
-\frac{e^{\frac{4}{5}}}{4}
\stopformula
Janne
Hi Janne,
With \dfrac it looks good.
With \fraction the minus sign is on the top of the fraction.
Best regards, Roland
]
\startMPpage[offset=1ex]
u := cm ;
label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin);
label.top(textext($ \frac{\sigma_t}{a}$), (u,u));
label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0));
\stopMPpage
Greeting
Andreas
]
\startMPpage[offset=1ex]
u := cm ;
label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin);
label.top(textext($ \frac{\sigma_t}{a}$), (u,u));
label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0));
\stopMPpage
Andreas
Thanks for answer!
Is this code you wrote supposed
of incoprorating a nath like frac in ConTeXt. So, we can
have
\definemathfraction[frac][style=...]
where style can take values
default: the current frac implementation
auto:the nath like implementation
displaystyle: the current dfrac implementation
textstyle: the current tfrac implementation
the main fraction bar in the following expression,
making it a tad longer?
Just add a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
{\,\dfrac{4x^3-9x}{2x^2+5x-12}\,}
You may want to add a \vphantom command as well to separate the
fractions from the main
fraction bar in the following expression,
making it a tad longer?
Just add a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
{\,\dfrac{4x^3-9x}{2x^2+5x-12}\,}
You may want to add a \vphantom command as well to separate the
fractions from the main bar
2, 2006, at 4:00 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
Just add a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
{\,\dfrac{4x^3-9x}{2x^2+5x
that suits you.
Aditya
On Jul 2, 2006, at 4:00 AM, Taco Hoekwater wrote:
David Arnold wrote:
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
Just add a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16
a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
{\,\dfrac{4x^3-9x}{2x^2+5x-12}\,}
You may want to add a \vphantom command as well to separate the
fractions from the main bar a bit more.
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2
David Arnold wrote:
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
Just add a bit of whitespace to the right and left:
\dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
{\,\dfrac{4x^3-9x}{2x^2+5x-12}\,}
You may want to add a \vphantom
On 7/2/06, David Arnold wrote:
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
\placeformula
\startformula
\dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}.
\stopformula
I don't know what \dfrac should be (I assumed \let
All,
How can I extend the main fraction bar in the following expression,
making it a tad longer?
\placeformula
\startformula
\dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}.
\stopformula
___
ntg-context mailing list
ntg-context@ntg.nl
\mathematics#1{\relax\ifmmode#1\else$#1$\fi}
[...]
That fixes the problem on my end; thanks!
Will you be updating the defintions of \tfrac, \dfrac, and so forth in
m-newmat to match? I admit to not being too sure whether I think it's a
good idea to support using math constructs such as \frac outside
}{#2}}}
\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi}
[...]
That fixes the problem on my end; thanks!
Will you be updating the defintions of \tfrac, \dfrac, and so forth in
m-newmat to match? I admit to not being too sure whether I think it's
a good idea to support using math constructs
On Wed, Aug 04, 2004 at 12:14:29AM +0200, Hans Hagen Outside wrote:
Brooks Moses wrote:
That fixes the problem on my end; thanks!
Will you be updating the defintions of \tfrac, \dfrac, and so forth in
m-newmat to match? I admit to not being too sure whether I think it's
a good idea
?
Changing it to \dfrac makes the input compile ok, but
typesets the cases in an ugly manner with really narrow
spacing.
(Yes.)
Is there some way of telling startcases/stopcases to behave in display
mode?
Yup, I just changed a couple of things and now we have a
\startbigcases ... \stopbigcases
Hello Giuseppe,
I'm having a little trouble with the cases in amsl.
Compiling this:
\[
f(x) =
\startcases
0 \text{if $x -\epsilon$} \\
\frac12 \text{if $x \epsilon$}
\stopcases
\]
results in an error around the \frac. Changing it to \dfrac makes the
input compile ok
66 matches
Mail list logo