* page reference to figure fails when figure location is "none"
@ 2014-04-06 10:14 Sanjoy Mahajan
2014-04-06 11:10 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-04-06 10:14 UTC (permalink / raw)
To: ntg-context
Using a recent MkIV beta (2014.03.27), it seems that a page reference to
a figure fails if the figure location is "none." Here is a minimal
example:
\starttext
\input knuth
\placefigure[none][regularref]{}{\pagereference[workaroundref]
\externalfigure[cow.pdf]}
\input knuth
See \at{page}[workaroundref] or \at{page}[regularref]
\stoptext
The log file has
references > unknown reference '[][regularref]'
and the .pdf file has
See page 1 or page ??
That is, the "\at{page}[regularref]" doesn't work. (But the workaround
reference does work.)
If the figure's location key is changed from "none" to "nonumber" or
just deleted, then the regularref page reference works.
It also works with MkII (with or without "none"), so I am guessing that
it is a bug in MkIV.
-Sanjoy
___________________________________________________________________________________
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] 3+ messages in thread
* Re: page reference to figure fails when figure location is "none"
2014-04-06 10:14 page reference to figure fails when figure location is "none" Sanjoy Mahajan
@ 2014-04-06 11:10 ` Hans Hagen
2014-04-06 13:10 ` Sanjoy Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2014-04-06 11:10 UTC (permalink / raw)
To: ntg-context
On 4/6/2014 12:14 PM, Sanjoy Mahajan wrote:
> Using a recent MkIV beta (2014.03.27), it seems that a page reference to
> a figure fails if the figure location is "none." Here is a minimal
> example:
>
> \starttext
>
> \input knuth
>
> \placefigure[none][regularref]{}{\pagereference[workaroundref]
> \externalfigure[cow.pdf]}
>
> \input knuth
>
> See \at{page}[workaroundref] or \at{page}[regularref]
>
> \stoptext
>
> The log file has
>
> references > unknown reference '[][regularref]'
>
> and the .pdf file has
>
> See page 1 or page ??
>
> That is, the "\at{page}[regularref]" doesn't work. (But the workaround
> reference does work.)
>
> If the figure's location key is changed from "none" to "nonumber" or
> just deleted, then the regularref page reference works.
>
> It also works with MkII (with or without "none"), so I am guessing that
> it is a bug in MkIV.
more a side effect .. in mkii we store refs independently, in mkiv they
can also travel with other properties (like lists and here we have no
list entry
in the next beta this will work ok
\starttext
\placefigure
[none]
[regularref-1]
{}
{\hbox{\pagereference[workaroundref-1]\externalfigure[cow.pdf]}}
\placefigure
[here]
[regularref-2]
{}
{\hbox{\pagereference[workaroundref-2]\externalfigure[cow.pdf]}}
See \at{page}[workaroundref-1] or \at{page}[regularref-1]
See \at{page}[workaroundref-2] or \at{page}[regularref-2]
\blank
\placelist[figure][criterium=text]
\stoptext
-----------------------------------------------------------------
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] 3+ messages in thread
* Re: page reference to figure fails when figure location is "none"
2014-04-06 11:10 ` Hans Hagen
@ 2014-04-06 13:10 ` Sanjoy Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-04-06 13:10 UTC (permalink / raw)
To: Hans Hagen, ntg-context
Hans Hagen <pragma@wxs.nl> writes:
> more a side effect .. in mkii we store refs independently, in mkiv they
> can also travel with other properties (like lists and here we have no
> list entry
>
> in the next beta this will work ok
That make sense. I will try it out.
I have found a few other buglets with placefigure for which I will make
minimal examples.
--
-Sanjoy
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2014-04-06 13:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-06 10:14 page reference to figure fails when figure location is "none" Sanjoy Mahajan
2014-04-06 11:10 ` Hans Hagen
2014-04-06 13:10 ` Sanjoy Mahajan
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).