ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: xtag-docboook: figures/graphics
       [not found] <20020316223323.GA7745@miwie.in-berlin.de>
@ 2002-03-17 11:38 ` Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2002-03-17 11:38 UTC (permalink / raw)
  Cc: ntg-context

At 11:33 PM 3/16/2002 +0100, Michael Wiedmann wrote:
>Hi Hans,
>
>I need your help for the following:
>
>in DocBook a graphic is included like:
>
>mediaobject
>   imageobject
>     imagedata
>   caption
>
>I have already a very simple mapping of the imagedata (the actual
>graphic file) to context's \placefigure, that's good.
>
>Now I want to get the 'caption' (if provided) to pass it on to
>\placefigure as a parameter.
>
>I tried:
>
>\defineXMLenvironment[mediaobject]
>    {\defineXMLpush[caption]}
>    {}
>
>\def\XMLDBmakefigure{%
>    \def\XMLDBfigurealign{\XMLpar{imagedata}{align}{}}%
>    \placefigure[\XMLDBfigurealign][]{\XMLpop{caption}}
>    {\externalfigure[\XMLpar{imagedata}{fileref}{}]}
>}
>\defineXMLargument[imagedata] \XMLDBmakefigure
>
>But unfortunately this does not work, so I surely do misinterpret the
>usage of \defineXMLpush and \XMLpop.

btw, it's save and flush now

>Any hints for me?

You need to save both the imageobject and caption and at the end of 
mediaobject use them; now you want to typeset the figure before the caption 
element is seen

[see x-contml on how figures are handled]

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-17 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020316223323.GA7745@miwie.in-berlin.de>
2002-03-17 11:38 ` xtag-docboook: figures/graphics Hans Hagen

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