From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 AGBbA5qA72NFZwEAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 14:26:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +KlBA5qA72MhEgAAauVa8A (envelope-from ) for ; Fri, 17 Feb 2023 14:26:50 +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 91EE116EA8 for ; Fri, 17 Feb 2023 14:26:49 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jTJgK54z; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676640409; a=rsa-sha256; cv=none; b=ER8cw+hiVmqt6rBiLRpUVS7UMQsoo6uj3fAMgP4rBGlIL4MvwaXRxjmPeW0b97T9Mx+woA BxEIxvOaLdg7YZmY0s75W8Fh0pdziW9M4Jf7qB6v3vfbWqhPmu0Tc0ezxvMQhWXLQ9ZJqZ V7XAvZHVlNxscfzBZuLQdWNk4zl7grBUOCVS6geZELDiUCgut3GYrQwIXRKZo7clwvGOyg eYxello2ui2ALb8Pu70aA4lnVamX9z69JHvoBbdAheL7lSM6DBuqWW8WwzuPdSrLA0T2go S88jvzyU8OwiyHhzVkvtTg87Y4o/Bxp0qsfS0NomGLT2qrT5J6csukVVE1cMhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jTJgK54z; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676640409; 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=dD0f6y0Nkxh0kZJDdll3sqChIajrp+1YnZX2TSoNNyY=; b=ZLMOTr4WX1d4bI3HSApwQoXVXdzFSSkw127MUsW0wfIUYQjGqjfoBrxWV3TlP0HejEq43g 9AIT1ufkiT+R6g8gcKUz+axcBnx7EZRHUkRggQk1vxd2CwiLo2F5Ah/7K+8p8NVnYu8JKX v8oAD8ki8M/mFUkJc9lJwIMX5IPRyMkHFEp3YJ2TqjFaQS2/8Tf90yrxDXgrpfkwoY3i5E PXt8QNyPhvOjjO1rKhRtWWz+zngiJcLtSmGlVmpd8vRThpqMsrw9gS2aBiSUXZ0Doomda9 6OCwpJvCOemZTPqVOhq9TVgh29cbROgkXwfZzoWmy/NtQpaPnFvvcm5ReLy2tA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT0l1-0006ei-Rx; Fri, 17 Feb 2023 08:26:35 -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 1pT0l0-0006e5-6T for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 08:26:34 -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 1pT0kx-0002HD-Jf for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 08:26:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CEB6E2406A7 for ; Fri, 17 Feb 2023 14:26:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676640388; bh=d7b0TaHUwUUIO1ufSQTXCvYFWz+cbe8uMq1YhRm6254=; h=From:To:Cc:Subject:Date:From; b=jTJgK54z+84FTjVW/gDVTvl8E+krtMSJicIKZ2FZTSQtT0J7S1Qn4nVSnt7Yy+mDc mSVgQ9GOmJEPFqS0OsM/CjMomBRcQaSKTYNQ6omb0SMmboOpY7qisAFp0gkmd/7B5H fqfL186IIGj6pBv+3i1IpPkVXU3UFENVBgFqWsXej5RLsbxsTVFrUl4R7bqWe2psd+ nA6Nsm15laC5khan9ml+biuTw5H4tYttv+HXjMtAAkUPZrPd++P6OYIEYhl8SlUzut lDg6XtCuAviW/fV6A1aJdzGuOIaLsGuEUSSe5qBmDjPOVP+RLtQ/xmtyPVEVxeVok1 i2/JYiJ5CQnmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PJCJM15jQz6tqD; Fri, 17 Feb 2023 14:26:26 +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: <010201865f84b268-161de454-b780-4c1b-9ef1-035647e5d269-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> <878rgwbfii.fsf@localhost> <4f7041fc-4d26-0308-041b-e34365613074@housseini.me> <010201865f84b268-161de454-b780-4c1b-9ef1-035647e5d269-000000@eu-west-1.amazonses.com> Date: Fri, 17 Feb 2023 13:26:22 +0000 Message-ID: <875yc0beyp.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: X-Migadu-Queue-Id: 91EE116EA8 X-Spam-Score: -10.91 X-Migadu-Spam-Score: -10.91 X-Migadu-Scanner: scn0.migadu.com 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-Flow: FLOW_IN X-Migadu-Country: US X-TUID: IIMZB53PWk9a reza writes: >> Two possibilities: >> >> 1. Put file-local variable >> 2. Create an "Empty" class with empty documentclass statement >> and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...} >> > > Sorry for my noobish questions: > > 1. How do I put file-local variables in my org file? M-x add-file-local-variable or M-x add-file-local-varable-prop-line The latter will put things at the bottom. The format - at the top of the file. You can also use #+BIND: keyword if you have `org-export-allow-bind-keywords' set to t. > 2. Is it possible to do this inside my org file? For self-contained file, you must set file-local variable anyway. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at