ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: placefigure feature request ?
Date: Wed, 05 Apr 2006 11:43:46 -0400	[thread overview]
Message-ID: <E1FRAAc-0002zs-3l@approximate.corpus.cam.ac.uk> (raw)
In-Reply-To: Your message of "Wed, 05 Apr 2006 09:54:44 +0200." <443377C4.4090704@elvenkind.com>

Taco Hoekwater <taco@elvenkind.com> 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

  reply	other threads:[~2006-04-05 15:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-04 15:44 Renaud AUBIN
2006-04-04 17:15 ` Hans Hagen
2006-04-04 17:53   ` Sanjoy Mahajan
2006-04-04 21:06     ` Hans Hagen
2006-04-04 23:23       ` Sanjoy Mahajan
2006-04-05  7:37         ` Hans Hagen
2006-04-05  7:54           ` Taco Hoekwater
2006-04-05 15:43             ` Sanjoy Mahajan [this message]
2006-04-05 18:06               ` Hans Hagen
2006-04-05 19:37                 ` Sanjoy Mahajan
2006-04-05 20:46                   ` Hans Hagen
2006-04-06  2:20                     ` Sanjoy Mahajan
2006-04-06  8:01                       ` Taco Hoekwater
2006-04-04 21:23     ` Hans Hagen
2006-04-05 15:48       ` Sanjoy Mahajan
2006-04-05 16:53         ` Hans Hagen
2006-04-12 22:12       ` Sanjoy Mahajan
2006-04-13  7:57         ` Hans Hagen
2006-04-13 13:30           ` Sanjoy Mahajan
2006-04-14  8:52             ` Hans Hagen
2006-04-14 13:59               ` Sanjoy Mahajan
2006-04-14 14:09                 ` Hans Hagen
2006-04-14 16:45                   ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FRAAc-0002zs-3l@approximate.corpus.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).