From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37089 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: itemize and math Date: Tue, 30 Oct 2007 15:19:49 +0100 Message-ID: <115224fb0710300719n43b366c4r3bb56420e7ca15a3@mail.gmail.com> References: <47271F87.31307.9A2BD8@wwl.musensturm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0140445646==" X-Trace: ger.gmane.org 1193754037 31333 80.91.229.12 (30 Oct 2007 14:20:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 14:20:37 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 30 15:20:37 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1ImrxJ-0003yT-Oo for gctc-ntg-context-518@m.gmane.org; Tue, 30 Oct 2007 15:20:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC0AE1FAAE; Tue, 30 Oct 2007 15:20:21 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04224-03; Tue, 30 Oct 2007 15:20:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A29E11FADF; Tue, 30 Oct 2007 15:20:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C4831FADF for ; Tue, 30 Oct 2007 15:20:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04206-07 for ; Tue, 30 Oct 2007 15:19:53 +0100 (CET) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by ronja.ntg.nl (Postfix) with ESMTP id EA58C1FAAE for ; Tue, 30 Oct 2007 15:19:51 +0100 (CET) Original-Received: by wx-out-0506.google.com with SMTP id i27so2048332wxd for ; Tue, 30 Oct 2007 07:19:50 -0700 (PDT) Original-Received: by 10.90.70.10 with SMTP id s10mr5622241aga.1193753990190; Tue, 30 Oct 2007 07:19:50 -0700 (PDT) Original-Received: by 10.90.98.20 with HTTP; Tue, 30 Oct 2007 07:19:49 -0700 (PDT) In-Reply-To: <47271F87.31307.9A2BD8@wwl.musensturm.de> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37089 --===============0140445646== Content-Type: multipart/alternative; boundary="----=_Part_3088_6759086.1193753989703" ------=_Part_3088_6759086.1193753989703 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/10/30, Wolfgang Werners-Lucchini : > > Sorry, I don't understand what the problem is! It is related to ConTeXt's multicolumn Output Routine. > > I have a problem with > > > > > > \startitemize[columns,a] > > > \item $a_n=2+\frac{1}{n+1}$ > > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > > \stopitemize > > > > > > Hi, > > > > this did not wotk because the second formula is than the first and > -------------------------------------------------^ (what?) > > > the multicolumn OTR tries to put half or less of the text into the > > second column, you can now force a second column with the \column > > command after the first line or you switch both > > formulas and the OTR can make two columns. > > > > \starttext > > > > \startitemize[columns,a] > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > \item $a_n=2+\frac{1}{n+1}$ > > \stopitemize > > Why is this working? Here the first column is as big as the second > above (same formula), so the same problem should arise with the first > column as above with the second? No, they are not, the first row (column) is 1 points taller than the second one, you can test this with TeX. \starttext \setbox\scratchbox\hbox{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$} Formula 1: \copy\scratchbox Height of formula 1: \the\ht\scratchbox \setbox\scratchbox\hbox{$a_n=2+\frac{1}{n+1}$} Formula 2: \copy\scratchbox Height of formula 2: \the\ht\scratchbox \stoptext > \startitemize[columns,a] > > \item $a_n=2+\frac{1}{n+1}$ \column > > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ > > \stopitemize > > Why does the \column help with the first formula? Because itemize use for the columns key the multicolumns envrionment where you can force a new column with the \column command. The internal work for this case is something like in the following example: \starttext \startcolumns $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ $a_n=2+\frac{1}{n+1}$ \stopcolumns \startcolumns $a_n=2+\frac{1}{n+1}$ \column $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ \stopcolumns \stoptext No, I don't understand this at all. I hope my examples helped you a little bit to understand the problems in your example and why my methods worked. Wolfgang ------=_Part_3088_6759086.1193753989703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/10/30, Wolfgang Werners-Lucchini <wwl@musensturm.de>:
Sorry, I don't understand what the problem is!

It is related to ConTeXt's multicolumn Output Routine.

> > I have a problem with
> >
> > \startitemize[columns,a]
> > \item $a_n=2+\frac{1}{n+1}$
> > \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> > \stopitemize
> >

> Hi,
>
> this did not wotk because the second formula is than the first and
-------------------------------------------------^ (what?)

> the multicolumn OTR tries to put half or less of the text into the
> second column, you can now force a second column with the \column
> command after the first line or you switch both
> formulas and the OTR can make two columns.
>
> \starttext
>
> \startitemize[columns,a]
> \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> \item $a_n=2+\frac{1}{n+1}$
> \stopitemize

Why is this working? Here the first column is as big as the second
above (same formula), so the same problem should arise with the first
column as above with the second?

No, they are not, the first row (column) is 1 points taller than the second
one, you can test this with TeX.

\starttext

\setbox\scratchbox\hbox{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}

Formula 1: \copy\scratchbox

Height of formula 1: \the\ht\scratchbox

\setbox\scratchbox\hbox{$a_n=2+\frac{1}{n+1}$}

Formula 2: \copy\scratchbox

Height of formula 2: \the\ht\scratchbox

\stoptext

> \startitemize[columns,a]
> \item $a_n=2+\frac{1}{n+1}$ \column
> \item $a_n=\frac{(-1)^n}{\sqrt{n}}-3$
> \stopitemize

Why does the \column help with the first formula?

Because  itemize use for the columns key the  multicolumns envrionment
where you can force a new column with the \column command.

The internal work for this case is something like in the following example:

\starttext

\startcolumns
$a_n=\frac{(-1)^n}{\sqrt{n}}-3$

$a_n=2+\frac{1}{n+1}$
\stopcolumns

\startcolumns
$a_n=2+\frac{1}{n+1}$ \column

$a_n=\frac{(-1)^n}{\sqrt{n}}-3$
\stopcolumns

\stoptext

No, I don't understand this at all.

I hope my examples helped you a little bit to understand the problems
in your example and why my methods worked.

Wolfgang

------=_Part_3088_6759086.1193753989703-- --===============0140445646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0140445646==--