[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Fwd: Exporting latex without preamble
From: |
Rafael Calsaverini |
Subject: |
[O] Fwd: Exporting latex without preamble |
Date: |
Tue, 28 Jun 2011 16:20:18 -0300 |
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
address@hidden
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803
- [O] Exporting latex without preamble, Rafael Calsaverini, 2011/06/28
- [O] Fwd: Exporting latex without preamble,
Rafael Calsaverini <=
- Re: [O] Fwd: Exporting latex without preamble, Bastien, 2011/06/28
- Re: [O] Fwd: Exporting latex without preamble, Thomas S. Dye, 2011/06/29
- [O] Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble), Karl Voit, 2011/06/29
- Re: [O] Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble), Thomas S. Dye, 2011/06/30
- Re: [O] Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble), chris . m . malone, 2011/06/30
- Re: [O] Org-mode as a replacement for LaTeX, Thomas S. Dye, 2011/06/30
- Re: [O] Org-mode as a replacement for LaTeX, Eric S Fraga, 2011/06/30