From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Re: New exporter documentation? Date: Fri, 18 Jan 2013 09:11:34 +0100 Message-ID: <87obgmc3m1.fsf@sophokles.streitblatt.de> References: <50F8F320.70709@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw73G-0007Ex-Fp for Emacs-orgmode@gnu.org; Fri, 18 Jan 2013 03:11:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tw73C-0007ac-OB for Emacs-orgmode@gnu.org; Fri, 18 Jan 2013 03:11:50 -0500 Received: from mo6-p00-ob.rzone.de ([2a01:238:20a:202:5300::1]:31785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw73C-0007Yw-GL for Emacs-orgmode@gnu.org; Fri, 18 Jan 2013 03:11:46 -0500 In-Reply-To: <50F8F320.70709@gmail.com> (James Harkins's message of "Fri, 18 Jan 2013 15:00:48 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: James Harkins Cc: Emacs-orgmode@gnu.org James Harkins 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