emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Better way to specify the latex documentclass of an exported fil


From: Feng Shu
Subject: Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?
Date: Wed, 26 Mar 2014 17:24:36 +0800
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)

Alan Schmitt <address@hidden> writes:

> 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

Maybe you can write a Makefile to change their emacs configure...
> 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"?

You should defun a classe for llncs.sty before use it. maybe
you can rename llncs.sty to article.sty, and put it to directory which contain
your org file.

>
> Thanks,
>
> Alan

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]