From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63187 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Q about hangaround commands Date: Wed, 3 Nov 2010 07:51:16 +0100 Message-ID: <4571F63D-01DA-4FBA-9661-72581BDD1A51@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288767104 11248 80.91.229.12 (3 Nov 2010 06:51:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2010 06:51:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 03 07:51:40 2010 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 1PDXC7-0002Ie-V5 for gctc-ntg-context-518@m.gmane.org; Wed, 03 Nov 2010 07:51:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32AA9CA80D; Wed, 3 Nov 2010 07:51:39 +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 5bAp5IiV0BSx; Wed, 3 Nov 2010 07:51:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D624DCA801; Wed, 3 Nov 2010 07:51:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FADBCA801 for ; Wed, 3 Nov 2010 07:51:34 +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 uiinKADONtTy for ; Wed, 3 Nov 2010 07:51:22 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 462F5CA7C1 for ; Wed, 3 Nov 2010 07:51:22 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA36pLXt029300 for ; Wed, 3 Nov 2010 07:51:21 +0100 Original-Received: by fxm2 with SMTP id 2so211633fxm.14 for ; Tue, 02 Nov 2010 23:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=2rFK53N84seL0UHg7JZc/mQ766HhNRdR3HByhZ33E3s=; b=UvnJj9MMswWnRLGL9Hfb43/rIDTlxfpU5upeWkcdPS6m4UHSg+FLpuX2HiOuAnVMzv hFBQ4AbLS+nASnDqjJrJ98VBMVr78pKvPcXX/fw364++PQBrnacpiIea3L7YTLscY5wm trJk/HMCWUOibxDwdObzs1keKYHj4o4tpeyCw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Om5lmfdGsvD1EhXIOJLYtv+Ihqt2qgRKYk2XznepC4xDacBZI8zun8Ez0pMOMNGPSd sJsD0pVqbcy19qAX6lBYUnvPG6PQhAgeLSI/M94tdY1F5z7Ne/9nSmYRXjD7b5VDRpuo ItIHAqgYANxW4l/ptdfyxBs4CPVbJhq3yM5oU= Original-Received: by 10.223.86.9 with SMTP id q9mr6051241fal.25.1288767081141; Tue, 02 Nov 2010 23:51:21 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B29374F.dip.t-dialin.net [91.41.55.79]) by mx.google.com with ESMTPS id a25sm3507607fab.37.2010.11.02.23.51.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Nov 2010 23:51:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDquPlIc - 8738bcd78bd1 - 20101103 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:63187 Archived-At: Am 03.11.2010 um 05:47 schrieb Vladimir Lomov: > Hi. > > Some answers I found myself :) > > P.S. I have feeling that feature like 'hangaround' doesn't fit well > with tex (page layout ...?) model. Hangaround is a very robust command and works in more cases than \placefigure[left] but you have a conflict with the \item command which place the itemize symbol before the following text which is indented in your case. \unprotect \def\stophangaround {\endgraf \egroup} \def\starthangaround {\dosingleempty\dostarthangaround} \def\dostarthangaround[#1]% {\doifelse{#1}{\v!right} {\dostartrighthangaround} {\dostartlefthangaround }} \def\dostartlefthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent\nextboxwd \hangafter-\noflines \llap{\flushnextbox}\ignorespaces} \hbox} \def\dostartrighthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect \starttext \starthangaround{\externalfigure[cow][scale=500]} \input tufte \stophangaround \blank \starthangaround[right]{\externalfigure[cow][scale=500]} \input tufte \stophangaround \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________