From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37524 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: typesetting a formula as a figure Date: Sat, 24 Nov 2007 08:46:31 -0700 Organization: Colorado State University 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 1195919263 32744 80.91.229.12 (24 Nov 2007 15:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 15:47:43 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 24 16:47:47 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 1IvxEQ-0000At-VN for gctc-ntg-context-518@m.gmane.org; Sat, 24 Nov 2007 16:47:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 143081FC67; Sat, 24 Nov 2007 16:47: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 32541-03-8; Sat, 24 Nov 2007 16:47:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2675B1FC54; Sat, 24 Nov 2007 16:47:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C41FF1FD37 for ; Sat, 24 Nov 2007 16:47:06 +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 32689-01-13 for ; Sat, 24 Nov 2007 16:46:28 +0100 (CET) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id F24701FCDF for ; Sat, 24 Nov 2007 16:45:35 +0100 (CET) Original-Received: (qmail 32329 invoked by uid 1006); 24 Nov 2007 15:45:34 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 2.978759 secs); 24 Nov 2007 15:45:34 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.6) by -v with SMTP; 24 Nov 2007 15:45:31 -0000 Original-Received: (qmail 30914 invoked from network); 24 Nov 2007 15:45:29 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (75.104.82.83) by -v with SMTP; 24 Nov 2007 15:45:29 -0000 In-Reply-To: <9FEF9143-F69E-40D2-B339-192D2607D360@mac.com> User-Agent: Opera Mail/9.24 (Win32) 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:37524 Archived-At: 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 =============== Notice the \setupcombinations[distance=2cm] ! Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________