ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* reference points with double colons (::) are not working
@ 2015-10-10  8:26 Eidenbenz  Michael
  2015-10-10  9:35 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Eidenbenz  Michael @ 2015-10-10  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I have double colons (::) in my reference points. 
(It's actually the same string I also use to refer to my publication database)
But they wont show up as you can see in the example below.

Is there any way to fix this?

Thanks for your help and best regards 

Michael

-----

\starttext

\placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
\placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par

The picture in \in{Figure}[img:cow] is a cow\par
The picture in \in{Figure}[img::mill] is a mill (cross reference is not working)\par 

\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] 3+ messages in thread

* Re: reference points with double colons (::) are not working
  2015-10-10  8:26 reference points with double colons (::) are not working Eidenbenz  Michael
@ 2015-10-10  9:35 ` Hans Hagen
  2015-10-10 15:18   ` Eidenbenz  Michael
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2015-10-10  9:35 UTC (permalink / raw)
  To: ntg-context

On 10/10/2015 10:26 AM, Eidenbenz  Michael wrote:
> Hello,
>
> I have double colons (::) in my reference points.
> (It's actually the same string I also use to refer to my publication database)
> But they wont show up as you can see in the example below.
>
> Is there any way to fix this?
>
> Thanks for your help and best regards

:: and ::: have special meaning (:; for another document and ::: for 
components and such)

> Michael
>
> -----
>
> \starttext
>
> \placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
> \placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par
>
> The picture in \in{Figure}[img:cow] is a cow\par
> The picture in \in{Figure}[img::mill] is a mill (cross reference is not working)\par
>
> \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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           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: reference points with double colons (::) are not working
  2015-10-10  9:35 ` Hans Hagen
@ 2015-10-10 15:18   ` Eidenbenz  Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Eidenbenz  Michael @ 2015-10-10 15:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Hans,

thanks for your answer.
i found a workaround by using only the key for the crossref and adding the "img::" in the macro. 

below is the working example (just for the record)

regards michael


-------

\startbuffer[duane]

    @image {tug2014,
        title       = "TUG 2014",
        url         = "http://tug.org/tug2014/",
        url_image   = "http://tug.org/art/tug2014-color.jpg",
        url_thumb   = "http://tug.org/tug2014/t2014-thumb.jpg",
        description = "Official drawing of the TUG 2014 conference",
        author      = "Duane Bibby",
        year        = 2014,
    }

\stopbuffer

\definebtxdataset
 [duane]

\usebtxdataset
 [duane]
 [duane.buffer]

\usebtxdefinitions      
 [duane]

\definebtxrendering
    [duane]
    [dataset=duane,
     method=local, 
    ]

\setupbtxlist
    [duane]
    [number=no]

\startsetups btx:duane:cite:image
   {\externalfigure[\btxfield{url_image}][width=10cm]}
\stopsetups

 \def\bild[#1]#2%
    {\placefigure[here][#1]{#2}{\cite[image][duane::#1]}}%

\def\bildref[#1]%
	{\in{\bf Fig.}[#1]}

\startsetups btx:duane:list:image
  \btxfield{title} 
\stopsetups

\starttext

   %\enabletrackers
   % [publications.setups]
   
   \bild[tug2014]\par
   
   \input tufte
         
   \bildref[tug2014]

   \page

   \placebtxrendering[duane]

\stoptext






On 10.10.2015, at 11:35, Hans Hagen <pragma@wxs.nl>
 wrote:

> On 10/10/2015 10:26 AM, Eidenbenz  Michael wrote:
>> Hello,
>> 
>> I have double colons (::) in my reference points.
>> (It's actually the same string I also use to refer to my publication database)
>> But they wont show up as you can see in the example below.
>> 
>> Is there any way to fix this?
>> 
>> Thanks for your help and best regards
> 
> :: and ::: have special meaning (:; for another document and ::: for components and such)
> 
>> Michael
>> 
>> -----
>> 
>> \starttext
>> 
>> \placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
>> \placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par
>> 
>> The picture in \in{Figure}[img:cow] is a cow\par
>> The picture in \in{Figure}[img::mill] is a mill (cross reference is not working)\par
>> 
>> \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
>> ___________________________________________________________________________________
>> 
> 
> 
> -- 
> 
> -----------------------------------------------------------------
>                                          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
> ___________________________________________________________________________________

___________________________________________________________________________________
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:[~2015-10-10 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-10  8:26 reference points with double colons (::) are not working Eidenbenz  Michael
2015-10-10  9:35 ` Hans Hagen
2015-10-10 15:18   ` Eidenbenz  Michael

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).