From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: Publishing using the new exporter Date: Mon, 08 Oct 2012 19:36:43 +0200 Message-ID: <50730F2B.5030902@mpip-mainz.mpg.de> References: <50602E92.3080705@mpip-mainz.mpg.de> <87y5jzafab.fsf@gmail.com> <50609817.705@mpip-mainz.mpg.de> <87a9vz7stn.fsf@gmail.com> <507045B7.9010101@mpip-mainz.mpg.de> <877gr3cwzi.fsf@gmail.com> <507181CD.1050005@mpip-mainz.mpg.de> <87391prumz.fsf@gmail.com> <5072F9BD.7020505@mpip-mainz.mpg.de> <87y5jgrjrt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050809040509030806030409" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLHG5-0003RM-W5 for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 13:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLHG4-0007Ir-LA for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 13:36:49 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:26530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLHG4-0007Ik-BP for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 13:36:48 -0400 In-Reply-To: <87y5jgrjrt.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Eric Schulte This is a multi-part message in MIME format. --------------050809040509030806030409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hallo, On 10/08/2012 06:49 PM, Nicolas Goaziou wrote: > Hello, > > Robert Klein writes: > >> umm, no, it doesn't work. I even have more issues now. >> >> 1. At first, when calling org-e-publish I got an error message "void >> function org-e-html-publish-to-html" >> >> I go rid of the message by this patch (which most probably is the >> wrong thing to do): > > Just (require 'org-e-html) instead. > >> 2. When calling org-e-publish from a buffer visiting a file outside of >> the base-directory i still get empty images. >> >> 3. When calling org-e-pblish from a buffer visiting a file in the >> base-directory the intermediate tex file doesn't even have the >> "includegraphics" commands. (I checked this twice, as I didn't >> believe it at first). Do the my changes in 1. above bork the exporter >> totally? > > I don't think so, but I cannot reproduce your problem. Could you try > again in a fresh emacs, once back-ends you need have been required? > I re-installed the git-version of org-mode, required 'org-e-html and 'org-e-latex and exported from a fresh emacs. Issue 1 and 3 above are gone, but I still get empty images when calling org-e-publish from a buffer visiting a file outside the base-directory. I appended both a minimal .emacs and org file I used for the tests. Best regards Robert --------------050809040509030806030409 Content-Type: text/plain; charset=UTF-8; name=".emacs" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=".emacs" (setq load-path (cons "~/.emacs.d/org-mode/lisp" load-path)) (require 'org) (require 'org-e-html) (require 'org-e-latex) ;; org-babel (setq org-plantuml-jar-path "~/.emacs.d/plantuml.jar") (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (python . t) (sql . t) (sh . t) (dot . t) (plantuml . t) (latex . t) (ditaa . t))) (setq org-e-publish-project-alist nil) (add-to-list 'org-e-publish-project-alist '("example-org" :base-directory "~/Documents/org/example" :base-extension "org" :publishing-directory "~/public_html/example.com" :publishing-function org-e-html-publish-to-html )) (add-to-list 'org-e-publish-project-alist '("example-pdf" :base-directory "~/Documents/org/example" :base-extension "org" :publishing-directory "~/puglic_html/example.com" :publishing-function org-e-latex-publish-to-pdf )) (add-to-list 'org-e-publish-project-alist '("example-extra" :base-directory "~/Documents/org/example" :base-extension "css\\|pdf\\|png\\|jpg\\|gif\\|ksh\\|sh\\|py" :publishing-directory "~/public_html/example.com" :publishing-function org-e-publish-attachment :recursive t )) (add-to-list 'org-e-publish-project-alist '("example" :components ("example-org" "example-pdf" "example-extra") )) --------------050809040509030806030409 Content-Type: text/plain; charset=UTF-8; name="index.org" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="index.org" # -*- fill-column:75; coding: utf-8-unix; -*- #+TITLE: example.com * Introduction Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. * plantuml diagram #+begin_src plantuml :file example.png :exports results @startuml title Todo for something (*) --> "Count slowly to ten" --> "Count slowly backwards to zero" --> "Relax" --> (*) #+end_src --------------050809040509030806030409--