[pstricks] using values read from an external file
Leon Free
leon.free at free.fr
Sat Apr 14 10:13:57 CEST 2012
Le 13/04/2012 21:34, Herbert Voss a écrit :
> Am 13.04.2012 14:46, schrieb Leon Free:
>> Thanks for your suggestion. It works fine with the example I provided.
>>
>> Your trick shows it is possible to concatenate the \data list with other
>> arbitrary values as you do in
>>
>> \edef\data{\data\space D 1 D \rA\space D 1 }
>>
>> but what about the "inverse" operation of extracting an element (the \iA
>> th) from \data and store it in a tex variable? is there a simple way to
>> do that with a tex macro? or is it better/simpler to have an external
>> script doing that job (and then opening/reading the result with latex)?
>
> How many elements are saved in the \data macro?
>
The data is produced by scilab (or similar). If the data is generated
before running any latex compile, it is a 91x1 matrix. Now if scilab is
called during the latex process (as in the example I provided), \data
contains a single value.
lf
More information about the PSTricks
mailing list