emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] New exporter documentation?


From: Florian Beck
Subject: Re: [O] New exporter documentation?
Date: Fri, 18 Jan 2013 09:11:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

James Harkins <address@hidden> writes:

> Specific question: Is there an easy way to use a given LaTeX template (.cls 
> and .bib)? (I also found [2] but "easy" is not how I would describe that.)

The easiest way is probably

#+BEGIN_SRC emacs-lisp
(require 'org-export)
(require 'org-e-latex)

(setq org-e-latex-default-class "new-article")

(add-to-list
 'org-e-latex-classes
 '("new-article" "\\documentclass[10pt]{my-style}
\n\\bibliography{/path/to/bibfile.bib}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+END_SRC

This works just like `org-export-latex-classes' but see the docstring.

Now you are ready to go: M-x org-export-dispatch


-- 
Florian Beck



reply via email to

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