From: Robert Klein <kleinrob@mpip-mainz.mpg.de>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Publishing using the new exporter
Date: Tue, 25 Sep 2012 09:16:08 +0200 [thread overview]
Message-ID: <50615A38.2020506@mpip-mainz.mpg.de> (raw)
In-Reply-To: <50609817.705@mpip-mainz.mpg.de>
On 09/24/2012 07:27 PM, Robert Klein wrote:
> On 09/24/2012 12:25 PM, Nicolas Goaziou wrote:
>> Hello,
>>
>> Robert Klein <kleinrob@mpip-mainz.mpg.de> writes:
>>
>>> I'm trying to use the new exporter for publishing a project.
>>>
>>> For some reason all .org files get exported to zero length .html
>>> files.
>>
>> Did you (require 'org-e-html) first?
>>
>>
>> Regards,
>>
>
> Thanks, this helps.
>
> This is a bit curious for me. I compiled org-mode with
> ORG_ADD_CONTRIB = org-e-* org-md org-export
> in local.mk and simple eporting (instead of publishing) using org-e-
> export-html-to-html worked with only
> (require 'org-install)
> in my .emacs.
>
> Anyway, I can export now, though the new exporter doesn't seem to honor
> the :html-preamble and :html-postamble variables in the project alist
> yet. (I set them both to a function name, e.g.
> :html-preamble s2-preamble
> with s2-preamble defined as:
>
> #+begin_src elisp
> (defun s2-preamble ()
> (org-get-file-contents "~/Documents/org/s2/html/preamble.html"))
> #+end_src
>
>
> So, org-get-file-contents is a function from the old exporter, but I
> didn't see any reason why it shouldn't.
>
>
> Another issue I encountered, when publishing(!) to pdf, the resulting
> pdfs didn't have any images. This is probably caused by the images
> beind created in :base-directory and the pdf being created in
> :publishing-directory (there may be more to this; I think at one time I
> already hat images in :publishing-directory). Note, images are created
> using plantuml source in the .org-files. Works Ok with the HTML
> exporter, images are created by the PDF exporter also but not included
> in the resulting PDF.
>
> Best regards
> Robert
>
>
Hi,
when the :html-preamble function is just:
#+begin_src elisp
(defun s2-preamble ()
"alpha-mark")
#+end_src
the text "alpha-mark" also doesn't get inserted, though simply setting
#+begin_src elisp
:html-preamble "alpha-mark"
#+end_src
works.
If i set :html-preable to either s2-preamble or 's2-preamble nothing
gets inserted.
I studied the code in org-e-html (excerpt below), but i don't see what I
did wrong.
#+begin_src elisp :file contrib/lisp/org-e-html.el :firstline 1329
(defun org-e-html-preamble (info)
(when (plist-get info :html-preamble)
(let* ((title (org-export-data (plist-get info :title) info))
(date (org-e-html-format-date info))
(author (org-export-data (plist-get info :author) info))
(email (plist-get info :email))
(html-pre-real-contents
(cond
((functionp (plist-get info :html-preamble))
(with-temp-buffer
(funcall (plist-get info :html-preamble))
(buffer-string)))
#+end_src
Thanks for any help
Robert
next prev parent reply other threads:[~2012-09-25 7:16 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50615A38.2020506@mpip-mainz.mpg.de \
--to=kleinrob@mpip-mainz.mpg.de \
--cc=emacs-orgmode@gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.