On Tue, 17 Jun 2003 13:26:15 +0200
Andre Poenitz <[EMAIL PROTECTED]> wrote:

> On Tue, Jun 17, 2003 at 01:09:47PM +0200, Charpentier Philippe wrote:
> > I would like to know if it is possible to define a viewer, a converter,
> > a custom_export_command or something else such that, with one click on a
> > menu entry, the two following things are done when the file DIR/file.lyx
> > is open in LyX:
> > 
> > 1) DIR/file.lyx is exported in latex to DIR/file.tex
> > 2) a bash script is run on DIR/file.tex (i.e. with the complete path)
> > 
> > For example, the script would manage the compilation process (diffrently
> > than LyX do it) in such a way that I would be able to use vtex without
> > crashing lyx.
> 
> Define a new 'Format' 'vtex' in your preferences.
> Define a viewer for this format.
> Define a converter  'LaTeX -> vtex' (basically the name of your script)
> 
> Andre\

I tried the following:

a new format:

\format "latexx" "tex" "LaTeX-X" ""

a new viewer:

\viewer "latexx" "$HOME/bin/LaTeX"

a new converter:

\converter "latex" "latexx" "$HOME/bin/LaTeX $$i" ""

(with $HOME= my home)

then LaTeX-X appears in the view menu. But I get an error:
the lyx file (file.lyx) is exported to latex format in the temp directory
and my script is simply send on file.tex (without any path) which gives
an error: it can't find it. Is it possible to send TEMPDIR/file.tex
to the script instead of file.tex?

Ph. C.

Reply via email to