emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@wilkesley.net>
To: emacs-orgmode@gnu.org
Subject: Re: exporting HTML - content only
Date: Mon, 27 Jun 2011 16:40:52 +0100	[thread overview]
Message-ID: <4E08A484.3060700@wilkesley.net> (raw)
In-Reply-To: <iua3ff$kap$1@dough.gmane.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<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	other threads:[~2011-06-27 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 14:18 exporting HTML - content only Tamas K Papp
2011-06-27 15:40 ` Ian Barton [this message]
2011-06-27 16:00   ` Pierre de Buyl
2011-06-27 16:54 ` Christian Moe
2011-06-27 18:56 ` Samuel Wales

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=4E08A484.3060700@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@manor-farm.org \
    /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).