This works only with method=dataset in current context.
In beta the method=local works, but then \btxfield is broken for the :cite 
setups

Is there a workaround or is this temporaily broken? 

Thanks and best 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,
    }

    @image {tug2013,
        title       = "TUG 2013",
        url         = "http://tug.org/tug2013/";,
        url_image   = "http://tug.org/tug2013/tug2013-color-300.jpg";,
        url_thumb   = "http://tug.org/tug2013/t2013-thumb.jpg";,
        description = "Official drawing of the TUG 2013 conference",
        author      = "Duane Bibby",
        year        = 2013,
    }

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

\stopbuffer

\definebtxdataset
 [duane]

\usebtxdataset
 [duane]
 [duane.buffer]

\usebtxdefinitions      
 [duane]

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

%method=local only works with beta, but then \btxfield in :cite:image (not in 
:list:image) is broken


\setupbtxlist
    [duane]
    [number=no]

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

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

\starttext

   %\enabletrackers
   %  [publications.setups]
   
   \cite[image][duane::tug2014]
   
   \page

   \placebtxrendering[duane]

\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
___________________________________________________________________________________

Reply via email to