emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* latex-export custom header?
@ 2012-06-12 15:56 renato
  2012-06-12 18:39 ` Sebastien Vauban
  2012-06-12 18:49 ` Manuel Batsching
  0 siblings, 2 replies; 4+ messages in thread
From: renato @ 2012-06-12 15:56 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latex-export custom header?
  2012-06-12 15:56 latex-export custom header? renato
@ 2012-06-12 18:39 ` Sebastien Vauban
  2012-06-12 18:49 ` Manuel Batsching
  1 sibling, 0 replies; 4+ messages in thread
From: Sebastien Vauban @ 2012-06-12 18:39 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Renato,

renato wrote:
> 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.

A quick answer. Many, in fact.

Common solutions are:

- put your extra stuff in an external .org file, and insert it wherever you
  want via SETUPFILE

- make a new LaTeX class file, and customize Org (`org-export-latex-classes')
  to use that one, instead of the default one.

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latex-export custom header?
  2012-06-12 15:56 latex-export custom header? renato
  2012-06-12 18:39 ` Sebastien Vauban
@ 2012-06-12 18:49 ` Manuel Batsching
  2012-06-13 13:24   ` renato
  1 sibling, 1 reply; 4+ messages in thread
From: Manuel Batsching @ 2012-06-12 18:49 UTC (permalink / raw)
  To: emacs-orgmode

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 <rennabh@gmail.com>:
> 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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latex-export custom header?
  2012-06-12 18:49 ` Manuel Batsching
@ 2012-06-13 13:24   ` renato
  0 siblings, 0 replies; 4+ messages in thread
From: renato @ 2012-06-13 13:24 UTC (permalink / raw)
  To: Manuel Batsching; +Cc: Sebastien Vauban, emacs-orgmode

On Tue, 12 Jun 2012 20:49:48 +0200
Manuel Batsching <flammschild@googlemail.com> wrote:

> 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)
> 

Thanks Manuel and Sebastien, you answered my question multiple times!
I'll have a try at these methods and see what I like best,

thanks again,
renato

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-13 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 15:56 latex-export custom header? renato
2012-06-12 18:39 ` Sebastien Vauban
2012-06-12 18:49 ` Manuel Batsching
2012-06-13 13:24   ` renato

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).