* Latex macros
@ 2009-06-25 11:52 hello world
2009-06-25 12:32 ` Mikael Fornius
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hello world @ 2009-06-25 11:52 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 614 bytes --]
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.
Since it is all about speed in note-taking, I think such a support
would be really appreciated...
Thank you,
Josef
[-- Attachment #1.2: Type: text/html, Size: 699 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex macros
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
2 siblings, 0 replies; 4+ messages in thread
From: Mikael Fornius @ 2009-06-25 12:32 UTC (permalink / raw)
To: hello world; +Cc: emacs-orgmode
I use the #+LATEX_HEADER in the beginning lines of my .org-file, like
this:
#+LATEX_HEADER: \usepackage{amsmath}
#+LATEX_HEADER: \newcommand{\cparen}[1]{\left\{ #1 \right\}}
--
Mikael Fornius
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex macros
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
2 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2009-06-25 12:38 UTC (permalink / raw)
To: hello world; +Cc: emacs-orgmode
Hello Josef,
hello world <asymptotic.freedom@googlemail.com> writes:
> 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.
Have a look at the variables `org-format-latex-header' and
`org-export-latex-packages-alist', it might help.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex macros
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
2 siblings, 0 replies; 4+ messages in thread
From: Sebastian Rose @ 2009-06-25 14:19 UTC (permalink / raw)
To: hello world; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-25 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).