Jean-Marc,
I finally got to it and made a patch that solves the problem of having to
have extra batch files on NT for DVI previewing and PS previewing. It is
now possible to specify

\view_ps_command "gsview32 `cygpath -w $$FName`"
and
\view_dvi_command "yap `cygpath -w $$FName`"

in your .lyxrc file.
I also got rid of the -paper option when the dvi command contains yap
although that is bad now that I think about it.
When someone names a regular document yap the -paper option will be left
out.
Hmmm..... maybe the whole block in lyx_cb.C needs and #ifdef WIN_NT or we
need to make a
\view_dvi_nopaper command that explicitly shuts the paper option of.

Regards
Roland


Jean-Marc Lasgouttes wrote:

> >>>>> "Roland" == Ing Roland Krause <[EMAIL PROTECTED]> writes:
>
> Roland> Jean-Marc, I apologize but what exactly do you need ? Is it a
> Roland> listing of the command line arguments or a tested opening of a
> Roland> document from the commandline using gsview, yap and cygpath ?
>
> Hmmm, I was about to answer, and then I realized that it was not as
> easy, since most configuration commands in lyxrc do not permit to
> modify the way filenames are passed to commands. If the format for
>   \view_ps_command "ghostview -swap"
> was
>   \view_ps_command "ghostview -swap $$FName"
> it would be possible to use
>   \view_ps_command "gsview32 `cygpath $$FName`"
> as preview command.
>
> Hmmm, we really need a good configurable way of invokation of all
> those things... I do not have much time for it these days, though...
> but I would gladly accept patches :)
>
> JMarc

lyx_cb.patch

Reply via email to