From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Wholesale changes to LaTeX headers Date: Wed, 01 Jan 2020 06:18:22 +1100 Message-ID: <87fth09udd.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52143) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imN2E-0002aK-MM for emacs-orgmode@gnu.org; Tue, 31 Dec 2019 14:18:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imN2D-0002WO-LP for emacs-orgmode@gnu.org; Tue, 31 Dec 2019 14:18:30 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:53115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1imN2D-0002Pt-Bn for emacs-orgmode@gnu.org; Tue, 31 Dec 2019 14:18:29 -0500 Received: by mail-pj1-x102f.google.com with SMTP id a6so1474569pjh.2 for ; Tue, 31 Dec 2019 11:18:29 -0800 (PST) Received: from tim-desktop (203-173-25-222.dyn.iinet.net.au. [203.173.25.222]) by smtp.gmail.com with ESMTPSA id 12sm57799343pfn.177.2019.12.31.11.18.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 11:18:26 -0800 (PST) In-reply-to: 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" To: emacs-orgmode@gnu.org Norman Walsh writes: If you want these changes globally, I would start with the org-latex-classes variable. There is a lot you can do by tweaking the values in this variable. I found the documentation to be good, but dense (i.e. a lot to it, needing a git to digest fully). The docs for that variable will also point you to other variables you can tweak to do what you want. If you just want to tweak for specific files, #+LATEX_HEADER and #+LATEX_HEADER_EXTRA might be sufficient. I find these a good place to experiment with different settings. If they prove more widely useful, I will transfer/translate them into the other org-latex variables. Finally, doing an M-x apropos for org-latex-.* will likely bring up some additional variables which my be of interest/use. Tim > Hi, > > I want to make wholesale changes to the LaTeX preamble exported from > Org mode. I want to put \RequirePackage and \PassOptionsToPackage > calls before the \documentclass, I want to write a specific set of > macros after the \documentclass, I want to craft a couple of > \renewcommands, etc. > > Where should I begin? > > Be seeing you, > norm -- Tim Cross