On 5/29/07, Prof. J. E. Cremona <[EMAIL PROTECTED]> wrote:
>
> Using  'SAGE Version 2.5.3, Release Date: 2007-05-22'
> on a linux system.
>
> When I do view(s) the window flashes up on screen for a split second and
> then disappears.  As I'm a relative novice I cannot say if it used to
> work, but I certainly have xdvi, kdvi etc working normally.

If you type "view??" you can see the source code
for the view command, which is in
   sage/misc/latex.py
It just uses xdvi.  There is probably some sort of new library
conflict or something.  To help debug this, could you try
starting sage, then navigating to a dvi file (yes, use cd just
like in bash), then type
  sage: !xdvi filename.dvi
and let me know what happens.


-------

I wrote the following, but realized that it doesn't apply.
I'll leave it in case it is of interest.

There was a recent change to the browser() command to use
xdg-open (http://portland.freedesktop.org/xdg-utils-1.0)
which is supposed to be the standard Linux command
for opening all file types, which respects your customizations,
etc. Unfortunately, it seems to not be working for you.
Could you try using xdg-open from the command line on
a dvi file and let me know what happens.

Unfortunately, in the current version of SAGE if xdg-open exists
it will be used.  You could try either fixing it to work, removing
it, or replacing it by something better.   If you don't like any
of those options, another is that I'll modify
devel/sage/sage/misc/viewer.py to use whatever program is specified by
the variable SAGE_BROWSER,
if that environment variable is defined.

Another option is that you could also do the following in SAGE:

   import sage.misc.viewer
   sage.misc.viewer.DVI_VIEWER = "xdvi"

to set the dvi viewer.   You could put this in $HOME/.sage/init.sage
so it happens every time you start SAGE.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to