emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48828: closed (Wrong command used to compile pdf latex if pst-mode p


From: GNU bug Tracking System
Subject: bug#48828: closed (Wrong command used to compile pdf latex if pst-mode package is used (beamer))
Date: Fri, 29 Oct 2021 14:32:01 +0000

Your message dated Fri, 29 Oct 2021 16:30:52 +0200
with message-id <86lf2b3ntv.fsf@gnu.org>
and subject line Re: bug#48828: Wrong command used to compile pdf latex if 
pst-mode package is used (beamer)
has caused the debbugs.gnu.org bug report #48828,
regarding Wrong command used to compile pdf latex if pst-mode package is used 
(beamer)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
48828: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48828
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Wrong command used to compile pdf latex if pst-mode package is used (beamer) Date: Fri, 04 Jun 2021 10:46:37 +0200
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'.



--- End Message ---
--- Begin Message --- Subject: Re: bug#48828: Wrong command used to compile pdf latex if pst-mode package is used (beamer) Date: Fri, 29 Oct 2021 16:30:52 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50
Arash Esbati <arash@gnu.org> writes:

> I don't think AUCTeX is wrongly using latex instead of pdflatex.  Insert
> some piece of PSTricks code and try it again, e.g.
>
> \documentclass[10pt]{beamer}
> \usepackage{pst-node}
> \begin{document}
> \begin{frame}
>   \frametitle{title}
>   \small
>   content \\[3ex]
>   \begin{pspicture}[showgrid](0,-2)(6,2)
>     \pnode{A}\psdot(A)\uput[90](A){A}
>     \pnode[0,-2]{B}\psdot(B)\uput[90](B){B}
>     \pnode(2,0){C}\psdot(C)\uput[90](C){C}
>     \pnode[1,-2](2,0){D}\psdot(D)\uput[90](D){D}
>     \pnode[2,2](3.5,0){E}\psdot(E)\uput[90](E){E}
>   \end{pspicture}
> \end{frame}
> \end{document}
>
> and pdflatex chokes with this message:
>
> ! Undefined control sequence.
> \c@lor@to@ps ->\PSTricks
>                          _Not_Configured_For_This_Format
>
> Unless you don't use a package like "pst-pdf", pdflatex is the wrong
> engine if you want to use PSTricks, you want to go for latex&dvips.

Some weeks passed since last message.  I'm closing this report for now,
we can re-open it once new activities come up.

Best, Arash


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]