Subject: Wrong command used to compile pdf latex if pst-mode package is used (beamer)
From: ccpsoeta <[email-masked]>
To: [email-masked]
Date: Fri, 04 Jun 2021 10:46:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi!

When loading the beamer document below AucTex recognises it as a pdf
("Latex/P" in modeline), but when trying to compile it with C-c C-c it
wrongly uses "latex" instead of "pdflatex", i.e., it uses following
command:

latex  -file-line-error -shell-escape   -interaction=nonstopmode example-bug.tex

The culprit is the "\usepackage{pst-node}" line. When removed, it works OK.

Steps to reproduce:

Start 'emacs -Q'

Do initial setup

#+begin_src emacs-lisp
(add-to-list 'load-path "/home/user/git/auctex/site-lisp")
(load "auctex.el" nil t t)
#+end_src

visit the following file:

#+begin_src latex

\documentclass[10pt]{beamer}
\usepackage{pst-node} % this is the culprit line
\begin{document}
\begin{frame}
  \frametitle{title}
  \small
  content
\end{frame}
\end{document}

#+end_src

Compile with 'C-c C-c'.