From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15758 Path: main.gmane.org!not-for-mail From: Hans Hagen Outside Newsgroups: gmane.comp.tex.context Subject: Re: side figure and typing Date: Fri, 23 Jul 2004 11:43:34 -0700 Sender: ntg-context-bounces@ntg.nl Message-ID: <41015C56.90905@wxs.nl> References: <60896.80.58.0.46.1090577540.squirrel@bitmail.bitmailer.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090608332 902 80.91.224.253 (23 Jul 2004 18:45:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 18:45:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 20:45:24 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bo52q-000117-00 for ; Fri, 23 Jul 2004 20:45:24 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 558971277C; Fri, 23 Jul 2004 20:45:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14680-03; Fri, 23 Jul 2004 20:45:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 748541277F; Fri, 23 Jul 2004 20:43:41 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DD621277F for ; Fri, 23 Jul 2004 20:43:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14680-01-4 for ; Fri, 23 Jul 2004 20:43:39 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 8F8881277D for ; Fri, 23 Jul 2004 20:43:39 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i6NIhY1o003120 for ; Fri, 23 Jul 2004 20:43:34 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id B9C3B1ACAF; Fri, 23 Jul 2004 20:43:38 +0200 (CEST) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id BA8881856D for ; Fri, 23 Jul 2004 18:43:36 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <60896.80.58.0.46.1090577540.squirrel@bitmail.bitmailer.com> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15758 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15758 jimarin@bayesinf.com wrote: >Hi all ! > >let us imagine we have defined the following command: > >\def\SideFigure#1#2#3#4#5% > { > \placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]} > #5 > } > >which can be used to put a figure aside a companion text... > >but, what happens if the text is to be typed... ?? > >I guess this won't work: > >\SideFigure{right}{pack2}{../figures/tcltk/pack2.jpg}{0.25} >{ >\starttyping >pack .ok .cancel .help -side top >\stoptyping >} > >How can I make it to work? > > hm, you could just omit #5 and it would probably work otherwise you would need to do do a multi step like: \def\XXX#1#2#3#4% {\begingroup \obeylines\doXXX{#1}{#2}{#3}{#4}} \long\def\doXXX#1#2#3#4#5% {\place....[]{}{}\scantokens{#5}} or so (untested and probably not correct) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------