emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get LATEX_HEADER items to appear *after* default packages?
@ 2015-03-10 19:31 Richard Stanton
  2015-03-10 20:02 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stanton @ 2015-03-10 19:31 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: How to get LATEX_HEADER items to appear *after* default packages?
  2015-03-10 19:31 How to get LATEX_HEADER items to appear *after* default packages? Richard Stanton
@ 2015-03-10 20:02 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2015-03-10 20:02 UTC (permalink / raw)
  To: emacs-orgmode

Richard Stanton <stanton@haas.berkeley.edu> writes:

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

See the doc for org-latex-classes, in particular
the section entitled "The header string".

Nick

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

end of thread, other threads:[~2015-03-10 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 19:31 How to get LATEX_HEADER items to appear *after* default packages? Richard Stanton
2015-03-10 20:02 ` Nick Dokos

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