From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gunnar Wolf Subject: Re: Babel-generated files not part of published projects? Date: Thu, 31 Jan 2013 08:01:13 -0600 Message-ID: <20130131140113.GA48764@gwolf.org> References: <20130130180031.GA44277@gwolf.org> <87a9rpii4c.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0uks-0005SH-4z for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 09:04:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0ukp-00008w-2N for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 09:04:41 -0500 Received: from lafa.iiec.unam.mx ([132.248.72.141]:36902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0uko-00008f-T9 for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 09:04:38 -0500 Content-Disposition: inline In-Reply-To: <87a9rpii4c.fsf@bzg.ath.cx> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien dijo [Thu, Jan 31, 2013 at 02:42:27PM +0100]: > > When I export a single file (i.e. with C-c C-e p), the file gets > > generated with the specified filename and included in the resulting > > PDF. However, when I do it via org-publish-all (or > > org-publish-project), the code does not get executed, and the > > resulting files are missing the diagramas. > > > > What am I missing? >=20 > Most probably the ltxpng/ directory is not reachable/known or set > correctly the publishing project. Hi, No, I thought about it as well, but I now create the directory just before calling org-publish-project =E2=80=94 This snippet might sound sil= ly, but please bear in mind it's just a part of a bigger project :) I have this in my project Makefile: /-------------------- | html: | mkdir -p html/ltxpng | echo html | emacs --batch --load ~/.emacs --load publish.el --funcall = org-publish-project |=20 | pdf: | mkdir -p pdf/ltxpng | echo pdf | emacs --batch --load ~/.emacs --load publish.el --funcall o= rg-publish-project |=20 | publish: | emacs --batch --load ~/.emacs --load publish.el --funcall org-publish-= all My ~/.emacs file does include the needed declarations for Babel to evaluate the blocks: (org-babel-do-load-languages 'org-babel-load-languages '((dot . t)) = ) (defun my-org-confirm-babel-evaluate (lang body) (not (or (string=3D lang "dot") (string=3D lang "ditaa")))) (setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) The only information I can get from the buid process is that LaTeX does not find the needed files (and that can be reproduced just by running latex on the generated .tex files): LaTeX Warning: File `ltxpng/estados_proceso.png' not found on input l= ine 94. ! Package pdftex.def Error: File `ltxpng/estados_proceso.png' not fou= nd. (...) LaTeX Warning: File `ltxpng/bloqueo_mutuo_simple.png' not found on in= put line 1300. ! Package pdftex.def Error: File `ltxpng/bloqueo_mutuo_simple.png' no= t found. =20 The only thing I see is that when Org-mode exports to LaTeX, it does not run the Babel blocks. Any ideas?