emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gunnar Wolf <gwolf@gwolf.org>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Babel-generated files not part of published projects?
Date: Thu, 31 Jan 2013 08:01:13 -0600	[thread overview]
Message-ID: <20130131140113.GA48764@gwolf.org> (raw)
In-Reply-To: <87a9rpii4c.fsf@bzg.ath.cx>

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?
> 
> 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 — This snippet might sound silly,
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
| 
| pdf:
| 	mkdir -p pdf/ltxpng
| 	echo pdf | emacs --batch --load ~/.emacs --load publish.el --funcall org-publish-project
| 
| 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= lang "dot") (string= 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 line 94.
    ! Package pdftex.def Error: File `ltxpng/estados_proceso.png' not found.
    (...)
    LaTeX Warning: File `ltxpng/bloqueo_mutuo_simple.png' not found on input line 1300.
    ! Package pdftex.def Error: File `ltxpng/bloqueo_mutuo_simple.png' not found.
    
The only thing I see is that when Org-mode exports to LaTeX, it does
not run the Babel blocks.

Any ideas?

      reply	other threads:[~2013-01-31 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30 18:00 Babel-generated files not part of published projects? Gunnar Wolf
2013-01-31 13:42 ` Bastien
2013-01-31 14:01   ` Gunnar Wolf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130131140113.GA48764@gwolf.org \
    --to=gwolf@gwolf.org \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).