[NTG-context] \goto links to figures are inactive

Otared Kavian otared at gmail.com
Sun Feb 3 19:36:47 CET 2013


Hi Hans, 

After changing the definition of
	\floatcaptionattribute
in the file
	[/context-minimal]/tex/texmf-context/tex/context/base/strc-flt.mkvi
and remaking th eformats with
	context --make --all
everything seems to work fine with the following example:
%%% begin goto-figure.tex
\starttext
\goto{Figure A}[fig:cow.pdf]

Reference to Figure A on page \at[fig:cow.pdf]

\goto{Table 1}[tab:Table01]

\goto{Some text}[Text]

\page
\startplacefigure[
	reference=fig:cow.pdf,
	title=Figure A,
	location={here,page,force,nonumber},
	]
	\externalfigure[cow.pdf][width=.5\textwidth]
\stopplacefigure
\page
\startplacetable[
	reference=tab:Table01,
	title=Table 1,
	location={here,force,nonumber},
	]
{\starttabulate[|	l	|	l	|]
\NC 1000
	\NC 2000
		\NC\NR
\stoptabulate}
\stopplacetable
					 
\page
Some text\reference[Text]{}
\page

\stoptext
%%% end goto-figure.tex

Best regards: OK

On 3 févr. 2013, at 15:29, Hans Hagen <pragma at wxs.nl> wrote:

> On 2/2/2013 2:25 PM, Alan Bowen wrote:
>> Sorry to keep pushing this—it is a problem for a journal that I publish.
>> 
>> I have re-installed the ConTeXt standalone and the problem persists with
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext
>> \goto{Figure A}[fig:cow.pdf]
>> 
>> Reference to Figure A on page \at[fig:cow.pdf]
>> 
>> \goto{Table 1}[tab:Table01]
>> 
>> \goto{Some text}[Text]
>> 
>> \page
>> \useexternalfigure[Graphic][cow.pdf][]
>> \placefigure[here,page,force,nonumber]
>> [fig:cow.pdf]
>> {Figure A}
>> {\externalfigure[cow.pdf][type=pdf,
>> width=.5\textwidth]}
>> \page
>> \placetable[here,force,nonumber]
>> [tab:Table01]
>> {Table 1}
>> {\starttabulate[|l|l|]
>> \NC 1000
>> \NC 2000
>> \NC\NR
>> \stoptabulate}
>> \page
>> Some text\reference[Text]{}
>> \stoptext
>> 
>> Only the last \goto works. Even the \at link fails, which is really
>> discouraging.
> 
> You can play with this:
> 
> \def\floatcaptionattribute
>  {\iflocation
> %      \ifnofloatnumber
> %      \else
>       \ifnofloatcaption
>       \else
>         \ifinsidesplitfloat
>            \ifconditional\splitfloatfirstdone
>            \else
>              attr \destinationattribute \currentfloatattribute
>            \fi
>         \else
>           attr \destinationattribute \currentfloatattribute
>         \fi
>       \fi
> %      \fi
>   \fi}
> 
> I have no time for testing right now so you need to check all odd cases before I change something.
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          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 at 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list