From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94225 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Skipped figure numbers Date: Thu, 31 Mar 2016 17:51:07 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1244931756-1459461069=:16335" X-Trace: ger.gmane.org 1459461204 948 80.91.229.3 (31 Mar 2016 21:53:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 21:53:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 23:53:13 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1alkWe-00053m-3t for gctc-ntg-context-518@m.gmane.org; Thu, 31 Mar 2016 23:53:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 20FA59B38; Thu, 31 Mar 2016 23:51:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cIsbo4qRbrhZ; Thu, 31 Mar 2016 23:51:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A78239B12; Thu, 31 Mar 2016 23:51:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 990579AEE for ; Thu, 31 Mar 2016 23:51:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CmTmcEG-6tl2 for ; Thu, 31 Mar 2016 23:51:24 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 213299ADC for ; Thu, 31 Mar 2016 23:51:12 +0200 (CEST) Original-Received: FROM [192.168.0.12] (unknown [135.0.226.162]) By hellskitchen.mr.itd.umich.edu ID 56FD9BCD.2BB18.31358; Authuser adityam; Thu, 31 Mar 2016 17:51:09 -0400 In-Reply-To: User-Agent: Alpine 2.02 (OSX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:94225 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1244931756-1459461069=:16335 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 31 Mar 2016, Aidan Nichol wrote: >> On Wed, 30 Mar 2016, Aidan Nichol wrote: >>=20 >>> I have been looking at various options for controlling how figures are = placed on a page and based on answers to similar questions in this mailing = list I tried various options. The most flexible one seems to be using tabl= es e.g. >>>=20 >>> \setupexternalfigures[location=3D{default}] >>>=20 >>> \starttext >>>=20 >>> \placefigure[]{}{\externalfigure[hacker][height=3D1in]} >>>=20 >>> \startxtable[frame=3Doff,align=3Dlow] >>> \startxrow >>> \startxcell[ny=3D2] >>> \placefigure[force][]{left twoup}{\externalfigure[mill][height=3D4i= n]} >>> \stopxcell >>> \startxcell >>> \placefigure[force][]{the first}{\externalfigure[spider][height=3D1.= 5in]} >>> \stopxcell >>> \stopxrow >>> \startxrow >>> \startxcell >>> \placefigure[force][]{the second}{\externalfigure[cow][height=3D1.5in= ]} >>> \stopxcell >>> \stopxrow >>> \stopxtable >>>=20 >>> It seems to work well except that figure numbers are being skipped. In = this example hacker=3D1 mill=3D8, spider=3D9 and cow=3D10. >>> Varying the contents of the table reveals that It is skipping two times= the number of figures in the table. >>>=20 >>> Is this an invalid combination of features I=E2=80=99m using or am I do= ing something wrong? >>=20 >> The contents of a table are typeset multiple times to get an idea of the >> height and width. Here is one option: >>=20 >> \useMPlibrary[dum] >>=20 >> \starttext >>=20 >> \bTABLE[frame=3Doff,align=3Dlow] >> \bTR >> \bTD[ny=3D2] >> \placefigure[here,\iftrialtypesetting nonumber \fi] >> []{left twoup}{\externalfigure[mill][width=3D2in,height= =3D4in]} >> \eTD >> \bTD >> \placefigure[here,\iftrialtypesetting nonumber \fi] >> []{the first}{\externalfigure[spider][width=3D2in,heigh= t=3D2in]} >> \eTD >> \eTR >> \bTR >> \bTD >> \placefigure[here,\iftrialtypesetting nonumber \fi] >> []{the second}{\externalfigure[cow][width=3D2in,height= =3D2in]} >> \eTD >> \eTR >> \eTABLE >> \stoptext >>=20 > Thanks Aditya > > That solved the problem @Hans: Does it make sense to disable \incrementcounter if=20 \trialtypesetting is active? Aditya --0-1244931756-1459461069=:16335 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --0-1244931756-1459461069=:16335--