From: "R. Ermers" <r.ermers@hccnet.nl>
To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \hangaround in xml mkiv
Date: Wed, 19 Jan 2011 19:23:44 +0100 [thread overview]
Message-ID: <25378B4B-9BFD-43E3-84D4-7E76279BB8C2@hccnet.nl> (raw)
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
___________________________________________________________________________________
reply other threads:[~2011-01-19 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=25378B4B-9BFD-43E3-84D4-7E76279BB8C2@hccnet.nl \
--to=r.ermers@hccnet.nl \
--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).