From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Latex macros Date: Thu, 25 Jun 2009 16:19:26 +0200 Message-ID: <87ws70l7kh.fsf@kassiopeya.MSHEIMNETZ> References: <30a87b20906250452n2602c7eycccdcdf663437f8e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJpjm-0005Gw-PF for emacs-orgmode@gnu.org; Thu, 25 Jun 2009 10:15:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJpji-0005Gj-3l for emacs-orgmode@gnu.org; Thu, 25 Jun 2009 10:15:38 -0400 Received: from [199.232.76.173] (port=40792 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJpji-0005Gg-0R for emacs-orgmode@gnu.org; Thu, 25 Jun 2009 10:15:34 -0400 Received: from mail.gmx.net ([213.165.64.20]:41668) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MJpjh-000588-B5 for emacs-orgmode@gnu.org; Thu, 25 Jun 2009 10:15:33 -0400 In-Reply-To: <30a87b20906250452n2602c7eycccdcdf663437f8e@mail.gmail.com> (hello world's message of "Thu, 25 Jun 2009 13:52:48 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: hello world Cc: emacs-orgmode@gnu.org hello world writes: > Dear Carsten Dominik and Colleagues, > > searching for a scientific note-taking program I have discovered > your fantastic org-mode package. I use latex and usually > code a lot of formulas by having a lot of macros defined, e.g., > > \newcommand{\mgut}{\ensuremath{M_\mathrm{GUT}}} > > Thus, e.g.: "At \mgut\ gauge couplings unify in supersymmetry." > > In this regard, it would be great if one could use a > customized latex preamble (additional usepackage-commands) which > might be needed for the defined macros. I also use the #+LATEX_HEADER in my *.org files and lots of self-defined commands. It's almost a wonder how Org-modes copes with all those LaTeX code in those files. This is my customization (M-x customize-group RET org-export-latex RET): Org Export Latex Default Class: article Org Export Latex Classes: LaTeX class: article LaTeX header: % BEGIN My Article Defaults \input{/home/sebastian/develop/lib/latex/header-org-article-pdf.tex} \input{/home/sebastian/develop/lib/latex/code.tex} % END My Article Defaults Just ensure, to have the packages Org needs for export included in your latex headers. To do so, you could append you settings to the ones found there: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} % BEGIN My Article Defaults \input{/home/sebastian/develop/lib/latex/header-org-article-pdf.tex} \input{/home/sebastian/develop/lib/latex/code.tex} % END My Article Defaults Or simply put this into your org file: #+LATEX_HEADER: \input{path/to/my/special/header.tex} Sebastian