* float at fixed position
@ 2010-04-22 18:15 Peter Rolf
2010-04-23 17:44 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2010-04-22 18:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
in a multi column layout I want to place a figure at a fixed position.
Inserting a floating object at a fixed position doesn't make any sense,
but I need the correct caption (number) for the graphic. Sadly
\placefigure fails with
[..]
todo : flush notes
todo : enable notes
! Missing number, treated as zero.
<to be read again>
\@@mc5@@mcwidth
\@@ar@@4 ...ace \OTRSETlocalwidth \scratchcounter
\relax
\OTRSETcheckwidthga...
\redoloop ->\expandrecursecontent
\endofloop
<to be read again>
{
<inserted text>
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
}
...
l.16 \stopcolumnset
?
Is this a bug or am I misusing the macro too much?
Example code at the end of this mail.
Peter
%----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
MTXrun | current version: 2010.04.16 21:08
This is LuaTeX, Version beta-0.60.1-2010042015 (rev 3640)
%----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\usemodule[visual]
\definecolumnset[example][n=4]
\definecolumnsetarea[one][left][x=1,y=1,nx=6,ny=6,state=start]
\setupcolumnsetareatext[one][left][\setup{test}]
\startsetups test
\placefigure[here][test]{test}{\externalfigure[cow]}
\stopsetups
\starttext
\startcolumnset[example]
\dorecurse{25}{\fakewords{50}{100}}
\stopcolumnset
\stoptext
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: float at fixed position
2010-04-22 18:15 float at fixed position Peter Rolf
@ 2010-04-23 17:44 ` Hans Hagen
2010-04-24 10:42 ` Peter Rolf
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2010-04-23 17:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 22-4-2010 8:15, Peter Rolf wrote:
> Hi,
>
> in a multi column layout I want to place a figure at a fixed position.
> Inserting a floating object at a fixed position doesn't make any sense,
> but I need the correct caption (number) for the graphic. Sadly
> \placefigure fails with
nx=3
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: float at fixed position
2010-04-23 17:44 ` Hans Hagen
@ 2010-04-24 10:42 ` Peter Rolf
2010-04-25 14:41 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2010-04-24 10:42 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
Am 23.04.2010 19:44, schrieb Hans Hagen:
> On 22-4-2010 8:15, Peter Rolf wrote:
>> Hi,
>>
>> in a multi column layout I want to place a figure at a fixed position.
>> Inserting a floating object at a fixed position doesn't make any sense,
>> but I need the correct caption (number) for the graphic. Sadly
>> \placefigure fails with
>
> nx=3
>
yes (example works) and no (no general solution) :)
I updated the example (end of mail). Haven't looked into the code, but
this looks like an indexing problem to me. If \@@mc4 stands for 'multi
column 4' we are in trouble, because only three columns are used here.
[..]
todo : enable notes
! Missing number, treated as zero.
<to be read again>
\@@mc4@@mcwidth
\@@ar@@4 ...ace \OTRSETlocalwidth \scratchcounter
\relax
\OTRSETcheckwidthga...
\redoloop ->\expandrecursecontent
\endofloop
<to be read again>
{
<inserted text>
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
}
...
l.19 \stopcolumnset
?
Peter
%-----------------------------------------------------
\setupexternalfigures[location={local,global,default}]
\setuppagenumbering[alternative=doublesided]
\usemodule[visual]
\definecolumnset[example][n=3]
\definecolumnsetarea[one][left][x=1,y=1,nx=3,ny=16,state=start]
\setupcolumnsetareatext[one][left][\setup{test}]
\startsetups test
\placefigure[here,force][test]{test}{\externalfigure[cow]}
\stopsetups
\starttext
\startcolumnset[example]
\dorecurse{25}{\fakewords{50}{100}}
\stopcolumnset
\stoptext
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: float at fixed position
2010-04-24 10:42 ` Peter Rolf
@ 2010-04-25 14:41 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-04-25 14:41 UTC (permalink / raw)
To: Peter Rolf; +Cc: mailing list for ConTeXt users
On 24-4-2010 12:42, Peter Rolf wrote:
> \startsetups test
> \placefigure[here,force][test]{test}{\externalfigure[cow]}
> \stopsetups
\startsetups test
\externalfigure[cow]
\stopsetups
don't use placefigure inside an area
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-25 14:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 18:15 float at fixed position Peter Rolf
2010-04-23 17:44 ` Hans Hagen
2010-04-24 10:42 ` Peter Rolf
2010-04-25 14:41 ` Hans Hagen
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).