vertical alignment problem in column items
Dear all, In the following example, the vertical alignment of items looks strange. I wonder it is my only problem. Is there anything what I have to do to correct it? Thank you. Best regards, Dalyoung % sample code \starttext \startitemize \item Find a well-ordered set. \startitemize[n, columns, four][stopper=,left=(, right=)] \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \stopitemize \stoptext
Hi Dalyoung,
I think that there must be a small bug in mkiv regarding itemize in columns, but at the same time I think that the problem comes from the fact that in your example you use inline maths and fractions: this perturbs the way the horizontal and vertical distances are calculated by mkiv. It seems that mkiv considers there is not enough horizontal space to put the four items in a row.
If you use two columns the problem is solved, as you can see in the following examples (please typest it both with mkii and mkiv to see the differences).
Best regards: OK
%%% begin itemize-dist-bug.tex
\starttext
\setupitemize[1][n] % first level itemize
\setupitemize[2][a,paragraph,columns][stopper=)] % second level itemize
%If you want more than two columns by default add "n=x"
\startitemize
\item Item one
\item Find a well-ordered set:
\startitemize[n=4] % <--- gives correct output both in mkii and mkiv
\item sub-one
\item sub-two
\item sub-three
\item sub-four
\stopitemize
\hairline
\startitemize[n=4] % <--- gives correct output in mkii, but not in mkiv
\item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\startitemize[n=4] % <--- gives incorrect output both in mkii and mkiv
\item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\startitemize[n=2] % <--- gives correct output both in mkii and mkiv
\item sub-one
\item sub-two
\item sub-three
\item sub-four
\stopitemize
\hairline
\startitemize[n=2] % <--- gives correct output both in mkii and in mkiv
\item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\startitemize[n=2] % <--- gives correct output both in mkii and mkiv
\item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\stoptext
%%% end itemize-dist-bug.tex
Best regards: OK
On 17 nov. 2012, at 05:03, Jeong Dal
Dear all,
In the following example, the vertical alignment of items looks strange.
I wonder it is my only problem. Is there anything what I have to do to correct it?
Thank you.
Best regards,
Dalyoung
% sample code
\starttext \startitemize
\item Find a well-ordered set.
\startitemize[n, columns, four][stopper=,left=(, right=)] \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \stopitemize \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Jeong Dal
-
Otared Kavian