emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Latex macros


From: Sebastian Rose
Subject: Re: [Orgmode] Latex macros
Date: Thu, 25 Jun 2009 16:19:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux)

hello world <address@hidden> 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




reply via email to

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