From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MM0NLMt972MQHQEAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 14:14:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CEM5K8t972NeBwEAG6o9tA (envelope-from ) for ; Fri, 17 Feb 2023 14:14:51 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CCA2167E2 for ; Fri, 17 Feb 2023 14:14:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT0Yu-0007Gn-0M; Fri, 17 Feb 2023 08:14:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT0Ys-0007Gf-63 for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 08:14:02 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT0Yq-0006WG-6N for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 08:14:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4171B2405EE for ; Fri, 17 Feb 2023 14:13:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676639637; bh=Bh0U8m8e00m/Zygn2V9kgKLys3KjXfKWTmhrNbmblJs=; h=From:To:Cc:Subject:Date:From; b=ZtxRw0BfcsmT0cbgxxmgsvFasYLtCANdIlqnMYxRLL5Bb0o6/QGaD7pPa834pXTF4 aHTYDBmk/M8V9kqapZiD9evcCFn8Cju5047rjONp/ReqZ4iEEEtZ9bPaRVvJqXs2Ja w27hdh6DXy5BUBGh4JWrBzdQZOdtHQUibZbr3Onp/+Td7oUcr2y1z4OSON3+NffBzt DAv+Ra/S0kAT4YVjQ/44cSsdQUN3OXULGwLGPYYqBGA5feUtvBXzUHCB39eKE7wO1B PmXGy9MK3SKtPlIWs0GTA7Xs/uGB58zKsqxDvF9XW3lvvsEc8gssYwi+rQFztanH43 SrxF1vu+8rx9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PJC1q4MR5z6tnG; Fri, 17 Feb 2023 14:13:51 +0100 (CET) From: Ihor Radchenko To: reza Cc: "emacs-orgmode@gnu.org" Subject: Re: Use custom preamble from tex file for latex export In-Reply-To: <010201865f7d3916-b563687f-f9de-4ecb-9703-6fccacb1a261-000000@eu-west-1.amazonses.com> References: <1535a463-91fd-d085-06ee-ebd816c57ec8@housseini.me> <010201865e95ac16-b85af27c-f5db-4572-9747-b822f5217571-000000@eu-west-1.amazonses.com> <87h6vkmvnq.fsf@ucl.ac.uk> <010201865f61a60d-e0f854b4-0dfd-4f91-99bb-b43ceede27e9-000000@eu-west-1.amazonses.com> <878rgwmp75.fsf@ucl.ac.uk> <010201865f7d3916-b563687f-f9de-4ecb-9703-6fccacb1a261-000000@eu-west-1.amazonses.com> Date: Fri, 17 Feb 2023 13:14:29 +0000 Message-ID: <878rgwbfii.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676639691; a=rsa-sha256; cv=none; b=GuLYXA0jBSu1ciyuAI3Z1GP1zbNLRLgPI126hU4q9lwF57mPZvtrxlCAEB+lEyC8aFGmcy 63vVyS3ABpKnVP7fb+UqGHSEmqNLmgsY3tP0/yX6GCARJ2KJa3Tl/HhyORI3y7InT4bQs+ 59GZFXEd0/rQ4gj5UNscBJABZpDI1OA1nbntWKq627QcZyOuLbW2kxmRU+krJsqfrnfGHX D8sVmhwxjquNhebmTpnta1akVfQWt2oSG44/KM0TnJSbpmlqh3WD8r/ghcMDvm0i/kr4AQ 776p/U3Trpte3YkLdkr0D5InWTuIiP59TqC4z0/V+ryBk6m03dvPCN0QmyYc0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZtxRw0Bf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676639691; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T+R3huGkALb/lpCX+i3LHth9vCCxbEaxE6dyAthBdac=; b=pA0M+Ih+oothaxBpV0E3el+EQYjH8pEFN0nCeKKb8ID8LFdPj7poioykOAcD932sqZcD/W mPXehgxvRjt6aOLnwAHtTEGi3IoV4iEOvocMrheNh4hcq+DhQ9FzUcnBjcTWWgoTgTsDp8 cNrilnUwfNRqijPsaez8H/xlS7hIzmDddTGiJKiS6M6bDxe5qoN0wy672U5TRylwy7aCEI RApjSTaAbX5Q76jzG8Cv4rd7mAFU5QOK5o9k/30lNeC4vTeHV9MkYUVlRb2SUnYDlqI7s9 Rdvo70Eajiy0FlDjpiOgRFtKH8cwhqZiPHZwSxBhbPWep7sn5+3E2jDA5xCBdQ== X-Migadu-Spam-Score: -6.11 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: 3CCA2167E2 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZtxRw0Bf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Spam-Score: -6.11 X-TUID: QUYgsXJpp27l reza writes: >> The full org alternative is to customise org-latex-classes with all the >> LaTeX preamble you want or need. This is what I do. > > Is there a way to extend org-latex-classes inside my org file, so I can > keep using C-c C-e l l (export to latex)? Two possibilities: 1. Put file-local variable 2. Create an "Empty" class with empty documentclass statement and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...} -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at