emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Stanton <stanton@haas.berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: How to get LATEX_HEADER items to appear *after* default packages?
Date: Tue, 10 Mar 2015 12:31:38 -0700	[thread overview]
Message-ID: <56FD8AF0-A49B-4F01-921E-76C656257E1B@haas.berkeley.edu> (raw)

When I export an org file to LaTeX using the class rhs-article, defined as follows:

	     ‘("rhs-article"                          
	       "\\documentclass{article}
\\usepackage[top=1in, bottom=1.in, left=1in, right=1in]{geometry}
 [PACKAGES]
 [EXTRA]" ;;header-string
	       ("\\section{%s}" . "\\section*{%s}")
	       ("\\subsection{%s}" . "\\subsection*a{%s}")
	       ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
	       ("\\paragraph{%s}" . "\\paragraph*{%s}")
	       ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

I see that my headers defined using #+LATEX_HEADER appear in the resulting LaTeX file before the default packages defined in org-latex-default-packages-alist. How can I get the default packages to appear BEFORE the LATEX_HEADER items? Or better yet, how can I control things so that I can choose whether a LATEX_HEADER item appears before or after the default packages in the LaTeX file?

Thanks for any suggestions.

Richard Stanton

             reply	other threads:[~2015-03-10 19:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10 19:31 Richard Stanton [this message]
2015-03-10 20:02 ` How to get LATEX_HEADER items to appear *after* default packages? Nick Dokos

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=56FD8AF0-A49B-4F01-921E-76C656257E1B@haas.berkeley.edu \
    --to=stanton@haas.berkeley.edu \
    --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).