Le 02/04/11 00:42, Sean Wendt a écrit :
I am writing a preprocessor, to look up words from a custom inset in a
dictionary, write the result to a file and include it at the end of each
page.
I enabled -enable-write18 and tested it at the command line, LyX however
moves the compilation to a temporary directory (on Windows7) from which
I can access my preprocessor script (which I keep together with the lyx
file) only via an absolute path.
Does LyX store the path to the current file somewhere accessible from
Tex code?
\input@path is set to point to the original directory, you may be able
to use this...
JMarc