From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Batsching Subject: Re: latex-export custom header? Date: Tue, 12 Jun 2012 20:49:48 +0200 Message-ID: References: <20120612175622.22c45bdb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeWA9-0005ty-Kv for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 14:50:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeWA4-00031H-RN for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 14:49:57 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:55273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeWA4-0002zm-Hr for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 14:49:52 -0400 Received: by bkcjm19 with SMTP id jm19so5844781bkc.0 for ; Tue, 12 Jun 2012 11:49:48 -0700 (PDT) In-Reply-To: <20120612175622.22c45bdb@gmail.com> 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: emacs-orgmode@gnu.org On a per file basis, you can add extra lines to your LaTeX export header by using "#+LATEX_HEADER: ". (See: http://orgmode.org/org.html#Export-options) To get your custom commands also to work with the preview of LaTeX fragments, you may customise the "org-format-latex-header" variable. Actually I don't know if there is a way to add something to "org-format-latex-header" on a per-file basis... Is there? Cheers, Manuel 2012/6/12 renato : > Hi, I'm really enjoying the org-mode + cdlatex combo. One question > though, how can I customize the latex header produced by > org-export-as-latex ? I really need to add some \newcommand and > \newtheorem statements. > > best wishes, > renato >