emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Pierre de Buyl <pdebuyl@ulb.ac.be>
To: lists@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: exporting HTML - content only
Date: Mon, 27 Jun 2011 12:00:28 -0400	[thread overview]
Message-ID: <23B77DE8-88C3-4DB2-B262-7B47D32B0A59@ulb.ac.be> (raw)
In-Reply-To: <4E08A484.3060700@wilkesley.net>


There is also the possibility to do it without further configuration.

M-- M-x org-export-region-as-html

exports the HTML of the selected region only, no header text and so on.


Le 27 juin 11 à 11:40, Ian Barton a écrit :

> 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 16:00 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
2011-06-27 16:00   ` Pierre de Buyl [this message]
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:

  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=23B77DE8-88C3-4DB2-B262-7B47D32B0A59@ulb.ac.be \
    --to=pdebuyl@ulb.ac.be \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@manor-farm.org \


* 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


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).