From 50dcde434e76909a0495b3deb38ac0a56c8e89a6 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 15 Apr 2022 11:44:51 +1000 Subject: added some mposts --- microposts/reading-emacs.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 microposts/reading-emacs.org (limited to 'microposts/reading-emacs.org') diff --git a/microposts/reading-emacs.org b/microposts/reading-emacs.org new file mode 100644 index 0000000..1107e5b --- /dev/null +++ b/microposts/reading-emacs.org @@ -0,0 +1,19 @@ +#+title: Reading pdf or djvu in Emacs +#+date: <2022-02-17> + +DocView mode is a versitile builtin major mode in emacs, with the +ability to display pdf, djvu, odt etc. + +However, it is not really cut for the job for displaying large pdf or +djvu. It can be slow, and may hang emacs when opening large djvu +files. + +If you want to view pdf, [[https://github.com/politza/pdf-tools][pdf-tools]] is a great alternative. It is much +faster (I'd say as fast as external pdf viewers like zathura), and +offers an outline mode style toc navigation. It also supports fast +regexp isearch as well as occur. There's a nice demo which you can +view with mpv, youtube-dl +etc. http://www.dailymotion.com/video/x2bc1is_pdf-tools-tourdeforce_tech?forcedQuality%3Dhd720 + +For djvu, I recommend use the [[https://elpa.gnu.org/packages/djvu.html][djvu mode]] instead. It does not make +emacs hang, and allows quick switch between image and text. -- cgit v1.2.3