ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Eidenbenz  Michael" <eidenbenz@arch.ethz.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: reference points with double colons (::) are not working
Date: Sat, 10 Oct 2015 15:18:17 +0000	[thread overview]
Message-ID: <CDD0F23D-96F8-46E1-9867-E403EE058ABE@arch.ethz.ch> (raw)
In-Reply-To: <5618DBD3.9090703@wxs.nl>

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
___________________________________________________________________________________

      reply	other threads:[~2015-10-10 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-10  8:26 Eidenbenz  Michael
2015-10-10  9:35 ` Hans Hagen
2015-10-10 15:18   ` Eidenbenz  Michael [this message]

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=CDD0F23D-96F8-46E1-9867-E403EE058ABE@arch.ethz.ch \
    --to=eidenbenz@arch.ethz.ch \
    --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).