12

I'm using Emacs, AUCTeX, and latex-preview-pane-mode to create a PDF presentation. However, the preview only displays one page at a time.
Is this the only way? It wastes some of the vertical space available on the screen.

Is it possible for Docview to preview several pages of a PDF in one page?

5
  • 1
    How about (setq doc-view-continuous t) and then (if needed) shrink the size of the pages that are visible?
    – lawlist
    Commented Nov 11, 2014 at 18:07
  • @lawlist: At least for me, all that does is let C-n and C-p move between pages. While that's quite handy, it still only displays one page at a time. Commented Nov 11, 2014 at 20:14
  • I see -- after some Googling, it looks like your feature has been an ongoing discussion on the Emacs mailing lists for several years, but I don't think that feature exists yet.
    – lawlist
    Commented Nov 11, 2014 at 20:45
  • 3
    I don't remember this specific functionality being discussed, but it would actually make a lot of sense for doc-view-continuous to behave like you want (i.e. just display all the pages one below the other). You should probably request it via M-x report-emacs-bug.
    – Stefan
    Commented Nov 11, 2014 at 21:27
  • Hi, I noticed that you are using doc-view in windows 7, can you share how you did it?
    – Leu_Grady
    Commented Feb 26, 2015 at 11:36

1 Answer 1

1

Currently there is no support for displaying several images in the same window, so there are two workarounds:

  • split the right window to display two slides at the same time. As there is no way to send commands to two windows at the same time this is rather pointless, though, as one of the windows will stay fixed when you press n or p in the other window. You might be able to overwrite this, but it seems messy.

  • you could try to affect the pdf-to-image conversion. While ghostscript itself does not seem to allow rendering multiple pages to the same image file you may be able to replace the ghostscript executable (by setting doc-view-ghostscript-program) with a wrapper that calls ghostscript and then zips up the images in pairs, e.g. with ImageMagick's montage.

Neither of these two methods is particularly appealing.

Unfortunately, mudraw (which can be used as an alternative renderer) also does not support rendering multiple pages to the same image file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.