Rob Lahaye wrote:
>
> My LyX, by default, uses for Postscript viewing "gv -swap"
> (as in Tools->Preferences->Conversion->Formats, Postscript)
>
> However, eversince I upgraded to gv version 3.6.1, the -swap does
> not work anymore, and consequently, Postscript viewing with LyX is
> not working (not working with out-of-the box configuration, that is).
>
> I have to modify -swap to --swap in the preferences settings.
> Then it's OK again.
>
> Has nobody else with up-to-date gv, trouble with this?
>
> I wonder, whether LyX-CVS by default, should choose to support latest
> gv version. People with older gv, can then modify the preferences, or
> upgrade to newer gv.
> By the time the next LyX is released, it may not work with common version
> of gv of that time, maybe.

This could be a possible patch for fixing this for gv:

Index: lib/configure.m4
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/configure.m4,v
retrieving revision 1.91
diff -u -r1.91 configure.m4
--- lib/configure.m4    2005/01/20 15:02:15     1.91
+++ lib/configure.m4    2005/01/24 17:44:33
@@ -295,7 +295,8 @@
 # Search something to preview postscript
 SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview
kghostview)
 case $GHOSTVIEW in
-  gv|ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
+  gv) PS_VIEWER="$GHOSTVIEW --swap" ;;
+  ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
   *) PS_VIEWER="$GHOSTVIEW";;
 esac
 EPS_VIEWER=$GHOSTVIEW

Reply via email to