From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: minimal testing setup for pdf export? Date: Tue, 27 Aug 2019 13:32:58 -0400 Message-ID: References: <20190827081403.03c7b07b@lt70.mpip-mainz.mpg.de> <8fc0dad7-f387-0d81-7196-259f328f7f19@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008dd71905911caa8d" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42615) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2fLF-0008K3-HW for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 13:33:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2fLE-0002SG-5G for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 13:33:13 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:51114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2fLD-0002Rt-Mw for emacs-orgmode@gnu.org; Tue, 27 Aug 2019 13:33:12 -0400 Received: by mail-wm1-x329.google.com with SMTP id v15so49273wml.0 for ; Tue, 27 Aug 2019 10:33:11 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Matt Price Cc: Julius Dittmar , org-mode-email --0000000000008dd71905911caa8d Content-Type: text/plain; charset="UTF-8" that does suggest that pdflatex is getting called somewhere else. Maybe you can edebug the export function and check the value of default-directory to see where it is getting called. You could also try this #+BEGIN_SRC emacs-lisp (defun my-build (quoted-tex-file) (message "Building %s. Called from %s" quoted-tex-file default-directory)) (setq org-latex-pdf-process 'my-build) #+END_SRC It won't build the pdf, but it will tell you in the messages where it was called from. It might help figure out what is happening. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Aug 27, 2019 at 8:57 AM Matt Price wrote: > > > On Tue, Aug 27, 2019 at 8:27 AM John Kitchin > wrote: > >> Can you manually compile the empty.tex file from the command line? eg >> >> pdflatex empty >> >> (reposting to group) > > pdflatex empty > > Seems to work fine. Hmmm... > >> John >> >> ----------------------------------- >> Professor John Kitchin >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> http://kitchingroup.cheme.cmu.edu >> >> >> >> On Tue, Aug 27, 2019 at 7:57 AM Julius Dittmar >> wrote: >> >>> Am 27.08.19 um 12:34 schrieb Matt Price: >>> > This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch >>> > Linux) (preloaded format=pdflatex) >>> > restricted \write18 enabled. >>> > entering extended mode >>> > ! I can't find file `empty.tex'. >>> >>> So pdflatex is called and found. Then pdflatex can't find empty.tex. >>> That looks like pdflatex is called in another directory than where >>> empty.tex resides. How that could happen, no idea. >>> >>> Julius >>> >>> --0000000000008dd71905911caa8d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
that does suggest that pdflatex is getting called somewher= e else.=C2=A0

Maybe you can edebug the export function a= nd check the value of default-directory to see where it is getting called.<= /div>

You could also try this

#= +BEGIN_SRC emacs-lisp
(defun my-build (quoted-tex-file)
=C2=A0 (messa= ge "Building %s. Called from %s" quoted-tex-file default-director= y))

(setq org-latex-pdf-process 'my-build)
#+END_SRC

It won't build the pdf, but it will tell you in th= e messages where it was called from. It might help figure out what is happe= ning.
John

= -----------------------------------
Professor John Kitchin=C2=A0
Dohe= rty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Uni= versity
Pittsburgh, PA 15213
412-268-7803
=

On Tue, Aug 27, 2019 at 8:57 AM Matt Price <moptop99@gmail.com> wrote:

On Tue, Aug 27, 2019 at 8:27 AM John Kitchin <jkitchin@andrew.cmu.edu> wrote:<= br>
Can you manually compile the empty.tex file from the command line? eg
=
pdflatex empty

(reposting to group)

pdflatex empty

Seems to work fine. Hmmm...
John

------------= -----------------------
Professor John Kitchin=C2=A0
Doherty Hall A20= 7F
Department of Chemical Engineering
Carnegie Mellon University
P= ittsburgh, PA 15213
412-268-7803
@johnkitchin
<= a href=3D"http://kitchingroup.cheme.cmu.edu" target=3D"_blank">http://kitch= ingroup.cheme.cmu.edu



On= Tue, Aug 27, 2019 at 7:57 AM Julius Dittmar <Julius.Dittmar@gmx.de> wrote:
Am 27.08.19 um 12:34 = schrieb Matt Price:
> This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch
> Linux) (preloaded format=3Dpdflatex)
> =C2=A0restricted \write18 enabled.
> entering extended mode
> ! I can't find file `empty.tex'.

So pdflatex is called and found. Then pdflatex can't find empty.tex. That looks like pdflatex is called in another directory than where
empty.tex resides. How that could happen, no idea.

Julius

--0000000000008dd71905911caa8d--