auctex-devel
[Top][All Lists]
Advanced

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

Re: can compile file with pdflatex from command line but not Auctex


From: Arash Esbati
Subject: Re: can compile file with pdflatex from command line but not Auctex
Date: Mon, 30 Oct 2023 11:25:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Uwe Brauer <oub@mat.ucm.es> writes:

> The problem I face turns me crazy. I have to compile a bunch of files,
> basically all from the same author, and all must be compiled with
> pdf(la)tex, which I can from the command line.
>
> However if I try to run it via Auctex, auctex only uses latex not
> pdflatex and then compilation errors pop up.
>
> There most be something in the setting of that file, that confused
> auctex.
> I attach a simplified version

Hi Uwe,

I'd say it is this line in your .tex file:

  \usepackage{pstricks,pst-plot,pst-node,epsfig}

pstricks.el contains these lines:

  (unless (or (member "pst-pdf" TeX-active-styles)
              (eq TeX-engine 'xetex))
    ;; Leave at user's choice whether to disable `TeX-PDF-mode' or
    ;; not.  Instead set up `TeX-PDF-from-DVI' option so that AUCTeX
    ;; takes dvips+ps2pdf route when `TeX-PDF-mode' is enabled.
    ;; (TeX-PDF-mode-off)
    (setq TeX-PDF-from-DVI "Dvips"))

When I run 'pdflatex' on your file, it says:

  Non-PDF special ignored!
  <special> header=pstricks.pro
  Non-PDF special ignored!
  <special> header=pst-algparser.pro
  Non-PDF special ignored!
  <special> header=pst-tools.pro
  Non-PDF special ignored!
  <special> header=pst-dots.pro
  Non-PDF special ignored!
  <special> header=pst-node.pro
  Non-PDF special ignored!
  <special> header=pst-3d.pro
  Non-PDF special ignored!
  <special> header=pst-math.pro
  Non-PDF special ignored!
  <special> header=pstricks-add.pro
  Non-PDF special ignored!
  <special> ps: /pssetRGBcolor /setrgbcolor load def /pssetCMYKcolor /setcmyk...
  Non-PDF special ignored!
  <special> ps:tx@Dict begin  gsave STV CP T /ps@rot 0 def grestore  end
  Non-PDF special ignored!
  <special> ps:tx@Dict begin  gsave STV CP T /ps@refangle 0.  def grestore  e...
  Non-PDF special ignored!
  <special> ps:tx@Dict begin  gsave STV CP T /ps@rot 0 def grestore  end

So I think you really want to run latex+dvips if you want to use
pstricks.

Best, Arash



reply via email to

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