Re: [NTG-context] useMPgraphic scaling

2016-04-26 Thread Wolfgang Schuster
Meer, Hans van der 26. April 2016 um 08:50 Sure, is needed. Checked it again. I define \scalesetting as \edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}} But I am not sure why this needs the expansion.. The enclosing

Re: [NTG-context] useMPgraphic scaling

2016-04-26 Thread Meer, Hans van der
\expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had to be: \expanded{\scale[\scalesetting]{% \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% is the \expanded really needed? Sure, is needed. Checked it again. I define \scalesetting as \edef\scales

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Hans Hagen
On 4/25/2016 3:46 PM, Meer, Hans van der wrote: Thanks, Your reply popped up here exactly the moment I saw the light! Must be something Messed up the order things: Was: \scale[\scalesetting]{% \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
Thanks, Your reply popped up here exactly the moment I saw the light! Must be something Messed up the order things: Was: \scale[\scalesetting]{% \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had to be: \expanded{\scale[\scalesetting

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Hans Hagen
On 4/25/2016 1:11 PM, Meer, Hans van der wrote: With images one can scale them on placement, for example \externalfigure[][scale=250,height=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within

[NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
With images one can scale them on placement, for example \externalfigure[][scale=250,height=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within the metapost/metafun code? Hans van der Meer

Re: [NTG-context] How to box \useMPgraphic?

2008-11-14 Thread Oliver Buerschaper
I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my

Re: [NTG-context] How to box \useMPgraphic?

2008-11-14 Thread Oliver Buerschaper
StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my running text. I want a square \raisebox{-.5\strutdp}\hbox{\useMPgraphic{square}} in my running text. Thanks! I was close: if I had only left out the outer braces in {\hbox

Re: [NTG-context] How to box \useMPgraphic?

2008-11-14 Thread Hans Hagen
Oliver Buerschaper wrote: So is this the preferred command for all (horizontal) boxing related tasks in ConTeXt (over hbox)? if you want to position yes .. howeler, take a look in supp-box for more low level stuff Hans -

[NTG-context] How to box \useMPgraphic?

2008-11-13 Thread Oliver Buerschaper
Hello all, I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square

Re: [NTG-context] How to box \useMPgraphic?

2008-11-13 Thread Wolfgang Schuster
a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my running text. I want a square \raisebox{-.5\strutdp}\hbox{\useMPgraphic{square}} in my running text. \stoptext --- Unfortunately, to no avail. TeX seems to be asking for some boxed content, so I tried to wrap the figure inclusion

[NTG-context] Recomputing useMPgraphic in footers

2005-05-09 Thread David Antos
Hello, I have \defineoverlay[Wave][\useMPgraphic{Wave}] \startuseMPgraphic{Wave} ... \stopuseMPgraphic \setupbackgrounds[footer][text][background={Wave}] The problem is that the graphics is not re-computed on every page, although I pretty convinced it should. On the opposite, when I

Re: [NTG-context] Recomputing useMPgraphic in footers

2005-05-09 Thread Hans Hagen
David Antos wrote: Hello, I have \defineoverlay[Wave][\useMPgraphic{Wave}] \startuseMPgraphic{Wave} ... \stopuseMPgraphic \setupbackgrounds[footer][text][background={Wave}] The problem is that the graphics is not re-computed on every page, although I pretty convinced it should

[NTG-context] semicolon in \useMPgraphic btex ... etex

2004-10-16 Thread Laurent Chéno
\midaligned{\useMPgraphic{test}} \stoptext \end %- But the following is ok : %-- OK \startuseMPgraphic{test} dotlabel.top(btex 2,3 etex, (0,0)) ; \stopuseMPgraphic \starttext \midaligned{\useMPgraphic{test}} \stoptext \end %- I have the same problem

Re: [NTG-context] semicolon in \useMPgraphic btex ... etex

2004-10-16 Thread Taco Hoekwater
Hi there, Weird, I thought this was fixed in 1999 somewhere? Anyway, try adding \longMPlinestrue in your preamble. Greetings, Taco On Sat, 16 Oct 2004 08:33:31 +0200 Laurent Chéno [EMAIL PROTECTED] wrote: (* Please excuse my poor english *) Semicolon usage in btex ...