You are not logged in.

#51 2009-10-14 01:46:56

madalu
Member
Registered: 2009-05-05
Posts: 217

Re: A little manifesto for the "perfect" PDF Viewer for LaTeX'ers

haavard wrote:

emacs 23 (emacs-cvs in AUR) can view pdf, ps and dvi files using doc-view-mode.
I does not fulfill all the stuff on your wish list, and I see you are a vi user, but maybe someone else will like it.

[/snip]

Take 3:
Add to .emacs:
(server-start)
(add-hook 'doc-view-mode-hook 'auto-revert-mode)

Change the tex output view style to
Command: emacsclient -e "(find-file \"%o\")"
This just tells the running emacs server to evaluate (find-file "filename.pdf"), not opening a new client.

Pressing C-c C-c in a freshly compiled tex buffer now will raise the allready updated pdf buffer if it exists, or open a new buffer with the pdf file.
A doc-view-mode buffer can be moved to the background simply by pressing 'q'. The pdf buffer will be updated when the pdf is regenerated.

This is a much belated thank you for this wonderful tip. I do like it!

LaTeX editing and previewing all in emacs. What could be better?

I found method three (quoted above) to be the best. To fellow emacs users, I highly recommend haavard's advice.

Offline

Board footer

Powered by FluxBB