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/