From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: customising org-latex-to-pdf-process for bibtex Date: Tue, 1 Mar 2011 13:32:50 -0800 Message-ID: <20110301133250.06f3436a@kuru.homelinux.net> References: <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> <20110225181003.35eab1c7@bhishma.homelinux.net> <877hck5ekx.fsf@ucl.ac.uk> <20110228124536.6d142c10@bhishma.homelinux.net> <87ei6rfcir.fsf@ucl.ac.uk> <20110301042609.6e8dee4a@bhishma.homelinux.net> <878vwzf1h1.fsf@pinto.chemeng.ucl.ac.uk> <20110301104334.63fe4eec@bhishma.homelinux.net> <87sjv6wp3j.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36221 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuXC0-0003U1-MU for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 16:33:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuXBz-0005LT-Ap for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 16:33:16 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:38551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuXBz-0005LJ-68 for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 16:33:15 -0500 Received: by fxm5 with SMTP id 5so6242943fxm.0 for ; Tue, 01 Mar 2011 13:33:13 -0800 (PST) In-Reply-To: <87sjv6wp3j.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: Org-mode mailing list Hi Eric, On Tue, 01 Mar 2011 20:41:20 +0000 Eric S Fraga wrote: > Ah, very interesting. What I don't understand is why this is > affecting you. I can see it affecting you if the aux file cannot be > found but not if the first pdflatex step worked okay. Do you still > have the problem if the first step worked? > Before the first pdflatex run the working directory seems correct: > Invoked in dir /home/jallad/org/masters-thesis In the output for this run I see some lines like these: > [6] > No file msthesis.bbl. > [7] (./msthesis.aux) I guess that means the .aux files are created? > If so, and if you still have the sh file I sent to the list yesterday, > can you add the following line to the top: > > echo 'Invoked in dir ' $PWD > > and post the output (the first few lines only) of the export to PDF > when you get the error with bibtex? Despite the above, for bibtex I get the following: > --------------------------------- running bibtex next > > Invoked in dir /home/jallad/org/masters-thesis > > bibtex: Not writing to /home/jallad/org/masters-thesis/msthesis.blg > (openout_any = p). I couldn't open file name > `/home/jallad/org/masters-thesis/msthesis.blg' Explicitly calling the texlive 2007 bibtex resolves the problem. As per one of Tom's suggestions earlier in the thread, if I set (setq org-export-pdf-remove-logfiles nil) I can see the .aux files present after the final pdflatex run. Not sure why bibtex overlooks that since the working directory seems correct. -- Suvayu Open source is the future. It sets us free.