[metapost] Convert string to variable name

Rasmus Villemoes burner+usenet at imf.au.dk
Wed Jun 29 12:10:01 CEST 2011


Troy Henderson <thenders at gmail.com> writes:

> More specifically of what I am trying to accomplish is I would like to do
>
> input foo;
>
> where foo is a string containing the actual filename (without the
> .mp suffix).

Is

  scantokens "input " & foo & ";"

what you're looking for?

-- 
Rasmus Villemoes
<http://rasmusvillemoes.dk/>



More information about the metapost mailing list