emacs ORG-mode "headless" export-as commands?

Posted by Seamus on Super User See other posts from Super User or by Seamus
Published on 2011-06-20T16:03:07Z Indexed on 2011/06/20 16:26 UTC
Read the original article Hit count: 278

Filed under:
|
|
|

When I use org-export-as-latex or org-export-as-html orgmode turns my buffer into a .tex file or .html file. But I don't want all the extra junk that it adds to the file: I want to handle the documentclass and everything myself and just \input the org mode generated file. (Or the analogous things for html with php).

So if my org file just has:

* Section
- Stuff
- Things

I want the org mode command to output just

\section{Section}
\begin{itemize}
\item Stuff
\item Things
\end{itemize}

Without any of the extra \tableofcontents junk that ORG adds to it. I know I could define my own kind of #+LaTeX_CLASS that could add the packages I want and so on, but I don't want to do things that way (and that wouldn't remove the \maketitle or the spurious \vspace* that ORG insists on inserting.

Is there a command to do this "headless" parsing and converting? I had a look but it's not obvious from the documentation. Presumably some low level ORG command is doing the parsing and converting I want, but I couldn't find what it was called from looking at the docs and C-h pages...

This is not a question about HTML or LaTeX but about emacs ORG mode. So don't kick it off to some other site...

© Super User or respective owner

Related posts about emacs

Related posts about html