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 LyX required to pass the location of the original sourcefiles somehow
to TeX , as TeX can't really know anything about the LyX-file?

Sean

On Sat, Apr 2, 2011 at 06:37, Liviu Andronic <landronim...@gmail.com> wrote:

> On Sat, Apr 2, 2011 at 12:42 AM, Sean Wendt <wendt.s...@gmail.com> 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
>
> Regards
> Liviu
>



On Sat, Apr 2, 2011 at 06:37, Liviu Andronic <landronim...@gmail.com> wrote:

> On Sat, Apr 2, 2011 at 12:42 AM, Sean Wendt <wendt.s...@gmail.com> 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
>
> Regards
> Liviu
>

Reply via email to