emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Endak A <enda_k2@yahoo.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Option for minimalist html file
Date: Tue, 22 May 2012 17:32:21 -0400	[thread overview]
Message-ID: <12486.1337722341@alphaville> (raw)
In-Reply-To: Message from Endak A <enda_k2@yahoo.com> of "Tue, 22 May 2012 13:00:56 PDT." <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com>

Endak A <enda_k2@yahoo.com> wrote:

> Can there be an option like
> #+OPTIONS: html-minimal:t
> 
> which does not have
> 
> <script type="text/javascript">
> ...
> </script>
>  
> <div id="preamble">
> ...
> </div>
> 
> <div id="postamble">
> ...
> </div>
> 
> or any of the meta tags except :
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> 
> or <div id="content"> and the accompanying </div> 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 <some-keymap> <some-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

  reply	other threads:[~2012-05-22 21:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18 17:59 Option for minimalist html file Endak A
2012-05-19 17:14 ` Ian Barton
2012-05-22 20:00 ` Endak A
2012-05-22 21:32   ` Nick Dokos [this message]
2012-05-23 11:47   ` Jambunathan K

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=12486.1337722341@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=enda_k2@yahoo.com \
    /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).