emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Better way to specify the latex documentclass of an exported file without changing my configuration?
@ 2014-03-26  8:37 Alan Schmitt
  2014-03-26  9:24 ` Feng Shu
  2014-03-26 13:21 ` Nicolas Goaziou
  0 siblings, 2 replies; 12+ messages in thread
From: Alan Schmitt @ 2014-03-26  8:37 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm collaborating on a paper with some colleagues, and I convinced them
to use org-mode. I'm trying to make sure the paper is as self-contained
as possible (I don't want them to have to change their emacs
configuration file). To change the documentclass name of the exported
article, I added the following block in a section that is not exported:

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :results silent :exports results
  (add-to-list 'org-latex-classes
               '("llncs"
                 "\\documentclass{llncs}"
                 ("\\section{%s}" . "\\section*{%s}")
                 ("\\subsection{%s}" . "\\subsection*{%s}")
                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
#+end_src
--8<---------------cut here---------------end--------------->8---

My questions are:
- is there a way to do this without an emacs-lisp block?
- is there a nicer way to make sure that an emacs-lisp block is
evaluated upon export than ":exports results :results silent"? (If
I don't put it there, the block is not evaluated.)
- is there a way to just say the name of the documentclass without all
the boilerplate code below? In other words, can I say "this is a llncs
documentclass with the same sectioning as an article"?

Thanks,

Alan

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

end of thread, other threads:[~2014-03-26 23:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26  8:37 Better way to specify the latex documentclass of an exported file without changing my configuration? Alan Schmitt
2014-03-26  9:24 ` Feng Shu
2014-03-26 12:38   ` Fabrice Niessen
2014-03-26 12:53     ` Alan Schmitt
2014-03-26 18:46       ` Thomas S. Dye
2014-03-26 22:03         ` Alan Schmitt
2014-03-26 12:47   ` Alan Schmitt
2014-03-26 23:26     ` Richard Lawrence
2014-03-26 13:21 ` Nicolas Goaziou
2014-03-26 13:54   ` Alan Schmitt
2014-03-26 14:10     ` Nicolas Goaziou
2014-03-26 14:57       ` Alan Schmitt

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