From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Calsaverini Subject: Exporting latex without preamble Date: Tue, 28 Jun 2011 16:15:33 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdlQ-0005KE-7K for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:16:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbdlM-0002IW-QE for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:15:59 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:50382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdlM-0002Hk-Em for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:15:56 -0400 Received: by bwd14 with SMTP id 14so606250bwd.0 for ; Tue, 28 Jun 2011 12:15:54 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, is it possible to export an org file to latex with no preamble and no \begin{document}?? I just needed to translate org-mode syntax to latex syntax, with no other headers and preambles around the text. Is this possible? I tried to add a "clean" class to my .emacs like this: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (add-to-list 'org-export-latex-classes '("clean" " [NO-DEFAULT-PACKAGES] [NO-PACKAGES] [NO-EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; But when I try to export this file: * Test ** Test 1 blablabla ** Test 2 lorem ipsum blabla I get this: % Created 2011-06-28 Tue 16:13 \providecommand{\alert}[1]{\textbf{#1}} \title{bla} \author{Rafael S. Calsaverini} \date{\today} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Test} \label{sec-1} \subsection{Test 1} \label{sec-1-1} blablabla \subsection{Test 2} \label{sec-1-2} lorem ipsum blabla \end{document} Is there any option to turn the preamble off? --- Rafael Calsaverini Dep. de F=EDsica Geral, Sala 336 Instituto de F=EDsica - Universidade de S=E3o Paulo rafael.calsaverini@gmail.com http://stoa.usp.br/calsaverini/weblog CEL: (11) 7525-6222 USP: (11) 3091-6803