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 wKKpFn+nDWYAgQAA62LTzQ:P1 (envelope-from ) for ; Wed, 03 Apr 2024 21:01:19 +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 wKKpFn+nDWYAgQAA62LTzQ (envelope-from ) for ; Wed, 03 Apr 2024 21:01:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=unRVRL6+; 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=reject) header.from=berkeley.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712170879; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jnzNeUA1tDNioxFToSR4rsfJXw5SH+r3cMu9GpQ3W/4=; b=t+CyKyGBg3cDJBaGbTjBgJf3mmIgfUvBtbE/B+r/aDVUwHb8Nk2MwCrOYg+cxJL9nI5APx IjjC2hvEKoq5TRN7E2erhJpaTSd+1AtZDcbpz1MZRK0szxf1U8vr2EapH2JcpkiK9oT4tC R7KTsMGNTj561yGrh2GyP3c4T1GvW8q3JWMG8isy2PMYTD4069JKFq/MRXWt/CQHKZ4Ow7 ICSS2XdwRGrCgNBFudmTiiqpNuEjEEwa2NlLLpX3X/qZh6DgIP1K2mO4amqpV6UFUbjiyF 3FqRu+LErOxPlX/0luNZ2a37oRie9J2yDoBuJ5ZEKZ/fgCfDXN29p4QUuRzezg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712170879; a=rsa-sha256; cv=none; b=bDnkbHb8zI/jp8UgzCawsSTzdR4HWBoa83OYUg3J8JYrf7xKEIwRY2WO2LYrN1UxVv2r2+ +5HzLBRiLkPAZat1TRrbzUaidrkYNtzN78S7Pqy5UKlZYhYrjzuL6pR8PnS2v6Nr/6VYMM QG1f+0WCWYBfRXCaSGZtuz1iBG06/AcYv9kWqoULAjGyGL+c/5Jdx+ZmwB4dKgO//WDtZm CM4/NpDg28LC2DCl6koiTUtuLF363g77Aq8a8OdIOGHSMNEXbauVALROAtXKQWQN9lWthp /itB+g2dQJXwDdFFfiob94/mT68tyX3cxG8dMpSqXF+UL5w75hPJxvRLsVuZOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=unRVRL6+; 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=reject) header.from=berkeley.edu 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 39EA44286D for ; Wed, 3 Apr 2024 21:01:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs5qa-0003dW-Cq; Wed, 03 Apr 2024 15:00:32 -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 1rs5qX-0003bR-9S for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 15:00:29 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rs5qP-0001u4-SD for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 15:00:26 -0400 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-2a2601f0562so115065a91.0 for ; Wed, 03 Apr 2024 12:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; t=1712170817; x=1712775617; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=jnzNeUA1tDNioxFToSR4rsfJXw5SH+r3cMu9GpQ3W/4=; b=unRVRL6+YydVCkKRvCCZrcfwR1KeG/76ZPh059iR4oWKTdwbfhTl0BbYpQ17N/jP2g YfVJORW+rdIQLtSQEgFGu/5m/BLEHFZEfU1fPnrVuBaLljzV9JFGUqLJqBpZdBvp+iW1 fdsS49qdzP8Jd5PyC0GlfreVrGNFWE/OaiIXo++lzRYoAwy2z+2puX1gcOf6jszGQzbU 9nZYzRDTGqTWhnMHa2QfKPZLZtLh+gKlivl50XfCsu6JJpZFTx47dupVVpoJmT6cpRZb P3rPwwxp0J6TMCDWItKW571Q+GRVy5XY6ivc6+Ml4YPonH4SAA4bvLmPK8EuoFz5d653 q+NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712170817; x=1712775617; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jnzNeUA1tDNioxFToSR4rsfJXw5SH+r3cMu9GpQ3W/4=; b=Xz6Jw5y3kiVjNRoNBj8oyr2HeLs6M8mIqBv7TM/x+eO33/3N4ltKtooYgNGTwZNvln mKr6IkF4NZ8qJvw/QdUa/mGIEkcrduFCkD+e6kMN9ozOvQ7bRXYz7tV+z/HC4oKl/zBU KDv+RHu0ETHsu7/8fEyalJtzfMl83iZVhz7IPItzuICZGzDmRjuzgQEoQHtGU3V5qQb9 xrrRBV7DCJwDtnYtsrblRuz7Dq1SGfVLvcXxP+A2LzqIYXg6sIqGEpseVM0rYRSGvnIc IIE8mQyEwe1mxPkDFqw6Al8XONMoxzFRPaw8RKbZZ3AUmmd+LH/Ft7KYmxiJ00v1jxAU oY4Q== X-Gm-Message-State: AOJu0YwLmCPbtWOdXkVfodj+H+1MK1lpW0QNmJtAHlVTSqLyApWt4HmP sqpgPBAK0tluNwxdmFQQUIE6xgIPkW8gunlTkxj8gNVzNRvewRneweChhLCvY2w+iEfLk/NR8XM = X-Google-Smtp-Source: AGHT+IFxoc6HFn6luv2iHX8zLWzwT18J+k0g77VtFn8qc3IFZY3XysFk0lLGXQnCqYWxABYv2QG1Sg== X-Received: by 2002:a17:90a:c296:b0:2a0:39e8:91b5 with SMTP id f22-20020a17090ac29600b002a039e891b5mr365312pjt.33.1712170815897; Wed, 03 Apr 2024 12:00:15 -0700 (PDT) Received: from smtpclient.apple (mortgage.haas.berkeley.edu. [128.32.75.82]) by smtp.gmail.com with ESMTPSA id z2-20020a17090ab10200b0029c472ec962sm21844pjq.47.2024.04.03.12.00.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2024 12:00:14 -0700 (PDT) From: "Richard H. Stanton" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: How to export a single subtree but include document preamble? Message-Id: Date: Wed, 3 Apr 2024 12:00:04 -0700 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3774.500.171.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=rhstanton@berkeley.edu; helo=mail-pj1-x1031.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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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.47 X-Spam-Score: -7.47 X-Migadu-Queue-Id: 39EA44286D X-Migadu-Scanner: mx13.migadu.com X-TUID: WgNHwcj7Ucp2 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=E2=80=99t actually work! Is there a simple way to do this? Thanks.=