emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting latex without preamble
@ 2011-06-28 19:15 Rafael Calsaverini
  2011-06-28 19:20 ` Fwd: " Rafael Calsaverini
  0 siblings, 1 reply; 28+ messages in thread
From: Rafael Calsaverini @ 2011-06-28 19:15 UTC (permalink / raw)
  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
      '("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ísica Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaverini@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803

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

end of thread, other threads:[~2011-11-14 16:37 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28 19:15 Exporting latex without preamble Rafael Calsaverini
2011-06-28 19:20 ` Fwd: " Rafael Calsaverini
2011-06-28 23:05   ` Bastien
2011-06-29 14:20     ` Rafael Calsaverini
2011-06-29 16:28       ` Bastien
2011-06-29 16:32         ` Rafael Calsaverini
2011-06-29 16:57       ` Thomas S. Dye
2011-06-29 20:35         ` Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble) Karl Voit
2011-06-30  6:35           ` Thomas S. Dye
2011-06-30 15:30             ` chris.m.malone
2011-06-30 17:18               ` Org-mode as a replacement for LaTeX Thomas S. Dye
2011-06-30 18:11               ` Eric S Fraga
2011-07-01 11:10               ` Collaborating with other people (was: Org-mode as a replacement for LaTeX) Karl Voit
2011-07-01 11:47                 ` Rainer M Krug
2011-07-01 14:46                   ` Chris Malone
2011-06-30 17:04             ` Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble) Carsten Dominik
2011-06-30 17:23               ` Org-mode as a replacement for LaTeX Thomas S. Dye
2011-07-12 19:07               ` Thomas S. Dye
2011-07-12 22:00                 ` Sebastien Vauban
2011-07-12 22:12                   ` Nick Dokos
2011-07-13  7:28                     ` Sebastien Vauban
2011-07-12 22:16                   ` Thomas S. Dye
2011-07-12 22:45                     ` John Hendy
     [not found]               ` <CA+oe6vppaFbdzO_chuEL+WnUhEsmG4ZsnocLCaqSMVSQe6W8vg@mail.gmail.com>
2011-11-14 13:29                 ` Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble) Daniel Martins
2011-11-14 16:36                   ` Org-mode as a replacement for LaTeX Thomas S. Dye
2011-06-30 18:03             ` Markus Heller
2011-07-01  2:58               ` Thomas S. Dye
2011-06-29 17:05       ` Fwd: Exporting latex without preamble suvayu ali

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