Ok, that works for me. I had not realised that there is also a metapost variable. dirk -----Ursprüngliche Nachricht----- Von: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] Im Auftrag von therion-request@speleo.sk Gesendet: Dienstag, 7. Juni 2016 12:00 An: therion@speleo.sk Betreff: Therion Digest, Vol 126, Issue 7 Send Therion mailing list submissions to therion@speleo.sk To subscribe or unsubscribe via the World Wide Web, visit http://mailman.speleo.sk/mailman/listinfo/therion or, via email, send a message with subject or body 'help' to therion-request@speleo.sk You can reach the person managing the list at therion-owner@speleo.sk When replying, please edit your Subject line so it is more specific than "Re: Contents of Therion digest..." Today's Topics: 1. Re: MetaPost/Tex: variable \magdecl (Martin Budaj) ---------------------------------------------------------------------- Message: 1 Date: Mon, 6 Jun 2016 18:20:45 +0200 From: Martin Budaj <m.budaj@gmail.com> Subject: Re: [Therion] MetaPost/Tex: variable \magdecl To: List for Therion users <therion@speleo.sk> Message-ID: <CALPsdSu4S4xZbEyu1Q7_rcv7=1JpLgs4vmzpW1pv5iBYUkYuhA@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Hi, TeX variables are not accessible in MetaPost. However, there is a numeric MagDecl variable in MetaPost (see the chapter New map symbols in the thbook). Martin On Sat, Jun 4, 2016 at 1:05 PM, Dirk Peinelt <dirk.peinelt@t-online.de> wrote:
Is there a way to handle the content of the \magdecl TEX-variable in METAPOST? (Therion V5.3.16)
In a string or numeric? ? I think, i?ve an syntax problem?
1.) string handling:
string dec;
%dec:=?3.022?; % FINE!
dec:=\magdecl; % ERROR
p_label.top(thTEX(dec),(0,0),0,8); % >> string output
2.) numeric handling:
numeric dec;
%dec:=3.022; % FINE!
dec:=\magdecl; % ERROR
p_label.top(thTEX(decimal dec),(0,0),0,8); % >> numeric to string output
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
------------------------------ _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion End of Therion Digest, Vol 126, Issue 7 ***************************************