emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Klein <kleinrob@mpip-mainz.mpg.de>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Eric Schulte <eric.schulte@gmx.com>
Subject: Re: Publishing using the new exporter
Date: Mon, 08 Oct 2012 19:36:43 +0200	[thread overview]
Message-ID: <50730F2B.5030902@mpip-mainz.mpg.de> (raw)
In-Reply-To: <87y5jgrjrt.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

Hallo,

On 10/08/2012 06:49 PM, Nicolas Goaziou wrote:
> Hello,
>
> Robert Klein <kleinrob@mpip-mainz.mpg.de> 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


[-- Attachment #2: .emacs --]
[-- Type: text/plain, Size: 1417 bytes --]

(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")
	       ))

[-- Attachment #3: index.org --]
[-- Type: text/plain, Size: 722 bytes --]

# -*- 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

  reply	other threads:[~2012-10-08 17:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-24  9:57 Publishing using the new exporter Robert Klein
2012-09-24 10:25 ` Nicolas Goaziou
2012-09-24 15:57   ` Nick Dokos
2012-09-24 17:25     ` Achim Gratz
2012-09-24 17:27   ` Robert Klein
2012-09-25  7:16     ` Robert Klein
2012-09-25 10:58       ` Nicolas Goaziou
2012-09-25 20:54       ` Nicolas Goaziou
2012-10-06 11:17     ` Nicolas Goaziou
2012-10-06 14:52       ` Robert Klein
2012-10-06 17:48         ` Nicolas Goaziou
2012-10-07 13:21           ` Robert Klein
2012-10-08 12:55             ` Nicolas Goaziou
2012-10-08 16:05               ` Robert Klein
2012-10-08 16:49                 ` Nicolas Goaziou
2012-10-08 17:36                   ` Robert Klein [this message]
2012-10-08 17:46                     ` Suvayu Ali
2012-10-09  5:06                       ` Robert Klein
2012-10-09 10:07                     ` Robert Klein
2012-10-10 16:59                       ` Nicolas Goaziou
2012-10-10 19:15                         ` Robert Klein
2012-10-11 21:55                           ` Nicolas Goaziou
2012-10-15  9:35                             ` Robert Klein

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=50730F2B.5030902@mpip-mainz.mpg.de \
    --to=kleinrob@mpip-mainz.mpg.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.schulte@gmx.com \
    --cc=n.goaziou@gmail.com \
    /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).