David Arnold wrote:
Hans,
I've tried various things without much success. I cannot seem to access
the contents of xlbl below.
Is this approach ever going to work?
I can make your example work by passing the argument as
a true metapost string:
* remove the \MPstring command: draw
OK. But I need it set as btex $x$ etex at the right end of the
horizontal axis.
On Dec 27, 2005, at 12:09 AM, Taco Hoekwater wrote:
David Arnold wrote:
Hans,
I've tried various things without much success. I cannot seem to
access the contents of xlbl below.
Is this approach ever going
David Arnold wrote:
OK. But I need it set as btex $x$ etex at the right end of the
horizontal axis.
I'm not going to fiddle with the right end for you, but
You can make it $x$ by:
create_axes(xmin,xmax,ymin,ymax,ux,uy)($x$);
Cheers, Taco
___
David Arnold wrote:
1. How can I do this in plain metapost?
2. What would be the Context Way?
btex ... etex is parsed as-is and therefore cannot be uses
this is what the macro textext(...) is for, it writes the (expanded)
string to a file and then applies tex to it between runs
Hans
Hans,
I've tried various things without much success. I cannot seem to
access the contents of xlbl below.
Is this approach ever going to work?
Note: I am trying to pass the string x to the parameter xlbl.
%output=pdf
\setupcolors[state=start]
\definecolor[gridlines][s=0.7]
Hi David,
Put the x into a variable:
\setMPtext{1}{x}
you can define the \stetMPtext within the \starttext \stoptext or outside
Call
create_axes(xmin,xmax,ymin,ymax,ux,uy)(\MPbetex{1});
Willi
David Arnold wrote:
Hans,
I've tried various things without much success. I cannot seem to
Willi et al,
No luck. I can't get any text to show up. I've spent about three days
on this, reading, etc., and I'm no closer than I was three days ago.
%output=pdf
\setupcolors[state=start]
\definecolor[gridlines][s=0.7]
\startMPinclusions
color gridlines; gridlines:=\MPcolor{gridlines};