From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Option for minimalist html file Date: Tue, 22 May 2012 17:32:21 -0400 Message-ID: <12486.1337722341@alphaville> References: <1337363998.45694.YahooMailNeo@web121405.mail.ne1.yahoo.com> <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWwgt-0001Aa-Gq for emacs-orgmode@gnu.org; Tue, 22 May 2012 17:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWwgr-0007Qy-Om for emacs-orgmode@gnu.org; Tue, 22 May 2012 17:32:27 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:44208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWwgr-0007Ql-IK for emacs-orgmode@gnu.org; Tue, 22 May 2012 17:32:25 -0400 In-Reply-To: Message from Endak A of "Tue, 22 May 2012 13:00:56 PDT." <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> 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: Endak A Cc: "emacs-orgmode@gnu.org" Endak A wrote: > Can there be an option like > #+OPTIONS: html-minimal:t > > which does not have > > > >
> ... >
> >
> ... >
> > or any of the meta tags except : > > > or
and the accompanying
but obviously the stuff in-between. > > If I want to, I can insert any of the html code that is missing from the minimalist version that I want using #+HTML: or #+STYLE: > This is the second time you asked this question and Ian Barton has already provided an answer the first time. Did you see that? Be that as it may, I have a question to the list re. Ian's response: afaik, there is no ``bodyonly'' option (at least not in the way that the OP would have liked it). The only way I know of restricting the output to body-only is to call the export routine explicitly and pass a t for the body-only arg, e.g. --8<---------------cut here---------------start------------->8--- ; define a wrapper function (defun my-org-export-as-html-body-only () (interactive) (org-export-as-html nil nil nil nil t nil)) ; ... and bind it to some key (define-key (function my-org-export-as-html-body-only)) --8<---------------cut here---------------end--------------->8--- Am I missing an easier way to do this? Thanks, Nick