From: Bernt Hansen <bernt@norang.ca>
To: joe@chemistry.coe.edu
Cc: emacs-orgmode@gnu.org
Subject: Re: body-only for single file html export
Date: Sun, 19 Dec 2010 17:10:57 -0500 [thread overview]
Message-ID: <87y67lct1q.fsf@norang.ca> (raw)
In-Reply-To: <20101218184623.GA22172@chemistry.coe.edu> (joe@chemistry.coe.edu's message of "Sat, 18 Dec 2010 12:46:23 -0600")
joe <joe@chemistry.coe.edu> 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
next prev parent reply other threads:[~2010-12-19 22:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 18:46 body-only for single file html export joe
2010-12-19 22:10 ` Bernt Hansen [this message]
2010-12-20 15:03 ` joe
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=87y67lct1q.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=joe@chemistry.coe.edu \
/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).