LaTeX forum ⇒ AUCTeXpreview issue on Auctex + emacs

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
grant2016
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)
auctex-11.89.3
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:

...
(see the transcript file for additional information)
Output written on _region_.pdf (1 page).
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Wed May 11 09:07:20
Running `Preview-PDF2DSC' with ``pdf2dsc "_region_".pdf "_region_.prv/tmp9720IXo"/preview.dsc''

Preview-PDF2DSC exited abnormally with code 1 at Wed May 11 09:07:23
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:
pdf2dsc _region_.pdf _region_.prv/tmp9720IXo/preview.dsc

and get the following error information:
Error: /undefinedfilename in (pdf2dsc.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1199/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory


The tex file is fairly simple, I also attache it here:
\documentclass{article}
\usepackage{amsmath}
\begin{document}

Learning \LaTeX

\[
y = x^2+2x+1
\]

\end{document}


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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics

Return to “AUCTeX”

Who is online

Users browsing this forum: No registered users and 1 guest