From: Rafael Calsaverini <rafael.calsaverini@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Fwd: Exporting latex without preamble
Date: Tue, 28 Jun 2011 16:20:18 -0300 [thread overview]
Message-ID: <BANLkTimh1COdeyZN-VYBNS=norTF3bUMUw@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikAs6vCG9Frd6VJ1hOnzxuOswgKJw@mail.gmail.com>
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
next prev parent reply other threads:[~2011-06-28 19:20 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 19:15 Exporting latex without preamble Rafael Calsaverini
2011-06-28 19:20 ` Rafael Calsaverini [this message]
2011-06-28 23:05 ` Fwd: " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTimh1COdeyZN-VYBNS=norTF3bUMUw@mail.gmail.com' \
--to=rafael.calsaverini@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).