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: Setups for images in publication framework
Date: Sat, 3 Oct 2015 11:20:08 +0000	[thread overview]
Message-ID: <EEFA4CFD-83B8-4FD9-94C0-EF20E3CDD4AA@arch.ethz.ch> (raw)

Dear list,

I try to process the following example from the testsuite (publications/basics-002.tex) but it seems to be broken with current context and beta.

"publications    > no data definition file 'publ-imp-duane.lua' for 'duane'"

how can i fix this?


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

% A quick and dirty layout:

\usemodule
  [article]

\setupinteraction
  [state=start]

% We will use a dedicated dataset:

\definebtxdataset
  [duane]

% That we will fill with some records:

\usebtxdataset
  [duane]
  [duane.buffer]

% And a rendering:

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

% We also set up the associated list (a description):

\setupbtxlist
  [duane]
  [number=no]

% This is the image renderer:

\startsetups btx:duane:list:image
    \bgroup
        \bTABLE[offset=1ex]
            \bTR
                \bTD[ny=4]
                    \dontleavehmode \externalfigure[\btxfield{url_thumb}][width=4cm]
                \eTD
                \bTD
                    \bold{\btxfield{title}}\blank
                    \btxfield{Words -> description}\blank
                    \goto{high res variant}[url(\btxfield{url_image})]
                \eTD
            \eTR
        \eTABLE
    \egroup
\stopsetups

\starttext

    \placebtxrendering
        [duane]

    \page

    \showbtxdatasetcompleteness
      [specification=duane,
       dataset=duane]

    \page

    \enabletrackers
      [publications.setups]

    \placebtxrendering
        [duane]
        [repeat=yes]

\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	other threads:[~2015-10-03 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-03 11:20 Eidenbenz  Michael [this message]
2015-10-05 18:19 ` Eidenbenz  Michael
2015-10-05 19:13   ` Hans Hagen

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=EEFA4CFD-83B8-4FD9-94C0-EF20E3CDD4AA@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).