From: Jacob Gerlach <jacobgerlach@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Latex code before maketitle
Date: Thu, 12 Feb 2015 16:14:29 +0000 [thread overview]
Message-ID: <CAA6UvuEgB9tBfRbAiq4BL74rfAGXyQAvmQghrBDvOJQuEqMDSw@mail.gmail.com> (raw)
In-Reply-To: 87vbj7jzi7.fsf@ucl.ac.uk
[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]
On Wed Feb 11 2015 at 4:01:47 PM Rasmus <rasmus@gmx.us> 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 <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 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
[-- Attachment #2: Type: text/html, Size: 2423 bytes --]
prev parent reply other threads:[~2015-02-12 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 20:42 Latex code before maketitle Jacob Gerlach
2015-02-11 21:01 ` Rasmus
2015-02-12 0:24 ` Charles C. Berry
2015-02-12 8:38 ` Eric S Fraga
2015-02-12 16:14 ` Jacob Gerlach [this message]
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=CAA6UvuEgB9tBfRbAiq4BL74rfAGXyQAvmQghrBDvOJQuEqMDSw@mail.gmail.com \
--to=jacobgerlach@gmail.com \
--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).