From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id Uod4NHSmuGMmmgAAbAwnHQ (envelope-from ) for ; Fri, 06 Jan 2023 23:53:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OFGsM3SmuGOjhQEA9RJhRA (envelope-from ) for ; Fri, 06 Jan 2023 23:53:40 +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 7B4C228A6 for ; Fri, 6 Jan 2023 23:53:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDvZy-0000qZ-6i; Fri, 06 Jan 2023 17:52:50 -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 1pDvZw-0000oK-2Y for emacs-orgmode@gnu.org; Fri, 06 Jan 2023 17:52:48 -0500 Received: from mail-yt3can01on2103.outbound.protection.outlook.com ([40.107.115.103] helo=CAN01-YT3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDvZk-0007z7-8N for emacs-orgmode@gnu.org; Fri, 06 Jan 2023 17:52:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=niDO3lCKhG1kFEVtaRzc0QZ064VLB4pOXf3R6orjjGx6c0CP7Xc+ZMws/K6JXZFpp8G7RxETREw6dAahirHuxLan0A/lkN8AEOOfB1mycaR8R/SH7cfWDvvmw0VV2tEJezmRxm7UHTxcq9+3QbGjC8/MyfnxEFi3jgtbz5iK26MRP6ZqnxZSIky0bzFp3fvYTnenjylGsMcfrPsNQozi36MOYMq4xfuG8eIAfobJ5atU5BuXGWVI4rV7Sy2ys/sM5m84pPJ2AxFsvht+QBhF49pMRxt7ky4rhGU0zOaoruMTG+sOhfN0d/lqjIfFYEI37dBy+E0DYSW59MxIWq2EEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UA+b/r3ZogGQN8GRXzZ+GkOCQsz7z0hvP6vAzyFDrPs=; b=WZZZWA1NnmxDGpLnsBL9oIsXb8/e3wpcAJz5rajm3HCyUvgl5JbC5lgy/XnDaVIZV2GsTJ3RtcPdTNix0NnChBm1THzNL3eA5tCI79jqHjZekVO+lei98XY/Nz1IC7HBiNDM3HxVoCnzFo2YGjujSlkk+T/dXOnb2yNtFbGQNFnuMSBGblvzBdeueaE+zuqSy1v0vwQIYKQ+PrqhbB/11MG3eO2cgDzvcLASwxshIkvLe5F3gs/dzlq6BNw7UXmVUG/MmbuPI9LzPDZqDsAVFQtgh2n34yP5HZ1xsKkINlLv0MIJokL39rhMuU123rrzdBrAObFbY5EhELRl4ul+0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UA+b/r3ZogGQN8GRXzZ+GkOCQsz7z0hvP6vAzyFDrPs=; b=blQzJiCjQYXcY8Bz247m+xMYps/9KQOTDSBpXFWxvjEmJNQWz3MV5KYEPm7uBg3nC70wliZN99FuvWu8ALpQSVgB/LwP5Ao7yb96mIogdop+/C0bzRs4ERyyywoIOKfwb1KS017Ah+CwKkVCPXX2BqDCuU+5cCnCzV7/BeZvQHE= Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YQBPR0101MB6321.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:38::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 22:52:32 +0000 Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::ee0c:56b6:8f8b:2d1]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::ee0c:56b6:8f8b:2d1%9]) with mapi id 15.20.5944.019; Fri, 6 Jan 2023 22:52:32 +0000 From: Leo Butler To: "Alain.Cochard@unistra.fr" CC: Org Mode Mailing List Subject: Re: setting export_file_name during export Thread-Topic: setting export_file_name during export Thread-Index: AQHZIhdHYp366TsteUa1uSRGT+5fWA== Date: Fri, 6 Jan 2023 22:52:32 +0000 Message-ID: <87r0w7qnrk.fsf@t14.reltub.ca> References: <87bknbs5qn.fsf@t14.reltub.ca> <25528.40312.882538.752027@gargle.gargle.HOWL> In-Reply-To: <25528.40312.882538.752027@gargle.gargle.HOWL> (Alain Cochard's message of "Fri, 6 Jan 2023 23:15:20 +0100") Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT3PR01MB9964:EE_|YQBPR0101MB6321:EE_ x-ms-office365-filtering-correlation-id: b456485b-4fad-4120-370d-08daf038b254 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +RJyZ7C4B3a7MiE5GuqIl6J/YMSmT5QwSX6xYYuqYK2eyZafucP4Q56OMVy9jOQhmLwNL5lE2heuv6Ad3V978Twlac1oJsh4R3tr0+yJEe8cT1TJsVNw/jn7jTQSmlC2owWH8ZxfJyfkg/wij3UkjK7EoaoETJdUC/EBvfMXIQuYSC1/WrAR/k7+pCEzchzRpczf8u4XIB3xHSn1OJLQHxb8w/6hR+lojDNVKZzUEM2/+wxfSsKstXmYFTaslkBT6eo4hN1phZOskV/tnN4nF/AWCaerYVmA60azqmJ4QXD2nO7DghGqeV28ZDKHyvEWRIeajOPGbqSkHQE35AlZ+SrMU7WafF7YR/zIaWiF441FnUcUSWcdZqk+rJheXU4bqZRsA1lKi+alQsyDE/I4FMc8SLMIoKuVJ4lze9mNNxehojfdEfsahXMHFh4GaLdWpjwQ/C00P+AXXq1C0d1PZHzKKVZ0GoU1Aq5PuTttkeoXCjuVzwpv6TkgLcpZ9vYNsyVYaucl0htRMnL6VUhhY8oOQW4lRMtur8fTOzF3+Wan2o6GohHlTAfeRC79ATg/dSj+OhPKBRyIE/XKjJMQGpXubYbWhSAVKkDGkx1wAJXS2Oa22VfmmvhPBO+9QcuWsd0Pbof1/J50aVhYxZLhfkK2ATb7xvEj2wdm43FYevhJhKtjycj0HGakQlmxr3Na x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(366004)(396003)(376002)(136003)(39860400002)(346002)(451199015)(2906002)(5660300002)(8676002)(41300700001)(66899015)(4326008)(8936002)(6916009)(66476007)(64756008)(66946007)(786003)(91956017)(66446008)(71200400001)(66556008)(316002)(478600001)(6486002)(76116006)(83380400001)(26005)(186003)(6512007)(41320700001)(9686003)(6506007)(122000001)(38100700002)(38070700005)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?7uD7qEhA+uKtrWCChqwXSB/pY1u8pt8XsMUVNn5qBJ43pDvDchPuHTcReD?= =?iso-8859-1?Q?DlLOB+kUz8ZjS/S1Qt++EhINqoosVyvU2e5HTvIqvHxpzGKHcwYvxrbqsw?= =?iso-8859-1?Q?K35N5/glR03IHKudizyd4TelLKfGMZFcrfZmzuPg8rAAJRVAhb9fbhEBDM?= =?iso-8859-1?Q?sJIsiQdCWudb7zvWupp/+mp21g7UPEMoDRIsv+n+ZHFnwqQsUtcEh5OjJK?= =?iso-8859-1?Q?Sc2U/83pMKVio4sSQTddpBOAvZq3Fpe8kJMU3jSl9I/qXvWG4KDWstkkXT?= =?iso-8859-1?Q?MUsq2a9hNKGe9HUFuRonmjw+Qdg0Jmzazmjl5h6gM921bUrl9ae9FQvAxS?= =?iso-8859-1?Q?hxCe5hiIMqQ/v70pi+/wrVpGT0veQqI+MLWP+UBxRzInlZKCFIsbO+48yi?= =?iso-8859-1?Q?EdSNo4D3rmF6x9VMH9xel2LY7qVusVo9kl1wejSG3TcWJoYcVGsI7f57Mw?= =?iso-8859-1?Q?IHcPfFm9npZ9ngLnVkB15Y+L+JJE7e5pPsD4yaEuBhB0YV4ZhvSEMnDaim?= =?iso-8859-1?Q?cJhqGRTmlbg26SGSsKyII5MBFb669lZNpRe4DLWXqiMUefsN9KnrelxwxJ?= =?iso-8859-1?Q?om2cL867aizCg1YAzrjVWrK1WN7Dsp13sUQbiXtjVzgber0Zgw5d4pCqjX?= =?iso-8859-1?Q?VQWaGhm+7N21ZhtoEThVktdVdqJrwAVG6TRUZ87Np7nLLWqvjWvUw8CH9g?= =?iso-8859-1?Q?8mPB0n/4MmkzCIIS5aS8XrF/RdQddja94dZNC3WC6E/vPeJuWVSqshEFkE?= =?iso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ikFuZaiMnjJO2w?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: b456485b-4fad-4120-370d-08daf038b254 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2023 22:52:32.6420 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zznWkwRj9EbPptQ2io77SJ84cmRbGRCMmlya6SejhCLjQWhxpYNIFWfcp7Q5/vDdHTFwfbmyXgzt95FeISkubw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB6321 Received-SPF: pass client-ip=40.107.115.103; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-YT3-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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=2; s=key1; d=yhetil.org; t=1673045620; a=rsa-sha256; cv=pass; b=mbK6Y2FVocB6fHtH00Rq04WUxPJZVzeU3WMmBnAxIZt3ksDNUXmxX0muXkx3ySwDIKMmW9 8W0j9uMYsaNgzT+oMaAOYs5+QEGHcvEyTBDeVQ/sTFxTYTsjau8c06Ou9PyCEOA9BVoQZe fS15sRzt43Oody7lJCMGttncyXHUIpMbzknIDWAZvpX/bmBtFR3qg1JPXwjXKypq5ZJy3u QSPd+Wu9sTmDUGmCqwdbZB7J95FbVdLoslp167irHrms0pFsv+L39jKX07sF0xCXjgJa8m As94CuCNN2hert5fxusoDydcYJb3XB2XCCVxQuLUTOseSDDbX5bPPLCcNb7M0w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=umanitoba.onmicrosoft.com header.s=selector2-umanitoba-onmicrosoft-com header.b=blQzJiCj; 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=none; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673045620; 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: 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; bh=UA+b/r3ZogGQN8GRXzZ+GkOCQsz7z0hvP6vAzyFDrPs=; b=k1+A2x73O1LrVXoHxlQpp87fY/fKl5q9xVB474P5F/8nelrylCxAkhwaAnJYZvjyFXSXQq DO0p7slFl2W0c9boexmQZrLfBV1P9vLv4xqM19h7tdblk2Px4WGePVMKjXcMD/RGwwaGf8 c8uir4PPtg9n9Bmm2YTpD3tFY3VlKbIGtnEjXDrFnCej2U/uGMau7TkZUkOWOmOZKUqaM9 PnVmpbTgyeD1rtJMrdKQmBPOEFRvgDWFOZKBQVpCY9DpnJbxeeMiY7LH1j/jhvslxA0H/Z 6qiqCGUvjHF+0qtnUz/mTkEeieuDxIun4cFvchP1nA3y6XgJZ0f6Mfs8s3iC7w== X-Spam-Score: -9.05 X-Migadu-Queue-Id: 7B4C228A6 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umanitoba.onmicrosoft.com header.s=selector2-umanitoba-onmicrosoft-com header.b=blQzJiCj; 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=none; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -9.05 X-TUID: dT/zdahBL0r+ On Fri, Jan 06 2023, Alain.Cochard@unistra.fr wrote: > Leo Butler writes on Fri 6 Jan 2023 21:38: > > Hello, > >=20 > > I am trying something new this semester: all my lecture notes are > > organized into a single org file. A minor problem: I want to export ea= ch > > lecture (see below) as a separate pdf file. I would like to know if > > anyone has ``solved'' this problem or has a suggestion on how to do it= . > >=20 > > Ideally, I would like to have a single function that retains only the > > current subtree that contains point, sets EXPORT_FILE_NAME based on th= e > > top heading, and exports it as a complete beamer pdf. > > Hi. Sorry if you already know this and want something more automated > it is not too clear to me. (What is not clear either is why you have > '* Lecture 1' _and_ '** Lecture 1', etc., i.e., why not just > '* Lecture 1'.) For my setup, each heading is a separate lecture, each subheading is a separate beamer slide, etc. > > So: if you insert=20 > > :PROPERTIES: > :EXPORT_FILE_NAME: lecture-1.pdf > :END: > Aha! Thank you very much. I had forgotten about using property drawers. It would be a simple matter to create a filter to insert that property drawer under the heading that contains point. > right after '** Lecture 1' and, with the point inside that subtree, > do: > > C-c C-e C-s l O > > it seems to me it does the job. Yes, it does! Thanks again. Leo > > > #+AUTHOR: Leo Butler > > #+TITLE: Lectures in Math > > #+OPTIONS: H:2 toc:t num:t > > #+LATEX_CLASS: beamer > > #+LATEX_CLASS_OPTIONS: [presentation] > > #+STARTUP: beamer > > #+EXPORT_FILE_NAME: lectures > >=20 > > * Lecture 1 > > ** Lecture 1 > > In the beginning...This subtree should be exported to =3Dlecture-1.pdf= =3D. > > * Lecture 2 > > ** Lecture 2 > > Next...This subtree should be exported to =3Dlecture-2.pdf=3D. *and* that I needed to =