It seems to me you are working very hard there. If you are willing to
write out a path, can I suggest a simpler solution? Did you try just
writing in a path, as:

\pgfplotstabletypeset{/home/florian/Documents/lyx/example1.dat}

This is how I insert data in Sweave documents.  I have no reason to
believe it does/does not work with pgfplotstabletypset (since I've
never heard of it). But I just tried several test cases and both
"input' and "includegraphics" are OK:

\includegraphics{/home/pauljohn/ps/SVN-guides/Rcourse/plot-1/plots/t-bar06.pdf}

PJ

On Tue, Sep 27, 2011 at 7:34 AM, Florian Wilhelm
<florian.wilh...@gmail.com> wrote:
> Mukhtar Ullah <mukhtar.ullah <at> informatik.uni-rostock.de> writes:
>
>>
>> Follow this thread.Although about Inkscape but it addresses the same issue.
>> http://thread.gmane.org/gmane.editors.lyx.general/71928
>>
>> Mukhtar
>>
>>
>
>
> Thanks. I found a more suitable solution for me.
> - Open Command Buffer (Alt+X)
> - Type: info-insert buffer path
> - Result: A macro with the document's current path
> - Surround this macro with ERT to include whatever
>  you want to include like:
>
> ERT[\pgfplotstableread{]
> MACRO[/home/florian/Documents/lyx/]
> ERT[benchmarks/benchmarks.dat} \datatable]
>
> where ERT[...] is TeX code inserted with CTRL+L
> and MACRO[...] the aforementioned info-insert macro.
>
>



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

Reply via email to