ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: vertical alignment problem in column items
       [not found] <mailman.221.1353140504.2161.ntg-context@ntg.nl>
@ 2012-11-17  8:51 ` Jeong Dal
  0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal @ 2012-11-17  8:51 UTC (permalink / raw)
  To: ntg-context

Dear Otared,

Thank you for detailed explanations.

I got the same results as you explained.
There may be something which controls the vertical spaces in columns.
I believe that it will be resolved soon.

Best regards,

Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vertical alignment problem in column items
  2012-11-17  4:03 Jeong Dal
@ 2012-11-17  5:21 ` Otared Kavian
  0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2012-11-17  5:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <haksan@me.com> wrote:

> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* vertical alignment problem in column items
@ 2012-11-17  4:03 Jeong Dal
  2012-11-17  5:21 ` Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal @ 2012-11-17  4:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-17  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.221.1353140504.2161.ntg-context@ntg.nl>
2012-11-17  8:51 ` vertical alignment problem in column items Jeong Dal
2012-11-17  4:03 Jeong Dal
2012-11-17  5:21 ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).