Kevin Pfeiffer wrote:
> Hi all,
>
> I'm using the following shell script as part of the latex->dvi LyX
> converter and I want to use a relative path to the needed "index-list"
> file (located in same dir as LyX document). Is there a way that LyX can
> pass its current document path to this script?
>
> -Kevin (Thanks in advance!)
>
> # A wrapper script before sending tex to LaTeX compiler
> latex-indexbuild --words-list \
> #"/home/pfeiffer/Documents/scheyer-book-project/index-list" \ <-absolute
> # "index-list" is in same dir as LyX file we are working on
> "index-list" \ # <-relative (doesn't work)
> --latex-file "$1" --includes || {
> echo "latex-indexbuild died" >&2
> exit 1
> }
> # run LaTeX compiler
> latex "$1"
> # end
No, sorry.
In 1.3.6 you'll be able to define the converter as
"sh $$s/scripts/latex-indexbuild $$i $$o"
which will mean that LyX will look for it in
$HOME/.lyx/scripts/
/usr/local/share/lyx/scripts/
For now, I'd hard-code the location using the absolute path.
--
Angus