emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export "simple" HTML?


From: Fabrice Niessen
Subject: Re: [O] export "simple" HTML?
Date: Mon, 13 Oct 2014 09:47:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]