emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: body-only for single file html export


From: Bernt Hansen
Subject: [Orgmode] Re: body-only for single file html export
Date: Sun, 19 Dec 2010 17:10:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

joe <address@hidden> writes:

> I would like to use the ":body-only" option for exporting html (and
> ocassionally latex). Reading through the docs and maillist, I think I
> understand how to do this if I'm publishing an entire project.  I
> don't have a project, though...
>
> I use emacs for editing html textareas and on-the-fly html editing,
> and want to export a single file using the body-only option.
>
> I was hoping I could simply do something like this in the template but
> it doesn't seem to work:
>
> #+OPTIONS: body-only:t
>
> If someone can help me with an org-mode-export-html function that sets
> the body-only option for a single file (without setting up a project),
> I would be very grateful.
>
> Thank you much!

Hi Joe,

(global-set-key (kbd "<f9> x") 'bh/test)

(defun bh/test (arg)
  (interactive "P")
  (org-export-as-html arg nil nil nil t))

then f9-x in an org-mode buffer will export as body-only and put a copy
in the kill ring so you can paste it.

HTH,
Bernt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]