ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \hangaround in xml mkiv
@ 2011-01-19 18:23 R. Ermers
  0 siblings, 0 replies; only message in thread
From: R. Ermers @ 2011-01-19 18:23 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

Dear All,

I am processing a docbook xml file, which works great (thanks to Wolfgang's introduction to TEI). 

I have some images and I want the text before and after them to wrap around. This can be achieved through the command \starthangaround .. \stoparound.

Since the text that is to wrap around must be put between commands, I cannot attach the image to the figure/graphic tags that are within that text. The figure tag does not allow the para tag to be inserted, nor do other approprate media tags.

Instead I attached them to the attribute 'role' of the para tag:

<para role="dolce1">abcdef abcef</para>

In the environment file I specified this:

\xmlsetsetup{#1}{//para[@role]}{xml:chapter:para:role}

The hangaround environment is put in the accompanying startxmlsetups:

\startxmlsetups xml:chapter:para:role
\starthangaround{\externalfigure[\xmlatt{#1}{role}]}
\xmlflush{#1}
\stophangaround
\stopxmlsetups

I also added an \xmlflush, assuming that the text itself is processed there.

In a rough sense this works. There is a white angle in the text for the image. However, the image itself slides away.

I am not sure what is going wrong. Has anybody got a clue?

Thanks!

Regards,

Robert

 


___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2011-01-19 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 18:23 \hangaround in xml mkiv R. Ermers

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