From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Re: Latex code before maketitle Date: Thu, 12 Feb 2015 16:14:29 +0000 Message-ID: References: <87vbj7jzi7.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113749a8249e1b050ee66ab4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLwPS-0005o0-5U for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 11:14:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLwPO-0005GF-4i for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 11:14:34 -0500 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:39561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLwPO-0005G5-07 for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 11:14:30 -0500 Received: by mail-qg0-f52.google.com with SMTP id h3so8651576qgf.11 for ; Thu, 12 Feb 2015 08:14:29 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode --001a113749a8249e1b050ee66ab4 Content-Type: text/plain; charset=UTF-8 On Wed Feb 11 2015 at 4:01:47 PM Rasmus wrote: > Maybe something like AfterPreamble, AfterEndPreamble, AtEndPreamble etc. > from etoolbox? Ah, a Latex solution to an Org problem. I was looking for a final filter and didn't realize it, but used your approach before I saw Chuck's reply. Since I was already defining a custom org-latex-class, I was able to add the necessary code inside the class definition: (add-to-list 'org-latex-classes ... [NO-DEFAULT-PACKAGES] [EXTRA] \\AfterPreamble{ ... } This works great. On Wed Feb 11 2015 at 7:24:43 PM Charles C. Berry wrote: > (info "(org) Advanced configuration") has a heading called 'Filters' that > may interest you. > Indeed, this is what I was missing. I would have used this if I hadn't already figured it out with AfterPreamble I started creating a filter to move the TOC (which I need to come after "Acknowledgments"), but it turned out to be easier just to set toc:nil and put the TOC and lists of figures/tables where I wanted them as raw Latex commands Thanks both for the help. Regards, Jake --001a113749a8249e1b050ee66ab4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed Feb 11 2015 at 4:01:47 PM Rasmus <rasmus@gmx.us> wrote:
Maybe something like AfterPreamble, AfterEndPreamble, AtEndPr= eamble=C2=A0etc. from etoolbox?=C2=A0

Ah, a= Latex solution to an Org problem. I was looking for a final filter and did= n't realize it, but used your approach before I saw Chuck's reply.<= /div>

Since I was already defining a custom org-latex-cl= ass, I was able to add the necessary code inside the class definition:

(add-to-list 'org-latex-clas= ses
...
[NO-DEFAULT-PACKAGES]
[EXTRA]
\\AfterPreamble{
...
}

This works great.

On Wed Feb 11 2015 at 7:24:43 PM Charl= es C. Berry <ccberry@ucsd.edu>= ; wrote:
(info "(org) Advanced configuration"= ) has a heading called 'Filters' that
may interest you.
Indeed, this is what I was missing. I would have used this if = I hadn't already figured it out with AfterPreamble

=
I started creating a filter to move the TOC (which I need to com= e after "Acknowledgments"), but it turned out to be easier just t= o set toc:nil and put the TOC and lists of figures/tables where I wanted th= em as raw Latex commands

Thanks both for the help.=

Regards,
Jake
--001a113749a8249e1b050ee66ab4--