|
From: | Pierre de Buyl |
Subject: | Re: [O] exporting HTML - content only |
Date: | Mon, 27 Jun 2011 12:00:28 -0400 |
Hello, There is also the possibility to do it without further configuration. Typing M-- M-x org-export-region-as-html exports the HTML of the selected region only, no header text and so on. Pierre 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 thefile to achieve this and just do C-c C-e H or something similar, but Idon'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.
[Prev in Thread] | Current Thread | [Next in Thread] |