* Re: please help
2000-09-11 12:43 please help Hraban
@ 2000-09-11 11:16 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-09-11 11:16 UTC (permalink / raw)
Cc: ConTeXt
At 02:43 PM 9/11/00 +0200, Hraban wrote:
>Could anyone please explain, why this command has *no* effect:
>
>\def\zweisym#1#2#3#4{
> \startbuffer
>\x13 \setupcombinations[width=11cm]
> \startcombination[2]
> {\hbox to 4.75 cm{\hss\externalfigure[#1]\hss}}{#2}
> {\hbox to 4.75 cm{\hss\externalfigure[#3]\hss}}{#4}
> \stopcombination
> \stopbuffer
> \placefigure[][sym:#1-#3]{none}{\getbuffer}
>}
>
>\zweisym{pic1}{Text 1}{pic2}{Text 2}
>
>The externalfigures for #1 and #3 are defined before the use of \zweisym
Because buffers cannot be used in macro defs that way [parsed while
processing and \stopbuffer is a string them, no \cs. There are some ways to
fill buffers, but that's not needed here. >\def\zweisym#1#2#3#4{
\def\ZweiSym#1#2#3#4%
{\placefigure[][sym:#1-#3]{none}
{\setupcombinations[width=11cm]
\startcombination[2]
{\hbox to 4.75 cm{\hss\externalfigure[#1]\hss}} {#2}
{\hbox to 4.75 cm{\hss\externalfigure[#3]\hss}} {#4}
\stopcombination}}
works. I'm not sure why you set the width.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* please help
@ 2000-09-11 12:43 Hraban
2000-09-11 11:16 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Hraban @ 2000-09-11 12:43 UTC (permalink / raw)
Could anyone please explain, why this command has *no* effect:
\def\zweisym#1#2#3#4{
\startbuffer
\x13 \setupcombinations[width=11cm]
\startcombination[2]
{\hbox to 4.75 cm{\hss\externalfigure[#1]\hss}}{#2}
{\hbox to 4.75 cm{\hss\externalfigure[#3]\hss}}{#4}
\stopcombination
\stopbuffer
\placefigure[][sym:#1-#3]{none}{\getbuffer}
}
\zweisym{pic1}{Text 1}{pic2}{Text 2}
The externalfigures for #1 and #3 are defined before the use of \zweisym
The \def itself is in the header.
Thanks!
Hraban.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-11 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-11 12:43 please help Hraban
2000-09-11 11:16 ` Hans Hagen
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).