From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id kPt0J9H0DmZQcwAA62LTzQ:P1 (envelope-from ) for ; Thu, 04 Apr 2024 20:43:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kPt0J9H0DmZQcwAA62LTzQ (envelope-from ) for ; Thu, 04 Apr 2024 20:43:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OTNRsaMP; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712256209; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=rMxQ5E245J6RFLX9b2liCfFYu6DOQW25K+ZltbTesEY=; b=FSYQKh5r78AgFu1hFkdm8M9lr9mBlaUbYS+kPjGKa3USbFw9Am8nQz9JW5UkDg/rT8ylen CzoAp8xFvXJY77nGyIVxfVhBEBaYeyVh07w5qbepXMVx7wUUc51YWLHhXh19kIs6XOUYi4 Hs3DJDTxw1M6lOhe90rRQVtx1zgp6nX9jrWdNbOAAEd7jiytUzFU/oS1Bd0J6+aBxZ4nJ4 VhAS3WjZa2vHKj/BgAXAiz25CSQQdZfTXz6bxIzQga2znde7QG7ag0/746yfiK9/Lpqk9V imcKpXSThLAf6NmT5M65WEa0KTsGjQ4y162RRu8vtfa7SYgkd9CHgwv3L/L+5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712256209; a=rsa-sha256; cv=none; b=JTMoafkGuicC8BMCqvtKo7C21nKN4ifMtTwWSEC/qOg3PJLrt++MJwPTIcypCiNef5XwSr Y3r22Izc4KpRH8hcqRe9tGpWvl3j+BxZ/lQteYYzvnqcrWieWZVmNaG/Yw5t9cFiN6n7CO aDGy4tpu5nyJL+/hcqWsUNvrDd8In5xOomuS88Z/ktFMr9BJKI5H5oaGnNqISNj/JW019l p4f9u1Uv83sZPmpms4X09sA7UacoKT4ty36MZTNwAZx7JAbnDznDks9Ulnm7nS4hOZgeCY Cgvic85KhtoDY9dD1+vB8vgvfnNLJX5DPJ3WoW43z7UCT7e8jUlCn8iAtWEDnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OTNRsaMP; 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=gmail.com 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 70EB764197 for ; Thu, 4 Apr 2024 20:43:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsS2u-0007SR-1r; Thu, 04 Apr 2024 14:42:44 -0400 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 1rsS2r-0007S0-Tr for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 14:42:41 -0400 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsS2q-0001DW-Bd for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 14:42:41 -0400 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-22e7444c5a0so667057fac.2 for ; Thu, 04 Apr 2024 11:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712256159; x=1712860959; darn=gnu.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=rMxQ5E245J6RFLX9b2liCfFYu6DOQW25K+ZltbTesEY=; b=OTNRsaMPRxTdCS72JjYL692IETaHlB2pAt0gORx34rPXpPQY9t1jBhXbHDSYiaKwpT tQ0G6Os//jFxTDc+jtHFy86YZ1E9J5CH23Q7lb3ZqHqo2yQJawhbQtKoIP1fx7RN14Zn HVHAa2z86KSjxHehhENpxSwlr0Bs7I6E1f0911nWuGomSZOf+jc12L+0wJslOKJ0sFzX K6MHfD88lATOMZMOFx+mrQFuWah2Fu4wQqeHXy4YRVKOEq8E+11JEF+hFT/FHLi46yiR TKxvcjjM78FZd9c2ZaDdZnqfzgo/wn3wesl8jvLszmDH3ykIRO5ExfPVBcWMc+nITXWB QL/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712256159; x=1712860959; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rMxQ5E245J6RFLX9b2liCfFYu6DOQW25K+ZltbTesEY=; b=ubPmMlRm46BKhz75ZV4a+SSwoos+p6nj5GrOoAfn3vxwz40MhaCT7Kex/arCVn5WKX KAFU4j45TZNjtldieJFTZ9QW0TMH+Rs9teQp+f7grCck/6N+t38I2TxyILWmhyojTogr HPamvicHcKfLjp+YzX7L/AcQxMR5d1w/Q7k+Rvd+5JzhUu8GAK0yBQFpQJ7bMH8WbHBh AU+fgHe0j/ntuOgkC7ZlH0nOOdnz8piOHlpjUPoAP9laCyzeKCT9tmsZ/G4bgK9q7j9e 5PL/ulKfuqsfBOBfoEhi/Ag4zJ3IlMFWjUclnhfoJKBNGDuSkVIqL+IZKGmA4nGea58M /T0g== X-Forwarded-Encrypted: i=1; AJvYcCXtw0TpO3flWZOXNI0eJZB+pw8pXqse74jaIrzlouTX6I4l8kWX282DKxwuOnV0eaS66SF/f8SZCEYcNcVauVoXiSv06uM= X-Gm-Message-State: AOJu0Yw5z4ljExmVofvBOwSvpuPPv8s88DoVvV3p1NOzT/Ntu+o38kNt m1pxjDsfJBFM0kKf3qHXJVuhMZGXeoH5FZT7qbO81ha5RG7OjQ2HAg0L05zZ X-Google-Smtp-Source: AGHT+IGDJNLlvvEAmvxG0bYlpKtpedBXV21tCzm6mldS1SwaN27qDPtCNgpgn+/fBz8QHEh7dVBfYw== X-Received: by 2002:a05:6870:7248:b0:229:f403:136e with SMTP id y8-20020a056870724800b00229f403136emr3608285oaf.56.1712256159010; Thu, 04 Apr 2024 11:42:39 -0700 (PDT) Received: from [192.168.1.151] (167.sub-97-137-65.myvzw.com. [97.137.65.167]) by smtp.gmail.com with ESMTPSA id qp10-20020a05620a388a00b0078d3ad47448sm1248956qkn.104.2024.04.04.11.42.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Apr 2024 11:42:38 -0700 (PDT) Message-ID: Date: Thu, 4 Apr 2024 14:42:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to export a single subtree but include document preamble? To: Richard Stanton , emacs-orgmode@gnu.org References: <8A1DD68F-1F73-458A-B4AB-4479BDA76882@berkeley.edu> Content-Language: en-US From: Scott Randby Autocrypt: addr=srandby@gmail.com; keydata= xsBNBFHQfGIBCACpgHhvIzQ5MkmpNiL7X3Qd56i4ZQMUH8gz+9/U92UQgB6CdbLRz3wlynld CPkU2CcXPeqhMLCtnVbbOn0EmBjBLZqUpR0GbH0SUjpa/zNFJZaC68sOJ4YnUXAStmkIBIhu rhL+RJjP2Ei5sNCtfefZVIucR+A/xQTdCkhowbem59UYNfLMfwV1oYofwhr63iyuw6hvEoZC JnlKUe/1bIZb4bxpqYnaDJ8ZgsWxLHEMQ/nQW9Myza9c6pIxk2rsM251UmwbQV3XJCreJi1l MTVcoAHa2KuXhIvTk5h2lU5PpwDnF5G+Kip7EwAxvuipCV1pnR7c2IIsCNvEEZBxFo1DABEB AAHNMFNjb3R0IFJhbmRieSAoTWF0aGVtYXRpY2lhbikgPHNyYW5kYnlAZ21haWwuY29tPsLA eAQTAQIAIgUCUdB8YgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQMB7mV/LTimM6 cAf9HK/zoZgOOLbPVw2lHJUSJeOqYeVP9WbVTniAYl5H1qXlfCUFhl+gnWNtUqg0lhk9Jscs 0LT+dHUHwbS4tr4fr8lLaqYCiteNwJEdFIX8QeawXYCDP5u/31swk6oyrhWC++nnb0I9QbXa 35CxAdOWASImDXzYKYyYA7um5IQOMNNM7v5Wdd39ZGCWWAEBD4x/kAFZ1n/tSv5vP9hAtYq5 78796YvCMIhKhfpWvzzCKtzZ8gkLrrY0MUgBuYFtQVqt+F/LRJna1YiVx2P76FVAGOdVDs7O dieFRopm4t3jzVsvydMkjrlMHkGtxc0OwE0tP+xUNSZ5vFJorGO1cHTTv87ATQRR0HxiAQgA naMRvTNM6o/X2cgHRsOaBTHN0B7xfAy50D5mtQ47yRxhefQ5L2+3gsqE1U1c4PfpPiZS92TU 2PEzbOjgLEQZAF31d1ZimUhedtqsWcBWk+FRdQc4oLCzc8ENHIxkKmRr83tmgsCLwE6evpGa FM+7tpBccAMVM73RbSga6XySHOPYfCPKK4utRyejckI2XUvdY5eWPmmL1iFXNB7SaoaTpKQD 1zIvJQN0hcPiRaBkwB7/mMTZS26YSs0yS51/n6HVlZtP5BzZUq9k4bx/KVIyt22BnoYq9Af5 Hvbbe96JAzH2PoB6yaPLrq+wiND58o3G2bdvGj1iAqwJumrfkVZzRwARAQABwsBfBBgBAgAJ BQJR0HxiAhsMAAoJEDAe5lfy04pj7JMIAI69vw/h65PGzjO59nqnwa0UjHnc2/OY5PYcurYc xDWfue8pK++XoJMcTiPj9ex7y1WHwQnxU/9sTnNjyH/LZAo1CzjGG1vC1uxV02yii7S4RXzQ XT+RRgcbLndDTAdpdo0pGVmAq0dwsab27BD7RayDvuoydSlIBrt8bbY90a6bn1QV/kYX/N7i /YcDd3Eugwg6LiD6au0PjDRsj0xdg+b8FURCQSmtVF57J888UFJPrtE4bvZJoC+qPX9njbh3 WRGZ7UbEAy84KlUGtwJ6Xix5KAI5OzUm4Sqejyc41P2/dzSvsI4Z3yg8N3jUwAB8RaE1dCpe GUOH2nZit8eB1Sc= In-Reply-To: <8A1DD68F-1F73-458A-B4AB-4479BDA76882@berkeley.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=srandby@gmail.com; helo=mail-oa1-x29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 X-Migadu-Spam-Score: -7.00 X-Spam-Score: -7.00 X-Migadu-Queue-Id: 70EB764197 X-Migadu-Scanner: mx13.migadu.com X-TUID: JTkB0eDjX+aA > On 4/4/24 14:11, Richard Stanton wrote: > Thanks for the suggestion! > > It would still be nice (i.e., you wouldn’t have to do this for every section you ever want to export) to have a way of specifying a line that gets executed for EVERY (say) LaTeX export. Or else an option to do something like include everything in the file before the first section header. > > That would be a nice feature, but I also like using the 'PROPERTIES' drawer because it enables me to have very fine control over the export of a subtree. A typical drawer I use looks like this: :PROPERTIES: :EXPORT_TITLE: *Subtree Title* :EXPORT_FILE_NAME: Exported-Subtree :EXPORT_LATEX_HEADER_EXTRA: \input{latex-preamble.tex} \hypersetup{pdftitle={Subtree Title},pdfauthor={Scott Randby},pdfsubject={},pdfkeywords={},pdfproducer={Emacs Org},pdfcreator={pdflatex}} \hypersetup{colorlinks=true,urlcolor=blue,linkcolor=blue} %\pagestyle{empty} % Turn page numbering off :EXPORT_OPTIONS: h:4 author:nil email:nil date:nil creator:nil timestamp:nil tags:nil num:0 toc:nil :END: Scott