From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs
Date: Sat, 25 Aug 2007 19:26:42 +0200 [thread overview]
Message-ID: <87zm0fmsod.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 85r6lsfw3q.fsf@lola.goethe.zz
David Kastrup <dak@gnu.org> writes:
Hi David,
> Have you tried out preview-latex (integrated with AUCTeX since version
> 11.80)? It displays images in Emacs buffers without blocking Emacs at
> all, and renders stuff in the background with a focus on material that
> is on-screen.
I had a look at it but it didn't look that borrowing code there would
simplify doc-view.el.
> It works using Ghostscript on either PDF or PostScript files (in the
> latter case, dvips is used) or dvipng on DVI files.
I changed doc-view.el so that it uses plain ghostscript (plus dvipdfm
for DVI files) which gives good results and is about ten times faster
than with ImageMagick's convert.
The only downside is that I don't know how to cut off the margins.
Those waste a lot of buffer space when displaying the image. converts
-trim option was very nice for that cause. Do you know how one can do
that with ghostview?
> Ghostscript is used as a daemon in order to render the stuff in a
> useful order, and a single Ghostscript session renders all images.
Well, the conversion in doc-view.el runs asynchronous, too. Users can
go on with their work and eventually the *DocView* buffer will pop up.
Bye,
Tassilo
next prev parent reply other threads:[~2007-08-25 17:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 11:03 doc-view.el --- View PDF/PostScript/DVI files in Emacs Tassilo Horn
2007-08-24 11:47 ` Michaël Cadilhac
2007-08-24 15:24 ` Tassilo Horn
2007-08-24 21:42 ` David Kastrup
2007-08-25 17:26 ` Tassilo Horn [this message]
2007-08-25 18:34 ` David Kastrup
2007-08-26 10:20 ` Tassilo Horn
2007-08-26 20:38 ` David Kastrup
2007-08-27 8:52 ` Tassilo Horn
2007-08-27 10:23 ` David Kastrup
2007-08-27 14:37 ` Tassilo Horn
2007-08-27 15:16 ` David Kastrup
2007-08-27 20:14 ` Tassilo Horn
2007-08-27 20:31 ` David Kastrup
2007-08-27 20:17 ` Stefan Monnier
2007-08-27 20:30 ` David Kastrup
2007-08-25 20:52 ` Richard Stallman
2007-08-26 10:11 ` Tassilo Horn
2007-08-26 22:46 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zm0fmsod.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).