From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37103 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: itemize and math Date: Tue, 30 Oct 2007 22:20:54 +0100 Message-ID: <4727AE46.12616.2C7C86D@wwl.musensturm.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193779011 12302 80.91.229.12 (30 Oct 2007 21:16:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 21:16:51 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 30 22:16:52 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 1ImyS1-0002XU-LS for gctc-ntg-context-518@m.gmane.org; Tue, 30 Oct 2007 22:16:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48FA61FABF; Tue, 30 Oct 2007 22:16:32 +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 11433-02; Tue, 30 Oct 2007 22:16:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B33B71FBFD; Tue, 30 Oct 2007 22:12:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C60B81FBFD for ; Tue, 30 Oct 2007 22:12:45 +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 11329-07-2 for ; Tue, 30 Oct 2007 22:12:35 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by ronja.ntg.nl (Postfix) with ESMTP id 9ACD41FBF6 for ; Tue, 30 Oct 2007 22:12:35 +0100 (CET) Original-Received: from [192.168.178.20] (frnk-590d34fa.pool.einsundeins.de [89.13.52.250]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1ImyO202Hg-0005OQ; Tue, 30 Oct 2007 22:12:34 +0100 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX1+3k/38tqqtAOG35Of3kogcHWUF4+hjmsqPsQ3 cLLURnt+brw5BkpbsXm33v8vHvY3jLl48rQFu79calcSioX8c6 tdjqEeX6552D2/HEkezGePY7miWQHYO 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:37103 Archived-At: > > > 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 Ahhh! The HEIGHT (not the width) ist the problem!? So: \startcolumns \dontleavehmode \vphantom{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}$a_n=2+\frac{1}{n+1}$% $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ \stopcolumns works too. Is there something like an \mathstrut macro? (I know, that there exists a macro with this name, but that uses ')' as height.) > I hope my examples helped you a little bit to understand the > problems in your example and why my methods worked. > > Wolfgang Hope, I have it! Thank you, Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________