On 30/10/2010 4:21 PM, tobi7212 wrote:
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?
\
Hi,
LyX performs the LaTeX compilation in a temporary directory. All
dependent files are moved into the same temporary directory as well, but
LyX does not parse your ERT code. That's why relative paths don't work.
Search for "external material" in the LyX help menu, especially in
"Customization". If you are ready to put time into this, you could get
it to work this way, I think.
Otherwise you can just copy your dependent files to the temporary
directory manually.
--
Julien