From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: exporting HTML - content only Date: Mon, 27 Jun 2011 16:40:52 +0100 Message-ID: <4E08A484.3060700@wilkesley.net> References: Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbDvp-00013x-HJ for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 11:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbDvm-0000IC-8p for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 11:41:01 -0400 Received: from mail.ian-barton.com ([109.74.196.44]:49221 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbDvl-0000Ho-Qz for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 11:40:58 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 7248915A044 for ; Mon, 27 Jun 2011 15:40:53 +0000 (UTC) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (mail.manor-farm.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ujtqb2ujNIit for ; Mon, 27 Jun 2011 15:40:53 +0000 (UTC) Received: from [192.168.0.133] (unknown [217.146.125.41]) (Authenticated sender: ian@manor-farm.org) by li40-130.members.linode.com (Postfix) with ESMTPSA id 31DC915A043 for ; Mon, 27 Jun 2011 15:40:53 +0000 (UTC) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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
...
, > 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.