LaTeX forum ⇒ AUCTeXpreview issue on Auctex + emacs

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
Posts: 1
Joined: Wed May 11, 2016 3:04 am

preview issue on Auctex + emacs

Postby grant2016 » Wed May 11, 2016 3:22 am

I tried to have equation preview in emacs + auctex but failed.
system information:
Windows 7
Emacs 24.5.1 (i686-pc-mingw32)
TexLive 2015 (full installation from ISO)

I use XeTeX becuase of UTF-8 support, and I can compile .tex into .pdf in Emacs.
While when I tried to preview the equations, emacs reported error like this:

  1. ...
  2. (see the transcript file for additional information)
  3. Output written on _region_.pdf (1 page).
  4. Transcript written on _region_.log.
  6. TeX Output exited as expected with code 1 at Wed May 11 09:07:20
  7. Running `Preview-PDF2DSC' with ``pdf2dsc "_region_".pdf "_region_.prv/tmp9720IXo"/preview.dsc''
  9. Preview-PDF2DSC exited abnormally with code 1 at Wed May 11 09:07:23
  10. PDF2DSC sentinel: Opening input file: no such file or directory, e:/Grant/Latex/eq/_region_.prv/tmp9720IXo/preview.dsc

I found pdf file called _region_.pdf in work directory, and found out the equation is fine in it. seems because of pdf2dsc can't compile it into dsc file.
Then I tried to run the command manually by typing:
  1. pdf2dsc _region_.pdf _region_.prv/tmp9720IXo/preview.dsc

and get the following error information:
  1. Error: /undefinedfilename in (
  2. Operand stack:
  4. Execution stack:
  5. %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
  6. Dictionary stack:
  7. --dict:1199/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
  8. Current allocation mode is local
  9. Last OS error: No such file or directory

The tex file is fairly simple, I also attache it here:
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \begin{document}
  5. Learning \LaTeX
  7. \[
  8. y = x^2+2x+1
  9. \]
  11. \end{document}

Would anybody kindly help to check the issue?
Thank you in advance.

Return to “AUCTeX”

Who is online

Users browsing this forum: No registered users and 1 guest