emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export "simple" HTML?
@ 2014-10-12 18:14 Gary Oberbrunner
  2014-10-12 18:46 ` Eric Abrahamsen
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Oberbrunner @ 2014-10-12 18:14 UTC (permalink / raw)
  To: Orgmode Mailing List

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.

-- 
Gary

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: export "simple" HTML?
  2014-10-12 18:14 export "simple" HTML? Gary Oberbrunner
@ 2014-10-12 18:46 ` Eric Abrahamsen
  2014-10-13  1:02   ` Grant Rettke
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2014-10-12 18:46 UTC (permalink / raw)
  To: emacs-orgmode

Gary Oberbrunner <garyo@oberbrunner.com> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: export "simple" HTML?
  2014-10-12 18:46 ` Eric Abrahamsen
@ 2014-10-13  1:02   ` Grant Rettke
  2014-10-13  2:27     ` Eric Abrahamsen
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Rettke @ 2014-10-13  1:02 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode@gnu.org

If it is an easy answer, how would one do this in batch mode?

On Sun, Oct 12, 2014 at 1:46 PM, Eric Abrahamsen
<eric@ericabrahamsen.net> wrote:
> Gary Oberbrunner <garyo@oberbrunner.com> 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.
>
>



-- 
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: export "simple" HTML?
  2014-10-13  1:02   ` Grant Rettke
@ 2014-10-13  2:27     ` Eric Abrahamsen
  2014-10-13  7:47       ` Fabrice Niessen
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2014-10-13  2:27 UTC (permalink / raw)
  To: emacs-orgmode

Grant Rettke <gcr@wisdomandwonder.com> writes:

> 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.

Hope that's enough to get you there...

> On Sun, Oct 12, 2014 at 1:46 PM, Eric Abrahamsen
> <eric@ericabrahamsen.net> wrote:
>> Gary Oberbrunner <garyo@oberbrunner.com> 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.
>>
>>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: export "simple" HTML?
  2014-10-13  2:27     ` Eric Abrahamsen
@ 2014-10-13  7:47       ` Fabrice Niessen
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Niessen @ 2014-10-13  7:47 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-13  7:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).