Dear Lyx-users and developers, I need your help. I want to refer to an external file in Latex-code in Lyx ERT. How can that be done?
I would be very happy if anyone has an idea how to handle. Please answer! I found out: It works only with absolute file path. Can I define a macro, that gives me the absolute path of this Lyx file? That would give the possibility to use lots of Latex-functions in lyx, for example plot data (pgfplots) and animate pictures (animate) for beamer. http://lyx.475766.n2.nabble.com/pgf-and-external-table-plot-td480803.html http://lyx.475766.n2.nabble.com/pgf-and-external-table-plot-td480803.html Example: \documentclass{scrartcl} %%% this in Lyx user-preamble: \usepackage{pgfplots} \usepackage{pgfplots} \begin{document} %%% begin this in Lyx ERT %%% \begin{tikzpicture} \begin{axis} \addplot file {myfile.txt}; \end{axis} \end{tikzpicture} %%% end in Lyx ERT %%% \end{document} % myfile.txt: %1 1 %2 2 %3 3 %4 2 %5 1 %6 2 -- View this message in context: http://lyx.475766.n2.nabble.com/pgf-and-external-table-plot-tp480803p5690194.html Sent from the LyX - Users mailing list archive at Nabble.com.
