Re: In-buffer viewer for DVI files

2007-08-22 Thread Tassilo Horn
Tassilo Horn <[EMAIL PROTECTED]> writes:

Hi,

> that's really nice.  Indeed I wanted to write something like that for
> quite some time, but I never did so...
>
> Anyway, you could make it even better by making it a generic viewer
> for DVI, PostScript and PDF files.  ImageMagick's `convert' tool can
> convert any of those formats to PNG.
>
> $ convert  bar.png
>
> converts every page to a file bar-X.png in /some/dir/ where X is a
> number starting with 0 (page 1).

I started writing that mode and basically it works.  I need to fix some
things before it's really usable, but I think I can post it tomorrow.
:-)

Bye,
Tassilo



___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: In-buffer viewer for DVI files

2007-08-22 Thread dieter atts
[EMAIL PROTECTED] (Michaël Cadilhac) writes:


> This is due to lousy line wraps in the original post. 

Yes, now it works perfectly. Thanks!

> Cheers! And thanks John for this package :-)

Great thanks :-)


henry


___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: In-buffer viewer for DVI files

2007-08-22 Thread Michaël Cadilhac
henry atting <[EMAIL PROTECTED]> writes:

> This is great, but I cannot load the library. :( 
> I get this error message:
>
> Symbol' value as variable is void: modify

This is due to lousy line wraps in the original post. Try with this
file:



dvi-view.el
Description: application/emacs-lisp

Cheers! And thanks John for this package :-)

-- 
 |   Michaël `Micha' Cadilhac   |  Si les religions étaient aussi tolé-  |
 |   http://michael.cadilhac.name   |  rantes qu'elles le prétendent, il y   |
 |   JID/MSN:   |  a longtemps qu'il n'y en aurait plus  |
 `  [EMAIL PROTECTED]  |   -- Moustic  -  --'


pgpiqbRGarb67.pgp
Description: PGP signature
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: In-buffer viewer for DVI files

2007-08-22 Thread henry atting
This is great, but I cannot load the library. :( 
I get this error message:

Symbol' value as variable is void: modify

Regards
henry

-- 
http://www.literaturlatenight.de
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: In-buffer viewer for DVI files

2007-08-21 Thread Xavier Maillard
John Sturdy <[EMAIL PROTECTED]> writes:

> I found a machine I was using didn't have xdvi, so I wrote some elisp
> to call dvipng and put the resulting pages together in an Emacs
> buffer; then I made it into a major mode, with "next" and "previous"
> commands, etc. Here it is:

This is absolutely marvelous ! I needed something like this no
more than yesterday :)

As Tassilo said, it would be cool to be able to open anytype of
file.

Regards
-- 
Xavier Maillard
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources


Re: In-buffer viewer for DVI files

2007-08-21 Thread Tassilo Horn
John Sturdy <[EMAIL PROTECTED]> writes:

Hi John,

> I found a machine I was using didn't have xdvi, so I wrote some elisp
> to call dvipng and put the resulting pages together in an Emacs
> buffer; then I made it into a major mode, with "next" and "previous"
> commands, etc.

that's really nice.  Indeed I wanted to write something like that for
quite some time, but I never did so...

Anyway, you could make it even better by making it a generic viewer for
DVI, PostScript and PDF files.  ImageMagick's `convert' tool can convert
any of those formats to PNG.

$ convert  bar.png

converts every page to a file bar-X.png in /some/dir/ where X is a
number starting with 0 (page 1).

I'm pretty sure that convert has an option to crop parts of the margins
of the pdf/ps/dvi files, so that you can make best use of the emacs
window's space.

What do you think?

Bye,
Tassilo



___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources