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 qLksEtTGDWZTMAAA62LTzQ:P1 (envelope-from ) for ; Wed, 03 Apr 2024 23:15:00 +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 qLksEtTGDWZTMAAA62LTzQ (envelope-from ) for ; Wed, 03 Apr 2024 23:15:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HLBiOALA; 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=1712178900; 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=Goi9/W7RRkmVhfjBH+ijSW4ovq9bbbL/qsUIwTXX4j4=; b=kJpSN22t1i/uqvRnDdByiDG97YKIGmnB8H7Z96rBVpGD8QjOkc9NQ98WVpR+/g4TX6hXBu CCmx5k0tRaBURbmfB9+aAeOpUAfpj+yoi+z/Z8Vk3bSRmLtyGJg9n+tlFPPnUm/cOs2tFG t4LYa0+iQIyE0VIS3/EgdeXoRYoMpi3VGHSKsPTINDT7kLri6tfQ1tVOb9Fi8zt/h2T4W5 PWRyJd2v3/EM7Qxs5/QmQhFflVwguduvbGiv9YJv+DKuzpb4JhIyLsEMzhJjsqEl/sN8/f T3AGqJCaeTSTAgPbLflROoNQE0OuHgmQd7KKcsNp+eRnyTO4RkT1/p+WVDuWLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712178900; a=rsa-sha256; cv=none; b=UmwanB551tt1Md4I19JYvklmJnXlZze6p7hSAHbf1e9eqhGVTWrTJITsVozH0jqj+M76Ax VpRL5tAWi0E3wdv7rOO+waU6Z5s6DUiOM0gWoBuagSFyeBBtlJY7AA9y1zQKxx5wlSqI0L ww9aIEUxotPFALxGoeVFDqlJ6y7SMMcQtvnubiFu9NzbiiC76WAJ0l2VCGcJ0l4FkLNI1i EZiq9mGKRAIV3uay5FVOQ3UE5nbnULR+yQj9M/i/P285p5feP5mJSHHwr4uo2zQ0xvLhFC Cfr1NG0pYU5GAyOYEI8J0qDd4HGjnBorY06J4+NrAavL4mg2hz2eZaaZfWbe3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HLBiOALA; 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 29E0860CF6 for ; Wed, 3 Apr 2024 23:15:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs7vf-0000kW-82; Wed, 03 Apr 2024 17:13:55 -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 1rs7vd-0000k1-1f for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 17:13:53 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rs7vb-0007pI-FI for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 17:13:52 -0400 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-789e5021703so18329885a.0 for ; Wed, 03 Apr 2024 14:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712178828; x=1712783628; darn=gnu.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Goi9/W7RRkmVhfjBH+ijSW4ovq9bbbL/qsUIwTXX4j4=; b=HLBiOALA0YpAAasVhbD6l8OxK6IGdU1gk5l0tDoJWBQ/gJwOFxYU69bmOfwOBAmrTP s/TAtFgIGbwM7h+h85esk1HQfZQlkuvpg3eoFStff2siWjgwHoJjMGY8txlZR1JAC4Bt 9xzIJwZ9lSzlnN+IhLJwOO8eUWIkykIWNZzriSaVzQnLzMtbpZACslJd5Xaf9EV84WXT 3yZam/b38ip9Y0gqyZ0y9Jdu+bGRC4hShDPDkAjepzGcvwAzboF2EfyHHLHP3Nx9B+qS LVfSJ6K5/5u79NoMZN3XTWOVjLUYzJxlFaD5dvTo0+CusFEpxhikF3pVU8Oa+ube9ZF/ M+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712178828; x=1712783628; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Goi9/W7RRkmVhfjBH+ijSW4ovq9bbbL/qsUIwTXX4j4=; b=Qb1onHeHYL1Oj8hHpWgEUpKtmkm8pVUBnn/7mCVuhS0PbJxUbs0w+CZ3vWjsSIseL/ 5r5SypU6FIbv2/7YEQzRIoA93ltfVPFBF5sVsKW6u9r25tQwJqYVsLaupZtYKSx/ArSH kS2a7M1p/J6ISKMPKPVfsobnaCM221f7q9+0dUyYLelJu8tsNlDDFq02Qbt7jgMMCigI sl4bN4Kr9PZX5smDX9PMbDv+dkXzEjDyRiWqbmJnm3qUSG3FCwYPhwAHNLgkDmZbIk3r G1dzi5vK3T3aUBZOUsFvC1MnwGKSOprJlbzsYg3ZVH3HuitofSQ8uREmkUjearoR5GpT i/pw== X-Gm-Message-State: AOJu0YwFt9W39wDw2tsuLZ4omU+EmYNZhoco1o3RCIhhPnzOV9qZX32K 7cbeuBLlLqd3elAJ2YWIGmGrimpBGmjIOUMnOx4z+7TM90/WVscyrVplK7l3 X-Google-Smtp-Source: AGHT+IGCBAo3MQOp81h4XHN28SoJ7opf+j15st7e8RzelXRxKjrMXSbwoRClhiYajU7xsMGxS2vUCg== X-Received: by 2002:a05:6214:1cc4:b0:691:23f3:2cba with SMTP id g4-20020a0562141cc400b0069123f32cbamr584250qvd.30.1712178827729; Wed, 03 Apr 2024 14:13:47 -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 gs4-20020a056214226400b00696934de5f7sm654075qvb.62.2024.04.03.14.13.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 14:13:47 -0700 (PDT) Message-ID: <5b49eb6e-9290-4654-9fcf-b72c14540c00@gmail.com> Date: Wed, 3 Apr 2024 17:13:44 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to export a single subtree but include document preamble? Content-Language: en-US To: emacs-orgmode@gnu.org References: From: Scott Randby Autocrypt: addr=srandby@gmail.com; keydata= xsBNBFHQfGIBCACpgHhvIzQ5MkmpNiL7X3Q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S26YSs0yS51/n6HVlZtP5BzZUq9k4bx/KVIyt22BnoYq9Af5 Hvbbe96JAzH2PoB6yaPLrq+wiND58o3G2bdvGj1iAqwJumrfkVZzRwARAQABwsBfBBgBAgAJ BQJR0HxiAhsMAAoJEDAe5lfy04pj7JMIAI69vw/h65PGzjO59nqnwa0UjHnc2/OY5PYcurYc xDWfue8pK++XoJMcTiPj9ex7y1WHwQnxU/9sTnNjyH/LZAo1CzjGG1vC1uxV02yii7S4RXzQ XT+RRgcbLndDTAdpdo0pGVmAq0dwsab27BD7RayDvuoydSlIBrt8bbY90a6bn1QV/kYX/N7i /YcDd3Eugwg6LiD6au0PjDRsj0xdg+b8FURCQSmtVF57J888UFJPrtE4bvZJoC+qPX9njbh3 WRGZ7UbEAy84KlUGtwJ6Xix5KAI5OzUm4Sqejyc41P2/dzSvsI4Z3yg8N3jUwAB8RaE1dCpe GUOH2nZit8eB1Sc= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=srandby@gmail.com; helo=mail-qk1-x72a.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: -8.21 X-Spam-Score: -8.21 X-Migadu-Queue-Id: 29E0860CF6 X-Migadu-Scanner: mx13.migadu.com X-TUID: 2zz9FXf0Bpw6 On 4/3/24 15:00, Richard H. Stanton wrote: > I just tried to export a single subtree from an org document to a PDF file: > > 1) Type C-c C-e [org-export-dispatch] > 2) C-s to narrow to subtree > 3) l -> o to export to PDF via LaTeX > > However, instead of exporting the portion of the file I want, I get the error message > > Undefined Org macro: newline; aborting > > That macro is defined in a setup file that is #+included at the top of the file, so exporting the entire file works fine. > > I assume the problem is that when I export only one subtree, the setup file is not #+included, and I can see it sort of makes sense, but it would be nice if there were an option to include one or more lines from the preamble when exporting just a subtree, since otherwise exporting a subtree doesn’t actually work! Is there a simple way to do this? > I don't know if this does what you want, but I use a ‘PROPERTIES’ drawer right below the subtree's headline and in that drawer, I put the following code: :EXPORT_LATEX_HEADER_EXTRA: \input{latex-preamble.tex} Scott Randby