From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EC/ZKARTZGBu3QAAgWs5BA (envelope-from ) for ; Wed, 31 Mar 2021 12:46:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IFHpIgRTZGDiNQAAB5/wlQ (envelope-from ) for ; Wed, 31 Mar 2021 10:46:28 +0000 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 8C5E81C992 for ; Wed, 31 Mar 2021 12:46:27 +0200 (CEST) Received: from localhost ([::1]:50442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRYMi-0002tl-Rd for larch@yhetil.org; Wed, 31 Mar 2021 06:46:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRYM5-0002tD-Cm for emacs-orgmode@gnu.org; Wed, 31 Mar 2021 06:45:45 -0400 Received: from mail-eopbgr60115.outbound.protection.outlook.com ([40.107.6.115]:63279 helo=EUR04-DB3-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 1lRYM2-0007Cp-8L for emacs-orgmode@gnu.org; Wed, 31 Mar 2021 06:45:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VNp91L6hXTVZb4yj6ZAXiWypvmAz+oHspTNE7RQFwYPnwOW0OmthLiIQIWw82GwU1n8+/GKWJYazHu9C7fQWLKz9OHPv0U83nc1SPTBrylmuykEBPeDknI+E2uEppPpldPE+E022KLMXDUbVdioiNlbeEtUVNDDAPXoMM17qw9Zi/0aWxNlqb/jk8hA976ABllUe7jgmkJp+/WuyD/tlsb2Z002CBs6I6uQrZVavw4auvr17VhWY3VLkkoxVspn2wTnaF/n8au5/hzuPMeTRoFdx4tXEjtkKYFTUcgqUNS6jm0asFf1c+yokFHEvo273JcxTMVEs5qYkEWnFet3bww== 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-SenderADCheck; bh=KPXPYxyejvE6D+/HNt9q/GQQuu4bFGdV0BW0LXMYHuM=; b=Ttzr1naiRGedGVoIg2cqSLfa8yqCqor3vZSj9nRv13qDnxi2qpNSB2dPBhm+ZYkv32abTkMRUW1MI1BOPsX2DXCgYshVMUtKoSx0FIgH9DcPtu3FfTSxCRbtnnwUv9ZiY77OR99vtTxVULD6xQhxJWijnaX1d5EVMQUv4HPj/o9GU4Ug3/05a0WfFRUJA7RXKchIrndRpX+M6UeTKM+N8/TfLKVqHrp+/iIPPuTZOmoJ8uPZnUdLYkutS0VA6YR39SepMyxMXBRBavkPh/FCcn8pp5wPYbwqEAL5iWkXV7frZG5ojmXs6cBMQCZEv+rg5bA/QbCpbnwo69IGZXfO7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KPXPYxyejvE6D+/HNt9q/GQQuu4bFGdV0BW0LXMYHuM=; b=htwnuCDM4WUUI2CHkKQ4W9oBswMTXSz/FrWynyDgUphkf+J1lWUVb4mAMN7PjUsblQniNBbmCaaDcGf0QjcSp6ED2R+kw0LsNBRtXHoRW5V0QFF9IWa/wmjC3D1d+1z6KjJ7UuUsBIy/zqJT/Ik2I/z328UB3qYxV81tbSSDg9c= Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) by VI1PR0102MB3454.eurprd01.prod.exchangelabs.com (2603:10a6:803:16::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Wed, 31 Mar 2021 10:45:38 +0000 Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::11d6:7bc5:2efa:f5b7]) by VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::11d6:7bc5:2efa:f5b7%6]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 10:45:38 +0000 From: Eric S Fraga To: Org mailing list Subject: Re: How to expand macro in LaTeX export? How to use different options per export type? Organization: On the Interweb somewhere References: <87lfa3hc7h.fsf@ucl.ac.uk> X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: Org mailing list Date: Wed, 31 Mar 2021 11:45:36 +0100 In-Reply-To: (Jean Louis's message of "Wed, 31 Mar 2021 13:29:11 +0300") Message-ID: <87zgyjfvov.fsf@ucl.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-Originating-IP: [109.181.218.131] X-ClientProxiedBy: LO2P265CA0201.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::21) To VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from t3610 (109.181.218.131) by LO2P265CA0201.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30 via Frontend Transport; Wed, 31 Mar 2021 10:45:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a1d2b33-fb0b-4c72-9b08-08d8f4321ed5 X-MS-TrafficTypeDiagnostic: VI1PR0102MB3454: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8G6AwWxck6RVX89N0NlPB2LxyplhKwBr8HoeXRbL/MuYiC9wiLY5b4bzdHeqIgBxwpEv0MHyKl6QndJDQB7m7K0rxEvE/let3JRPpZJ3HgAZLjwv/K2NdfMyjBjMIh3FZgQsDjfl6Svn7pFGks4ErQNZu2Vx5C9qe0o53GW/7wJ+JldzZBBzrym93hh98HhDIZwwfoncqWRKzdsXpS9rn9VLPEWnqIN6h1sdxCP4M9zDoUVu0pC9rAzbGFNppiA2oJnHj9ctVzcCFvJx8fsQOqL3D2ICxZgtmFmexPffLokhQJ2K8kibsSZHgYrptXke/5r+qoc/u3xojFBXcTdKQq66938384yoB6NkDlKJEKgl9Aq9rdGAteWHzBHXkXERBCz9DOkGsZ5K2gCmleS/kDKSValPyBCI3uo5+B6Uofpup2uVsnH923sOOhsrKkp5l/MUDvXKuTPGd2ISwSTWKlzUns8rgkNaXoFjDPkFPYR4JHINMBeRUzRPmRfXM1HGTmXr+mr3xqrHcDTJAvADqCgsM15jpkDWydQT0rCeX8cgGvjcSFVDNsIVqAFKIszLGUVGkvMphL8jhiDtKi7i5aHlIM8kUZeYpigfAENnefIIyoBjypiEn/N+4TBKU3i5AXHYe/VK4lFH/bDK/rG4+c+ApY7qpUQVCZjuY3d45Wk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3327.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(6029001)(4636009)(366004)(36916002)(8936002)(52116002)(26005)(4744005)(6916009)(5660300002)(36756003)(6486002)(38100700001)(66476007)(66946007)(8676002)(66556008)(2906002)(186003)(16526019)(6496006)(86362001)(2616005)(956004)(498600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?WKCgyyNKikqd5wmgray+9Fpyo4XXOcUNWKcMOrKu8r6jJvOiYYGRduBRQuNP?= =?us-ascii?Q?ggKi1CRWM0q/F82TTPpw8xfLfzI+6DRUFIpttt/QoEozMQaD7/Oh89tJHTRe?= =?us-ascii?Q?nzIgGszCMGaP0bt7k7k3TSO2+I5yul/ApttGEv0nt8BEQwZ21eu/3tuugc3f?= =?us-ascii?Q?cLMXLjwVqbssVsaeqiDphqOgnsIxLtl1Ev7P6UWNlBQSrJoyv/P0TsJeKctD?= =?us-ascii?Q?ahdYVhhAqIte48qLGwWHrsNwDSHFTocZtWPsJEccd6fGKJMQFS/8Ymgn/Nby?= =?us-ascii?Q?YtRY7fELn+oN4qr3XyR7UnHnoLOSIbeAMiIfdAzE6WKaz59yz6P1W7c45i69?= =?us-ascii?Q?KSpf3gN3TJBuDZT5GSGDPDFhjDeL5khrLgZdjqRLClOIrAw0KEtwReh/Njql?= =?us-ascii?Q?Tt8OThVFTboE5bDayA3I7HCcwmb0CkuAqAC8sGO25gRdCCZ5KPRXFufsweCd?= =?us-ascii?Q?76Df/L2trF2e1RBKpeCxAPqXqYii+DWYlAG2yRJRlh1Dz9xKo9DJ0iMVkrG2?= =?us-ascii?Q?ll0/SrOoIIl86opRGFSOxbHv3XJL3bpYR3WlIYUPpSriVX5sSqLYTTQiHt2z?= =?us-ascii?Q?Dc4NsCZ3bVCnLLJzIImmEkEdlq33uyJUrObIdxjLXcre1JRngf2H44dKHbTm?= =?us-ascii?Q?ndMbtl7EdrkjkNBHbPrfZNlYgwlB41MEvSVXXfTyJ7+TmvDU2y1s+FJulSNI?= =?us-ascii?Q?ww7LOTR9GqlKfq8OdHo/ARjyYWqyiEZ+PWdT9EbkYgHA8sBirUpwBpFU7jpD?= =?us-ascii?Q?8EJ3/iyK28EJHTPcy2zgrJMCvVUtC1lpjW8uWeO9WEgtCdY7c2xnVP8kNUzI?= =?us-ascii?Q?m7sEpPFj/sfc/7WbRC4OM5RlcH8FHDUzkcfaCcPvhJKIemltNU0JLtGWxonv?= =?us-ascii?Q?/MMaGQfHDVNYU48vy66apB3gtOCH1qoeQ14d/QWMBL8AXhG8Qyxt+ZQ9Fa6Y?= =?us-ascii?Q?hj5fb2I4Y3Ux5nlFv9j+AAmqYKI2SMRzUJinqy5gdJhYdOFyToWriQ+ArEPI?= =?us-ascii?Q?AKFtr6wBPiD211w4lPpfjJhzC050kE3P7uKdz4kAbaUyTW9Mw69mcMM/6nRb?= =?us-ascii?Q?B7MzalY3Ki4LNRBiJi9JoKANV/1T1TSH+hXE2zSED2oyAadKcozMVjuLtun1?= =?us-ascii?Q?v/SN3cSS0hPGqhVeZMVA/frT9GHHRcqOHZcp+av8/t+WkXuqc0IdTF3+Isrf?= =?us-ascii?Q?xjtxA0PMoK0yVJRdbxDsGLrn3cNaTKgv2trTthfDn5WXXf9nvj25Cr3W7kqd?= =?us-ascii?Q?IDcNXkAQwBx4SA4ZE4ZLq1oftuWyjfV9obp31dgKKzGD2QTU+AuurcKPtFsF?= =?us-ascii?Q?3FlM99DehW6UHql4a/h6IgiigxUsHFb/tOYgsSeaCLICpQ=3D=3D?= X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-Network-Message-Id: 0a1d2b33-fb0b-4c72-9b08-08d8f4321ed5 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3327.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 10:45:37.9520 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dH8uSEMZ46MxrJGdFKVP4HgtpCnEk7ARKCerZ5ONsp89ylbfr7OCxQznitSWSSP5mpVr0jAQhzVMaOBNs7pkRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0102MB3454 Received-SPF: pass client-ip=40.107.6.115; envelope-from=e.fraga@ucl.ac.uk; helo=EUR04-DB3-obe.outbound.protection.outlook.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, MSGID_FROM_MTA_HEADER=0.001, 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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617187587; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KPXPYxyejvE6D+/HNt9q/GQQuu4bFGdV0BW0LXMYHuM=; b=PEafYlKuJyuz77sb1WJ37fODnUsgBNBlZfgNsUQDbP/Y/3m7LTMb8WCFhMxyFQqM9Ha1l+ Ba3GhWcqot+7nXmohTa65ehA4rrJccXCyL08SSkkuOWw84+lVQpc/eyq/D9SflcmhJI+Be pe+aGoRgLBB6mBlmcKRKMpt6B+SnSZ1mHZf0A1/4XlxEN0a0yMFqDtIxSq0PzeTlQKIyqK fGzVTYLi9NWsnmZkEjNe2A2SilbHcbDPMZcNI7/BrTipZqbrQaKAAuzsm1DNnB0wELMFLL Z85wReN+CqeZK4sXPriSLODsJt/6DE7Kw9ihh5FYzaGNtWBKpMY4siP3Xm1g9g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1617187587; a=rsa-sha256; cv=pass; b=Y6a/XmGOph0fjoj85xvc7oXqg2eB2qsS2Cp2vyt5/5ccZQxOJBA1B04CJEOTvbfwoRJZpB Y+AM/HrPyqYFrl3eV0AuV41GJF5j8mIsW5yhAnliBQfqW7y6O8Ta0rspJHGVlla/P3eINP PtZ7VTdcTdcyIqW8yfqve11U5guxKEvL6GXtCfvt/28qZ6clUAANTPUgxLariU4qEhs/jI GBmjsjAttqriHYt+PujbHrlzXjXPsA/eJF+TI/dwU7yX3KTJ7flol7I8PTjy+bH3hrFLVg 12kdVub6UBYznaWV43cDFirqEeZ7hClURY8uXqA1+l2sYar5aSyn9R5MXkzgNA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=htwnuCDM; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=htwnuCDM; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8C5E81C992 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: IbeUxzo/6F9B On Wednesday, 31 Mar 2021 at 13:29, Jean Louis wrote: > By doing this: > > @@latex:\def\version{@@ {{{version}}} @@latex:}@@ > > Then {{{version}}} will get expanded in the document, right? As I have > hidden then only tags surrounding {{{version}}}. Yes. >> Also, a macro can itself use the @@ directive to provide alternate >> versions for LaTeX and HTML, as in >> >> #+macro: blah @@html:some HTML code@@@@latex: some LaTeX code@@ > > I have tried this: > > #+OPTIONS: @@html:title:t toc:t@@ @@latex:title:nil toc:nil@@ todo:nil > > But it is not working in options. It would be good if it works in OPTIONS. The reason it can work in the macro but not for options is that the macro is expanded into the text and then the text is processed as normal text so the @@ directives are processed. The options line does not go through the same processing. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-254-g37749c