From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OLEOIRiWjGBJNQAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 01:43:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eObPHBiWjGDlNgAA1q6Kng (envelope-from ) for ; Fri, 30 Apr 2021 23:43:20 +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 8AD898A8A for ; Sat, 1 May 2021 01:43:19 +0200 (CEST) Received: from localhost ([::1]:46722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lccmz-0000Fy-6Y for larch@yhetil.org; Fri, 30 Apr 2021 19:43:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcckN-0000ES-9Y for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 19:40:35 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:36808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcckK-00007l-MO for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 19:40:34 -0400 Received: by mail-pf1-x433.google.com with SMTP id p4so201584pfo.3 for ; Fri, 30 Apr 2021 16:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+PMTqvOvJnozWAUxrXyJz/94wSTWw4zhj6qsLCxsixw=; b=mrYaitSI7OTAuq2XtM6UF3rXvl9zxsB0FbsFsMMJBEadEUNXkaQAk4LuFSpfz7by5Q Sb9ZLzwLV15gTd1Top3fLlS4aGnUCIycTwnEgxNGQtBZ670A7rOGIdv6PdWYxpgYnKX1 h5b4YqFbav1x8HNTBFRrQiTPbOYGsoQrqYw6r3sWD2ympwS9zbFZwDMZmiopAa79UDOb aP5rCW4VA5QiVHJpMcOmPN2rGZewVPPPEm/1vEJxkvUu0S0fiCQuhWgupcrZcPWah6uo QXmTn795t1aGliEJXrhylWw3RpUhDUr0Dp85LLRY33wpJ2UednsxdWZ9ttE/zkD2t8mZ FOEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+PMTqvOvJnozWAUxrXyJz/94wSTWw4zhj6qsLCxsixw=; b=sdb682zoYH8rOIijMA+uXnu2eNwZCe3jDF4Nz2fo7b6QddmXLj0snufK6LU6IP70JX I8EApE8e3kvE53eUfX6NqxHTr6QJFVIoA1kU4Z0iCb+G2PkZnYr0rD7LTjJmEmeoWupT RU+jq2oFdj2ZUx7PuQbVxslyjECWeNMUuQqXwED/IAt4sbtmOoxFzVrVHHzZ2FQD6VAd 4qcIeCYpjPK2Rt5Q+Y7wmnNelG248quWVKdMl03SPBw8u3NfsYd9uW9ym5yn/Fk34YG1 dGoL69942AxQaUP1IoT0et42EdeQtV3YB9KYiH3bPcL8JXFWVyRIh1dZ5X/BEWuKTPYr BBVQ== X-Gm-Message-State: AOAM530yBV/cw6L+3RPG9g45ykCKFR4OYU+nxu4MwrdDzKJXDC2JoKjQ Ieghc+bFmhyspUrZCbDSM0rxXQ== X-Google-Smtp-Source: ABdhPJz0KV56okIunaFugMyVLhqGcKEMRS5NSS5G936TlhyHh/gJ0TSyJUiz6gDEhKB5rMTrhX3MiQ== X-Received: by 2002:aa7:82ce:0:b029:242:deb4:9442 with SMTP id f14-20020aa782ce0000b0290242deb49442mr7210182pfn.73.1619826030341; Fri, 30 Apr 2021 16:40:30 -0700 (PDT) Received: from smtpclient.apple (157-131-168-126.fiber.dynamic.sonic.net. [157.131.168.126]) by smtp.gmail.com with ESMTPSA id u13sm4009906pgm.41.2021.04.30.16.40.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Apr 2021 16:40:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: How to create a macro that inserts multiline text with :B_ignoreheading: tag? From: Richard Stanton In-Reply-To: <87o8dvpktz.fsf@posteo.net> Date: Fri, 30 Apr 2021 16:40:28 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5653BC7E-CC4C-45F0-94BF-7BEE958FAA9A@berkeley.edu> <87o8dvpktz.fsf@posteo.net> To: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= X-Mailer: Apple Mail (2.3654.80.0.2.43) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=rhstanton@berkeley.edu; helo=mail-pf1-x433.google.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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619826199; 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=+PMTqvOvJnozWAUxrXyJz/94wSTWw4zhj6qsLCxsixw=; b=DK8OOqgXStHNW55NuarnrGATIqpm/vI3XlZ5EEDn9mlqOVT8kIXzdq5/fr+M55v1JR/j3f Hyu3MAd3najaAY8KXn5NBI/1LyftJj8LXvm0BuKCxrXCipEE9DxwePpub0V/aFHmHwskZh itS9Dkg60SZKXBIi0taZs0JmFRacheNeUoq5vVN+iV61LvSXdyijnVFPvOcEKzri5r61Fq /ltf99y0spJK5pCAfzmyaveibd+7DrHeiU6aCn5HKeosKxvbS0dfbrCj/etYYdvla+czjq AZfTKlBVrxMeAaHl2A/xk6IOgKz1HXgFTgad0JcO3lU3kXPRwpmhGChI1gT29A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619826199; a=rsa-sha256; cv=none; b=NCKqOXcPmp9PLxTxnFniqEdym3N3Ar9INNKZVtUekb05xlZs1f7AcnqglS2Pim9aFI8Ddw CBRGIkh6sDfqjZBXAEjpLhotoDjUUoe6OW0dIK6kMVJN1bBnY5bBSjVlVJ9Mse8OvskzYC CUMVyTy0uMFB70cEAREDtrYluJFs+oaB2/1H6Ry+F9Dhua3dnyyjd9/maa5npxteGfa40j ONYvRllNSBhQ5FgkSvkthHT4n+3qhfbTJTSgmUjGO1HlCgWWVSiR3NKQCxKsxIAxVS1eC6 qAmP6sSHFiQfwNWAHYhAsloVqBf+0swLqzG37/rn0d1F9fq7GmKB3DrMPwXXjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=mrYaitSI; 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: -1.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=mrYaitSI; dmarc=none; 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: 8AD898A8A X-Spam-Score: -1.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0XaaLcn24Zb5 That works. Thanks Juan Manuel! > On Apr 30, 2021, at 1:40 PM, Juan Manuel Mac=C3=ADas = wrote: >=20 > Hi Richard, >=20 > Richard Stanton writes: >=20 >> I=E2=80=99d like to define a macro called, say, articletext, to = insert this >> header into my document before exporting to LaTeX, so the org file >> would look something like this: >>=20 >> {{{article text}}} >> This text appears only in the article version. >=20 > Macro definitions do not allow spaces. >=20 > You can try something like: >=20 > #+MACRO: article_text (eval (concat "*** More explanation coming" "\s" = ":B_ignoreheading:\n:PROPERTIES:\n:BEAMER_env: ignoreheading\n:END:")) >=20 > {{{article_text}}} >=20 > Best regards, >=20 > Juan Manuel=20