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 18:05:17 +0200 Message-ID: <5072F9BD.7020505@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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFpx-0008JG-HM for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:05:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLFpk-00050A-8S for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:05:45 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:25305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFpj-0004xf-VM for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:05:32 -0400 In-Reply-To: <87391prumz.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 On 10/08/2012 02:55 PM, Nicolas Goaziou wrote: > Hello, > > Robert Klein writes: > >> There is still a small issue, though. I tried org-e-publish to pdf >> with one small difference: >> >> 1. I'm in a buffer, the visited file is in the base-directory. M-x >> org-e-publish... Publishing works Ok. >> >> 2. I'm in a buffer, visiting a buffer /not/ in the base-directory. >> M-x >> org-e-publish... The pdf's don't have their images included. >> >> I suspect, pdflatex is called using a working directory which is not >> the base-directory but the default-directory of the buffer from which >> I M-x >> org-e-publish. > > I pushed a patch to solve this. May you confirm it is fine now? > > Important note : I moved publishing functions to their respective > back-end, renaming them in the process. For example > `org-e-publish-org-to-pdf' becomes `org-e-latex-publish-to-pdf'. > > > Regards, > Hello, 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): diff -ur org-mode/lisp/org-e-html.el org-mode-b/lisp/org-e-html.el --- org-mode/lisp/org-e-html.el 2012-10-08 15:43:34.723502697 +0200 +++ org-mode-b/lisp/org-e-html.el 2012-10-08 17:24:26.147115603 +0200 @@ -36,7 +36,6 @@ ;;; Dependencies (require 'org-export) -(require 'org-e-publish) (require 'format-spec) (eval-when-compile (require 'cl) (require 'table)) diff -ur org-mode/lisp/org-e-publish.el org-mode-b/lisp/org-e-publish.el --- org-mode/lisp/org-e-publish.el 2012-10-08 15:43:34.727502681 +0200 +++ org-mode-b/lisp/org-e-publish.el 2012-10-08 17:24:48.848019275 +0200 @@ -41,6 +41,7 @@ (eval-when-compile (require 'cl)) (require 'format-spec) (require 'org-export) +(require 'org-e-html) (declare-function org-e-latex-compile "org-e-latex" (texfile)) 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? Best regards Robert