From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Calsaverini Subject: Fwd: Exporting latex without preamble Date: Tue, 28 Jun 2011 16:20:18 -0300 Message-ID: References: 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]:41603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbdpy-0006Y1-9B for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:20:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbdpv-00033b-Ud for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:20:41 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:33891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbdpv-00033Q-Hf for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 15:20:39 -0400 Received: by bwd14 with SMTP id 14so610231bwd.0 for ; Tue, 28 Jun 2011 12:20:38 -0700 (PDT) In-Reply-To: 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 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 =A0 =A0 =A0'("clean" =A0 =A0 =A0 =A0 " =A0 =A0 =A0 =A0 [NO-DEFAULT-PACKAGES] =A0 =A0 =A0 =A0 [NO-PACKAGES] =A0 =A0 =A0 =A0 [NO-EXTRA]" =A0 =A0 =A0 =A0 ("\\section{%s}" . "\\section*{%s}") =A0 =A0 =A0 =A0 ("\\subsection{%s}" . "\\subsection*{%s}") =A0 =A0 =A0 =A0 ("\\subsubsection{%s}" . "\\subsubsection*{%s}") =A0 =A0 =A0 =A0 ("\\paragraph{%s}" . "\\paragraph*{%s}") =A0 =A0 =A0 =A0 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; But when I try to export this file: * Test ** Test 1 =A0 blablabla ** Test 2 =A0 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} =A0 blablabla \subsection{Test 2} \label{sec-1-2} =A0 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