emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: hello world <asymptotic.freedom@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Latex macros
Date: Thu, 25 Jun 2009 16:19:26 +0200	[thread overview]
Message-ID: <87ws70l7kh.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <30a87b20906250452n2602c7eycccdcdf663437f8e@mail.gmail.com> (hello world's message of "Thu, 25 Jun 2009 13:52:48 +0200")

hello world <asymptotic.freedom@googlemail.com> 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

      parent reply	other threads:[~2009-06-25 14:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 11:52 Latex macros hello world
2009-06-25 12:32 ` Mikael Fornius
2009-06-25 12:38 ` Bastien
2009-06-25 14:19 ` Sebastian Rose [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ws70l7kh.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=asymptotic.freedom@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).