ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* custom cite in  \externalfigure
@ 2016-04-30 20:06 eidenbenz
  2016-05-04  8:02 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: eidenbenz @ 2016-04-30 20:06 UTC (permalink / raw)
  To: ntg-context

Could somebody explain me why this (the part that is commented) doesn't work?
I get the following error:

tex error       > tex error on line 0 in file : ! Emergency stop
<*> cont-yes.mkiv
<empty file>
*** (job aborted, no legal \end found)



Thanks 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:list:image
  \btxfield{title} 
\stopsetups

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

\startsetups btx:duane:cite:filename
   {\btxfield{url_image}}
\stopsetups

\starttext

   \cite[filename][duane::tug2014]\par
   \cite[external][duane::tug2014]\par
   
   % Why does this not work?
   %\externalfigure[\cite[filename][duane::tug2014]][width=10cm]\par
   
   \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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-06 19:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-30 20:06 custom cite in \externalfigure eidenbenz
2016-05-04  8:02 ` Hans Hagen
2016-05-04 21:31   ` Eidenbenz  Michael
2016-05-04 21:39     ` Alan Braslau
2016-05-06  7:47       ` eidenbenz
2016-05-06 19:09         ` Alan BRASLAU

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