# Nested itemize with large lines in ConTeXt

When I try to nest lists like this:

\starttext
\startitemize[n]
\item bla
\item \startitemize[a]
\item bla $\displaystyle\int$
\item bla
\stopitemize
\stopitemize
\stoptext


I get this result, where the 2 and the a are not aligned:

This problem is caused by the large line $\displaystyle\int$.

I can somewhat work around this using some \vskip manually, but this is far from ideal.

The equivalent code in LaTeX works well.

I use ConText MkIV (2013.05.28) from the standalone installation.

-
\smash{$\displaystyle\int$}? –  Henri Menke Mar 23 '14 at 12:43
\smash{...} doesn't really work because the integral symbol will overwrite the text on the lines above and below. –  Yann Mar 24 '14 at 12:59
–  Aditya Mar 27 '14 at 23:33

The command \smash does work, as long as it is within math mode, How would it operate in the formula, which in turn is within an itemize list, without overwriting the lines above it, unless it's within such environment. So, the comment above, by Menke, is partially correct, and I said partially, because its implementation to resolve the problem in your question, was not.

You can also use \mathop{\smash{\tfc\displaystyle\int}}

So for example:


\starttext
\startitemize[n]
\item \input knuth
\item \startitemize[a]
\item bla $\smash{\displaystyle\int}$
\item \input zapf
\stopitemize
\stopitemize
\stoptext


-