Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

Misaligned items

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.

share|improve this question
    
\smash{$\displaystyle\int$}? –  Henri Menke Mar 23 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 at 12:59
    
See news.gmane.org/… –  Aditya Mar 27 at 23:33

1 Answer 1

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

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.