Changes

Jump to navigation Jump to search
\startbuffer
\starttabulate[|l|l|l|]\HL\NC {\bf Code} \NC {\bf Typesetting} \NC\NR\HL\NC \type{\binom{n}{k}}: \NC $\binom{n}{k}$ \parNC\NR\NC \type{\tbinom{n}{k}}: \NC $\tbinom{n}{k}$ \NC\parNR\NC \type{\dbinom{n}{k}}: \NC $\dbinom{n}{k}$ \NC\NR\parstoptabulate
\stopbuffer
  \starttextstarttabulate[|l|l|l|]\HL\NC {\bf Size or style} \NC {\bf Code} \NC {\bf Typesetting} \NC\NR\HL\NC math \NC \type{\frac{1}{3}} \NC \m{\frac{1}{3}} \NC\NR\NC display \NC \type{\dfrac{1}{3}} \NC \m{\dfrac{1}{3}} \NC\NR\NC script \NC \type{\xfrac{1}{3}} \NC \m{\xfrac{1}{3}} \NC\NR\NC scriptscript \NC \type{\sfrac{1}{3}} \NC \m{\sfrac{1}{3}} \NC\NR\NC scriptscript \NC \type{\xxfrac{1}{3}} \NC \m{\xxfrac{1}{3}} \NC\NR\NC semi-horizontal \NC \type{\vfrac{1}{3}} \NC \m{\vfrac{1}{3}} \NC\NR\NC horizontal \NC \type{\hfrac{1}{3}} \NC \m{\hfrac{1}{3}} \NC\NR\NC continued \NC \type{\cfrac{1}{3}} \NC \m{\cfrac{1}{3}} \NC\NR\NC text \NC \type{\tfrac{1}{3}} \NC \m{\tfrac{1}{3}} \NC\NR\stoptabulate
\title{Binomial coefficients}
\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=parenthesisDefault settings} \subsubject{Latin Modern}\getbuffer \switchtobodyfont[pagella]\subsubject{Pagella} \getbuffer \switchtobodyfont[stixtwo]\subsubject{STIX Two} \getbuffer \switchtobodyfont[lucidaot]\subsubject{Lucida} \getbuffer
\stopcolumns\stoptext}</texcodecontext>
The result of the code above, with the standalone from 2017-09-05 is given below.
1,031

edits

Navigation menu