From mboxrd@z Thu Jan 1 00:00:00 1970 From: Endak A Subject: Option for minimalist html file Date: Fri, 18 May 2012 10:59:58 -0700 (PDT) Message-ID: <1337363998.45694.YahooMailNeo@web121405.mail.ne1.yahoo.com> Reply-To: Endak A Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-292383200-1987478220-1337363998=:45694" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVRT9-0002Du-90 for emacs-orgmode@gnu.org; Fri, 18 May 2012 14:00:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVRT7-0007o9-Fv for emacs-orgmode@gnu.org; Fri, 18 May 2012 14:00:02 -0400 Received: from nm3-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.163]:36530) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SVRT7-0007nf-53 for emacs-orgmode@gnu.org; Fri, 18 May 2012 14:00:01 -0400 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" ---292383200-1987478220-1337363998=:45694 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Can there be an option like=0A=0A#+OPTIONS: html-minimal:t=0A=0A=0Awhich do= es not have =0A=0A=0A= =0A=0A=A0=0A
=0A...=0A=0A
=0A=0A=0A
=0A...=0A
=0A=0A=0Aor any of the meta tags except :=0A=0A=0Aor =
and the accompanying
but obviously the stuff in= -between. =0A=0A=0AIf 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:= =0A=0A=0ABest wishes,=0A=0AEnda=0A ---292383200-1987478220-1337363998=:45694 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Can there be an = option like

#+OPTIONS: html-minimal:t

which does not have

<scri= pt type=3D"text/javascript">
...
</script>=
 
<div id=3D"preamble">
...
</div>

<div id=3D"postam= ble">
...
</div>

= or any of the meta tags except :
<meta http-equiv=3D"Content-T= ype" content=3D"text/html; charset=3DUTF-8" />

= or <div id=3D"content"> and the accompanying </div> but obvious= ly the stuff in-between.

If I want to, I can = insert any of the html code that is missing from the minimalist version tha= t I want using #+HTML: or #+STYLE:


Best wis= hes,

Enda
---292383200-1987478220-1337363998=:45694-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Option for minimalist html file Date: Sat, 19 May 2012 18:14:10 +0100 Message-ID: <4FB7D4E2.1070809@wilkesley.net> References: <1337363998.45694.YahooMailNeo@web121405.mail.ne1.yahoo.com> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVnEg-0000rx-6U for emacs-orgmode@gnu.org; Sat, 19 May 2012 13:14:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVnEe-00052R-FN for emacs-orgmode@gnu.org; Sat, 19 May 2012 13:14:33 -0400 Received: from mail2.wilkesley.net ([109.74.196.44]:33247 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVnEe-00050J-96 for emacs-orgmode@gnu.org; Sat, 19 May 2012 13:14:32 -0400 Received: from [192.168.0.183] (unknown [217.146.125.41]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 0D4E8357F4D for ; Sat, 19 May 2012 18:14:10 +0100 (BST) In-Reply-To: <1337363998.45694.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: emacs-orgmode@gnu.org On 18/05/12 18:59, 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: > > You can achieve this by using the bodyonly option when exporting and the putting in the rest your self using #+HTML: Ian. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Endak A Subject: Option for minimalist html file Date: Tue, 22 May 2012 13:00:56 -0700 (PDT) Message-ID: <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> References: <1337363998.45694.YahooMailNeo@web121405.mail.ne1.yahoo.com> Reply-To: Endak A Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-292383200-1499661465-1337716856=:46783" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWvGP-0002r5-4v for emacs-orgmode@gnu.org; Tue, 22 May 2012 16:01:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWvGN-0007I5-9v for emacs-orgmode@gnu.org; Tue, 22 May 2012 16:01:00 -0400 Received: from nm5.bullet.mail.ne1.yahoo.com ([98.138.90.68]:46138) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SWvGM-0007Hm-W3 for emacs-orgmode@gnu.org; Tue, 22 May 2012 16:00:59 -0400 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" ---292383200-1499661465-1337716856=:46783 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Can there be an option like=0A=0A=0A#+OPTIONS: html-minimal:t=0A=0A=0Awhich= does not have =0A=0A=0A > >
> ... >
> >
> ... >
> > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Option for minimalist html file Date: Wed, 23 May 2012 17:17:21 +0530 Message-ID: <81ehqbazli.fsf@gmail.com> References: <1337363998.45694.YahooMailNeo@web121405.mail.ne1.yahoo.com> <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXA2W-0003xH-CL for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:47:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXA2R-0002Jn-LN for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:47:39 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:33070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXA2R-0002JT-C3 for emacs-orgmode@gnu.org; Wed, 23 May 2012 07:47:35 -0400 Received: by pbbrp2 with SMTP id rp2so10387935pbb.0 for ; Wed, 23 May 2012 04:47:33 -0700 (PDT) In-Reply-To: <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> (Endak A.'s message of "Tue, 22 May 2012 13:00:56 -0700 (PDT)") 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 writes: > 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: You need to use the new e-html exporter and roll out your own defun for custom template. Get the default template function: M-: (assoc-default 'template org-e-html-translate-alist) => org-e-html-template Replace the default template function with your own: M-: (setcdr (assoc 'template org-e-html-translate-alist) 'org-my-e-html-template) Fill out org-my-e-html-template based on your needs. (Hint: M-x load-library RET org-e-html and M-x find-function RET org-e-html-template) > > > Best wishes, > > Enda > > > > --