emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] exporting HTML - content only


From: Ian Barton
Subject: Re: [O] exporting HTML - content only
Date: Mon, 27 Jun 2011 16:40:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10

On 27/06/11 15:18, Tamas K Papp wrote:
Hi,

I started using org-mode to write blog posts for posting on
blogger.com.  I am aware of org-googlecl, but I am looking for a more
lightweight solution to the following problem:

How can I export only the _content_ of a page as HTML into a buffer?

Specifically,

1. I only want the stuff inside the<div id="content">  ...</div>,
2. Disabling the generation of a H1 heading from the title,
3. no postamble/preamble.

I would like to give the appropriate options at the beginning of the
file to achieve this and just do C-c C-e H or something similar, but I
don't know what options to use.

I can do all of this manually, but automating it would be easier.


Have a look at http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html. Specifically you need to set :body-only t in your org-publish-project-alist. However, I am not sure how you can set up publishing to a buffer, rather than a file.

Ian.



reply via email to

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