1

I recently installed latex preview pane on my emacs. It turned out that it is not showing the proper preview. Instead it shows some random codes as shown in the snapshot. How do I make it show the preview? Please give detailed instructions. enter image description here

  • 1
    Exactly which Emacs version is this? Most Emacs users I know use external previewers when previewing the PDF. Is the showing of PDF directly in Emacs even available on Windows? – daleif Feb 6 '15 at 16:59
  • 1
    To view your PDFs just take SumatraPDF, reliable and easy to customise. – Keks Dose Feb 6 '15 at 18:54
  • 1
    Do you have ghost script installed? It is needed. – user11232 Feb 7 '15 at 0:08
  • Ye, I have ghost script installed. And my Emacs version is 24.4. – Sâu Feb 7 '15 at 3:26
  • 1
    You need certain *.dll files to view images in doc-view in conjunction with GhostScript. Did you install those *.dll files? Some builds of Emacs include them, and some do not. M-x describe-variable RET dynamic-library-alist RET for a list of the *.dll files needed for your particular version of Emacs -- they go in the bin directory of Emacs. For example, the Emacs version that I am using for Windows has an element of that list as follows: (png "libpng16.dll" "libpng16-16.dll") and those are needed to view *.png files (which is what GhostScript uses). – lawlist Feb 10 '15 at 0:46
2

I supposed it is a problem with doc-view on windows. I quote part of my answer here for the windows part:

  • follow the intruction on emacswiki to install a ps/pdf viewer
  • open the ps/pdf produced as any other file. (C-x C-f file_name.pdf/ps), doc-view mode will be used and you will be able to see the document.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.