From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26822 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: placefigure feature request ? Date: Wed, 05 Apr 2006 11:43:46 -0400 Message-ID: References: <443377C4.4090704@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144252184 22102 80.91.229.2 (5 Apr 2006 15:49:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 15:49:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 05 17:49:42 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FRAFw-00049G-Dk for gctc-ntg-context-518@m.gmane.org; Wed, 05 Apr 2006 17:49:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E7C8127B8; Wed, 5 Apr 2006 17:49:16 +0200 (CEST) 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 20244-03-6; Wed, 5 Apr 2006 17:49:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41C83127B3; Wed, 5 Apr 2006 17:49:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE688127B2 for ; Wed, 5 Apr 2006 17:49:05 +0200 (CEST) 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 20244-03-4 for ; Wed, 5 Apr 2006 17:49:01 +0200 (CEST) Original-Received: from smtpauth07.mail.atl.earthlink.net (smtpauth07.mail.atl.earthlink.net [209.86.89.67]) by ronja.ntg.nl (Postfix) with SMTP id 301A3127A0 for ; Wed, 5 Apr 2006 17:49:00 +0200 (CEST) Original-Received: from [18.90.6.59] (helo=approximate.corpus.cam.ac.uk) by smtpauth07.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1FRAFg-0000nL-4D; Wed, 05 Apr 2006 11:49:00 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1FRAAc-0002zs-3l; Wed, 05 Apr 2006 11:43:46 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Wed, 05 Apr 2006 09:54:44 +0200." <443377C4.4090704@elvenkind.com> X-Mailer: MH-E 7.93; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d47848d7ba2f7fbb8675f6ba5e5ea7835e2730028eaedab17856350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 18.90.6.59 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26822 Archived-At: Taco Hoekwater wrote: > Hans Hagen wrote: > >>So 'numbering=yes' will number according to position on the page? > >> > > no > > To avoid confusion: > > When 'page' refers to the typeset result, then Hans' answer actually > means 'yes'. Or it should, at least. I remember files where I had to > run texexec twice though. I am not sure if that bug still happens, > so be careful. Right, I meant in pages of the typeset result. I'll watch for the need to run texexec and make a minimal example if I find the problem. Meanwhile I've been experimenting in baby steps, and numbering=yes does what I want, as does specifying nothing about numbering. But numbering=nocheck doesn't stop it, so I'm confused by what the nocheck option does (doesn't cause me problems since the default is what I want, but I'm curious). Probaby I'm just using an old version of context since the texshow-web says that numbering=nocheck is a new option. My last attempt at upgrading didn't go well (I have tetex-3.0) but maybe it's time to try again. $ texexec --version TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2006.3.28 mes: english With this output on the file $ texexec 2m [...snip...] systems : begin file 2m at line 6 (/usr/share/texmf-tetex/tex/context/sample/tufte.tex) figures : dimensions of ./a.1 loaded from figurefile itself (./2m.tuo) floatblocks : 1 renumbered / figure 1 => 2 floatblocks : 1 placed (/usr/share/texmf-tetex/tex/context/sample/knuth.tex) figures : dimensions of ./a.2 loaded from figurefile itself floatblocks : 2 renumbered / figure 2 => 1 floatblocks : 2 placed [1.1] systems : end file 2m at line 13 [...snip...] So the figures get renumbered. Here's the 2m.tex file: ====================================================================== \setuplayout[textwidth=3.6in, rightmargin=2in] \useexternalfigure[mpg][a.1] \useexternalfigure[mpg2][a.2] \setupfloats[numbering=nocheck] \starttext \input tufte \placefigure[rightmargin]{first in source file.}{\externalfigure[mpg]} \par \input knuth \placefigure[top]{second in source file.}{\externalfigure[mpg2]} \par \stoptext ====================================================================== Where a.mp to produce a.1 and a.2 is: ====================================================================== beginfig(1) fill unitsquare scaled 1in withcolor red; endfig; beginfig(2) fill unitsquare scaled 1in withcolor green; endfig; end ====================================================================== -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal