Le 02/04/11 15:47, Sean Wendt a écrit :
\input@path is set to point to the original directory, you may be able to use
this...
JMarc
Yes, this is it. How do I strip the extra { } ?
I am not sure actually. Note that, starting with 2.0, LyX has a way to
specify preprocessors for documents (th
>\input@path is set to point to the original directory, you may be able to use
>this...
>
>JMarc
Yes, this is it. How do I strip the extra { } ?
Sean
Oddly \currfiledir is empty on MikTeX under Windows.
Also
\immediate\write18{echo "\string\gdef\string\pwd{$PWD}" > pwd.tex}
\IfFileExists{pwd.tex}{\input pwd}{\gdef\pwd{.}}
and
\newcommand*\pwd{\input{|pwd}\unskip}
obviously don't work under Windows and wouldn't get me the path I want.
Isn't L
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 tempora
On Sat, Apr 2, 2011 at 12:42 AM, Sean Wendt wrote:
> Does LyX store the path to the current file somewhere accessible from Tex
> code?
>
There is \jobname, but it doesn't give you the path. Maybe the
currfile package [1]?
[1] http://tex.stackexchange.com/questions/13233/jobname-of-inputted-file
R
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
ca