From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37534 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: typesetting a formula as a figure Date: Sun, 25 Nov 2007 00:00:42 -0500 (EST) Message-ID: References: <9FEF9143-F69E-40D2-B339-192D2607D360@mac.com> 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 1195966906 19058 80.91.229.12 (25 Nov 2007 05:01:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 05:01:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 25 06:01: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 1Iw9ct-0006B7-J9 for gctc-ntg-context-518@m.gmane.org; Sun, 25 Nov 2007 06:01:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C5E51FD04; Sun, 25 Nov 2007 06:01:31 +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 18983-01; Sun, 25 Nov 2007 06:01:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E5B11FCEC; Sun, 25 Nov 2007 06:01:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23BD61FCEC for ; Sun, 25 Nov 2007 06:01: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 02832-07 for ; Sun, 25 Nov 2007 06:00:50 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id 5DDCB1FCE3 for ; Sun, 25 Nov 2007 06:00:46 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY skycaptain.mr.itd.umich.edu ID 4749017C.4CC72.21901 ; 25 Nov 2007 00:00:44 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: 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:37534 Archived-At: On Sat, 24 Nov 2007, Idris Samawi Hamid wrote: > Dear Dalyoung, > > On Fri, 23 Nov 2007 22:56:30 -0700, Jeong Dalyoung wrote: > >> Dear Idris, >> >> I have used buffers and \plcadefigures to display formula and figure >> together. Here is my short sample file. >> >> \startbuffer[one] >> \startformula \startmatrix >> \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR >> \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR >> \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR >> \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR >> \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR >> \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR >> \stopmatrix \stopformula >> \stopbuffer >> >> \starttext >> >> \placefigure[here][fig:test]{Test of buffers} >> {\startcombination[2*2] >> {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} >> {\externalfigure[one.tmp]}{AA} >> {\externalfigure[one.tmp]}{BB} >> {\externalfigure[one.tmp]}{CC} >> \stopcombination} >> >> \stoptext >> >> Then, I got a strange output(fig 1: wide blank spaces between >> columns). If I use \getbuffer instead of \externalfigure, I got >> somewhat proper output(fig 2), but the figure is located much higher >> than the matrix(horizontal alignment is bad). >> >> What is wrong in my sample? Is there any option for \startcombination? > > \start-stopformula are for math display mode ($$-$$). Apparently having > display mode turned on within the buffer creates the extra space. Since > you are using combinations for your display there is no need for display > mode. The following works here: > > =============== > \startbuffer[one] > %\startformula > > \startmatrix > \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR > \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR > \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR > \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR > \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR > \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR > \stopmatrix > %\stopformula > \stopbuffer > > \starttext > > \setupcombinations[distance=2cm] > > \placefigure[here][fig:test]{Test of buffers} > {\startcombination[2*2] > % {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} > {\externalfigure[one.tmp]}{AA} > {\externalfigure[one.tmp]}{BB} > {\externalfigure[one.tmp]}{CC} > {\externalfigure[one.tmp]}{DD} > \stopcombination} > > \stoptext I would also add $\displaystyle ... $ around the matrices. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________