ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: vertical alignment problem in column items
Date: Sat, 17 Nov 2012 06:21:24 +0100	[thread overview]
Message-ID: <355EB879-4ADD-48B5-B505-D80641E4F9D8@gmail.com> (raw)
In-Reply-To: <2ADB3341-64D9-4994-84A6-CAF5A72EA87A@me.com>

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
___________________________________________________________________________________


  reply	other threads:[~2012-11-17  5:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17  4:03 Jeong Dal
2012-11-17  5:21 ` Otared Kavian [this message]
     [not found] <mailman.221.1353140504.2161.ntg-context@ntg.nl>
2012-11-17  8:51 ` Jeong Dal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=355EB879-4ADD-48B5-B505-D80641E4F9D8@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).