From: Hans Hagen Outside <pragma@wxs.nl>
Subject: Re: side figure and typing
Date: Fri, 23 Jul 2004 11:43:34 -0700 [thread overview]
Message-ID: <41015C56.90905@wxs.nl> (raw)
In-Reply-To: <60896.80.58.0.46.1090577540.squirrel@bitmail.bitmailer.com>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-07-23 18:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-23 10:12 jimarin
2004-07-23 18:43 ` Hans Hagen Outside [this message]
2004-07-23 19:14 ` Willi Egger
2004-07-24 6:29 ` Hans Hagen Outside
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=41015C56.90905@wxs.nl \
--to=pragma@wxs.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).