emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: export "simple" HTML?
Date: Mon, 13 Oct 2014 09:47:51 +0200	[thread overview]
Message-ID: <86h9z8wguw.fsf@example.com> (raw)
In-Reply-To: 8761fo3drd.fsf@ericabrahamsen.net

Eric Abrahamsen wrote:
> Grant Rettke writes:
>> Eric Abrahamsen wrote:
>>> Gary Oberbrunner writes:
>>>
>>>> Has anyone created an HTML exporter that just exports "simple" HTML
>>>> with no fancy CSS stuff, just "normal" tags like <hN> and <table>
>>>> and <i> and <b> and <li>?  Basically something that could be pasted
>>>> into an email or a larger document.  The current HTML export is
>>>> beautiful, but it adds all kinds of divs, spans, CSS tags, and
>>>> other extraneous stuff.
>>>
>>> Try the "body only" export option: in the export dispatcher, hit
>>> "C-b" to toggle. That should give you clean HTML with no file
>>> template, and no bells and whistles.
>>
>> If it is an easy answer, how would one do this in batch mode?
>
> I've never actually exported anything in batch mode, so I won't be
> able to provide a real recipe, but body-only is one of the main export
> options, usually given as an argument to org-export-as (and
> family). If you're calling any one of those export functions directly
> as part of the batch export, you can just set that argument to t.

Making advertisement for my own stuff, you now have the option
"--body-only" to the Orgmk family of scripts (among others, org2html).

See https://github.com/fniessen/orgmk for more information (or example
code).

Best regards,
Fabrice

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/

      reply	other threads:[~2014-10-13  7:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12 18:14 export "simple" HTML? Gary Oberbrunner
2014-10-12 18:46 ` Eric Abrahamsen
2014-10-13  1:02   ` Grant Rettke
2014-10-13  2:27     ` Eric Abrahamsen
2014-10-13  7:47       ` Fabrice Niessen [this message]

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=86h9z8wguw.fsf@example.com \
    --to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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).