Emacs 无法使用Lualatex在AUCTeX下预览

Emacs 无法使用Lualatex在AUCTeX下预览,emacs,tex,auctex,Emacs,Tex,Auctex,正在尝试但未找到在web上工作的解决方案 我有一个简单的tex文件: $ ls \tmp $ cat > tmp.tex \documentclass{article} \author{Peterlits Zo} \title{Test} \begin{document} this is a test: $$ E = mc^2 $$ \end{document} 我在Emacs中打开它。这是我的emacs文件: (添加钩子“乳胶模式钩子” (lambda() (添加到列表“TeX命令

正在尝试但未找到在web上工作的解决方案

我有一个简单的tex文件:

$ ls \tmp
$ cat > tmp.tex
\documentclass{article}
\author{Peterlits Zo}
\title{Test}

\begin{document}
this is a test:

$$ E = mc^2 $$
\end{document}
我在Emacs中打开它。这是我的emacs文件:

(添加钩子“乳胶模式钩子”
(lambda()
(添加到列表“TeX命令列表”(“LuaLaTeX”%`LuaLaTeX%(模式)%%'%t”TeX运行TeX nil t))
(setq TeX命令默认值为“LuaLaTeX”)
(特克斯发动机组“luatex”)
(setq TeX PDF模式t)
(setq TeX发动机“luatex”))
但我不确定这些是什么(我只是从网上复制)。然后我输入
C-ccc-pcb
C-C-l
的输出为:

Output written on _region_.pdf (1 page, 23029 bytes).
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Wed May 19 17:49:38
Running `Preview-DviPS' with ``dvips -Pwww _region_.dvi -o _region_.prv/tmp46aw4r/preview.ps''
Parser: End of Preview snippet 1 unexpected

Preview-DviPS killed at Wed May 19 17:49:38
我不确定,但请重试(
C-C-p C-b
)。输出已更改:

Output written on _region_.pdf (1 page, 23029 bytes).
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Wed May 19 17:51:14
Running `Preview-DviPS' with ``dvips -Pwww _region_.dvi -o _region_.prv/tmpghuAVj/preview.ps''
This is dvips(k) 2021.1 Copyright 2021 Radical Eye Software (www.radicaleye.com)
dvips: DVI file can't be opened: _region_.dvi: No such file or directory

Preview-DviPS exited abnormally with code 1 at Wed May 19 17:51:14
DviPS sentinel: Opening input file: No such file or directory, /tmp/_region_.prv/tmpghuAVj/preview.ps
在我看来,它似乎需要一个
.dvi
文件,但
lualatex
只生成一个
.pdf
文件。我怎样才能改变它的行为

谢谢