From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65362 Path: news.gmane.org!not-for-mail From: "R. Ermers" Newsgroups: gmane.comp.tex.context Subject: \hangaround in xml mkiv Date: Wed, 19 Jan 2011 19:23:44 +0100 Message-ID: <25378B4B-9BFD-43E3-84D4-7E76279BB8C2@hccnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1295461438 23069 80.91.229.12 (19 Jan 2011 18:23:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2011 18:23:58 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 19 19:23:54 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PfchG-0005uy-R7 for gctc-ntg-context-518@m.gmane.org; Wed, 19 Jan 2011 19:23:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 580F8CAA0B; Wed, 19 Jan 2011 19:23:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P99DxHMR0bH9; Wed, 19 Jan 2011 19:23:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F15ACCA9C6; Wed, 19 Jan 2011 19:23:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AA06CA9C6 for ; Wed, 19 Jan 2011 19:23:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ik4CsHA9TrBc for ; Wed, 19 Jan 2011 19:23:48 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id 32A5FCA9A8 for ; Wed, 19 Jan 2011 19:23:48 +0100 (CET) Original-Received: from cpsmtpb-ews07.kpnxchange.com (cpsmtpb-ews07.kpnxchange.com [213.75.39.10]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0JINjq5001471 for ; Wed, 19 Jan 2011 19:23:46 +0100 Original-Received: from cpbrm-ews11.kpnxchange.com ([10.94.84.142]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 19 Jan 2011 19:23:45 +0100 Original-Received: from CPSMTPM-cmt107.kpnxchange.com ([195.121.3.23]) by cpbrm-ews11.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 19 Jan 2011 19:23:45 +0100 Original-Received: from imac-van-robert.lan ([77.168.85.243]) by CPSMTPM-cmt107.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Wed, 19 Jan 2011 19:23:44 +0100 X-Mailer: Apple Mail (2.1082) X-OriginalArrivalTime: 19 Jan 2011 18:23:44.0393 (UTC) FILETIME=[0174AF90:01CBB806] X-RcptDomain: ntg.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.75.39.10; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDVunJGz - 306ee9d81fd9 - 20110119 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:65362 Archived-At: 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: abcdef abcef 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 ___________________________________________________________________________________