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