Changes

Jump to navigation Jump to search
Below we show some of the often used fonts, together with the default setting and the one just suggested. The default look of the binomial coefficients look good in several fonts, but for example not perfect in Latin Modern: you can . You may want to play with {{cmd|definemathfraction}} (threshold key ??).
\setuphead[section][style=\bfa]
\setuphead[subsection][style=\it]
 
\setuplayout[
\column[yes]
 
\setupmathfractions[binom][
fences=parenthesis,
]
 
\switchtobodyfont[modern]
\subject{With fences=parenthesis}
\subsubject{Latin Modern}
\getbuffer
 
\switchtobodyfont[pagella]
\subsubject{Pagella}
\getbuffer
 
\switchtobodyfont[stixtwo]
\subsubject{STIX Two}
\getbuffer
 
%\switchtobodyfont[lucidaot]
%\subsubject{Lucida}
%\getbuffer
 
\stopcolumns
\stoptext
</context>
 
The result of the code above, with the standalone from 2017-09-05 is given below.
 
[[File:binomialcoefficients.png|700px]]
 
<context source="yes">
 
\startbuffer
\type{\binom{n}{k}}: $\binom{n}{k}$\par
\type{\tbinom{n}{k}}: $\tbinom{n}{k}$\par
\type{\dbinom{n}{k}}: $\dbinom{n}{k}$\par
\stopbuffer
 
\subsubject{Latin Modern} \getbuffer
 
\setupmathfractions[binomial][fences=parenthesis,threshold=1.5]
 
\subsubject{Latin Modern} \getbuffer
 
 
</context>
 
 
== Second test==
 
 
 
<context source="yes">
\setuphead[chapter][align=middle]
\setuphead[section][style=\bfa]
\setuphead[subsection][style=\it]
 
 
\setuplayout[
topspace=1in,
bottomspace=1in,
header=0pt,
footer=0pt,
backspace=1in,
margin=0pt,
width=fit,
height=fit,
]
\definemathfraction[binomial] [binom] [fences=parenthesis,rule=no]
\type{\dbinomial{n}{k}}: $\dbinomial{n}{k}$\par
\stopbuffer
 
\starttext
 
\title{Binomial coefficients}
 
\startcolumns[n=2]
 
\subject{Default settings}
 
\subsubject{Latin Modern}
\getbuffer
 
\switchtobodyfont[pagella]
\subsubject{Pagella}
\getbuffer
 
\switchtobodyfont[stixtwo]
\subsubject{STIX Two}
\getbuffer
 
%\switchtobodyfont[lucidaot]
%\subsubject{Lucida}
%\getbuffer
 
\column[yes]
 
\setupmathfractions[binom][
fences=parenthesis,
]
\switchtobodyfont[modern]
\subject{With fences=parenthesis\tex{definemathfraction}}
\subsubject{Latin Modern}
\getbuffer
\stopcolumns
\stoptext
 
</context>
 The result of the code above, with the standalone from 2017-09-05 is given below. [[CategoryFile:Mathbinomialcoefficients.png|700px]]
1,047

edits

Navigation menu