\usemodule[ipsum]

\setuptolerance
[tolerant,stretch]

\setuplayout[
alternative=doublesided,
location=middle,
margin=0in,
width=fit,
headerdistance=0.5in,
header=0.75in,
backspace=0.5in,
backspace=0.75in,
footer=0in,
grid=yes,
lines=52,
]

\showgrid

\setupalign[hz,hanging]
\setupbodyfont[9pt]


\definemixedcolumns[textcols][
n=2, 
balance=yes,
before={\blank[line]},
after={\blank[line]},
distance=0.25in,
]

\setupmathematics[
integral=nolimits,
align=normal,
]


\setupformulas[
strut=yes,
grid=min,
]

\starttext

\startbuffer
\startsection[title={This is a test section}]
\ipsum[alternative=lines,n=5]
\startformula
f(x)=\int_a^x f'(t)\,dt
\stopformula
\ipsum[alternative=lines,n=8]
\placefigure{Caption}{\blackrule[width=\textwidth,height=2cm]}
\ipsum[alternative=lines,n=9]
\startformula
\startalign
\NC a^2\NC = b^2+c^2\NR
\NC x \NC = y+z\NR
\stopalign
\stopformula
\ipsum[alternative=lines,n=8]
\stopbuffer


\starttextcols
\dorecurse{10}{\getbuffer}
\stoptextcols



\stoptext
