From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ADzKMEZftF7wSAAA0tVLHw (envelope-from ) for ; Thu, 07 May 2020 19:19:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wGCRB1NftF6GVgAAB5/wlQ (envelope-from ) for ; Thu, 07 May 2020 19:19:47 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 2BBC59402A0 for ; Thu, 7 May 2020 19:19:43 +0000 (UTC) Received: from localhost ([::1]:35606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWm3a-0004yK-PN for larch@yhetil.org; Thu, 07 May 2020 15:19:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWm3B-0004yA-FF for emacs-orgmode@gnu.org; Thu, 07 May 2020 15:19:17 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:52506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWm38-0007CE-UR for emacs-orgmode@gnu.org; Thu, 07 May 2020 15:19:16 -0400 Received: by mail-pj1-x1035.google.com with SMTP id a5so3076443pjh.2 for ; Thu, 07 May 2020 12:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=+Dt+VpjeRiTTOm/uEY71EINngh+TJAOET6zzqpO/lm4=; b=hkmt8qA+ht2rQzwUE9DGGiSAwkUEGIEMQ7GKbwJyD8QZxpoyz8NSD11yoMRstidW2Y OLLyBdwu8KnUmHmy2RAfoLBqfBpnLe4tPVMM2RW9XwERsGOInqzyo+DtQup9vHyz1N1r wovep9iZOr9oNbTcBIUtWIY7otqtIQJN8sN1HBfcw6xB9u6ljsUg9wmwU4JM7FioXM/n DhX2NqX47KvRlQVcimjxzrS071uD2CtXlzPVtcLv2NBYAWP9WgvENYLYJrH/06UUrN/6 e23GLFrDo4QwcvBXnvZxdk4r/LkkTi12an+IAvagHylIyoELViGOF/F+w1UzfuiXePKk niGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=+Dt+VpjeRiTTOm/uEY71EINngh+TJAOET6zzqpO/lm4=; b=DFf7U51DBO5ZFBOOMkWN3uor2v51jZVxOCei3VzBLXk0q+bsBJhLzIPrOtZptRaYEa vzXAp6d7L5qjxbxF8WdV3lFJrKVUum2bCRL5AdlkxNNBBVBLmZ+t60mpJ24ld3KB8dxS kPAKUL3/Nuavp+4R6QL9M0g80SFmSsOfZrPVM+OjMskvhR6L/dFg/w6faxe7qQ1Au08r OATbJHP28MN7IzPlcyZB1FQHt5gW8yuyhdqTN/0O+xcJNk88nI8AR/9exlbOPfiZkerQ QTFkwhiuZF4oC24E0m5YH5dIbnp1uvsIzke/zSxAlN1n6HOzWJiYFfxUGATgonMPG60/ +RqA== X-Gm-Message-State: AGi0PuYPd9qrKh7N1U0k/BmIy4kvseAFdlM7SsY0wbGI8fbK0YmNmuig 2wwLYQ2jKhXMqQGHouhVBbniAamM X-Google-Smtp-Source: APiQypKWQBIrqpCyoQBrjDX6bG/jqky24oEI4+PEuc95Zr9Nql8A/lAZkI/GwwtmxO/84acU9svrLQ== X-Received: by 2002:a17:90a:8b82:: with SMTP id z2mr1771025pjn.124.1588879152801; Thu, 07 May 2020 12:19:12 -0700 (PDT) Received: from geus3064linuxwsm (97-113-32-130.tukw.qwest.net. [97.113.32.130]) by smtp.gmail.com with ESMTPSA id z25sm5539385pfa.213.2020.05.07.12.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 12:19:12 -0700 (PDT) User-agent: mu4e 1.4.3; emacs 26.3 From: Ken Mankoff To: Org-mode Subject: [O] (no)export of special blocks Date: Thu, 07 May 2020 12:19:11 -0700 Message-ID: <877dxnlfio.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=mankoff@gmail.com; helo=mail-pj1-x1035.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 X-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hkmt8qA+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49825938644182]; DWL_DNSWL_BLOCKED(0.00)[gmail.com:dkim,2001:470:142::17:from]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.10), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[mankoff@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RECEIVED_SPAMHAUS_PBL(0.00)[97.113.32.130:received]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 9hR/GBMGwSZu Hello, I'd like to be able to optionally export/not-export a specific paragraph within a section, based on a top-level property. Is this possible in Org? I know I can toggle export of code blocks, but what about text blocks? More specifically, I'm writing a journal article and I would like to have figures in the text where I think they should be: [[./fig/foo.png]] #+CAPTION: foo But the journal wants the figures at the end of the document. I'd like to replicate the "[[./fig/foo.png]]", once inline and once at the end. I'd then like to be able to wrap this in a #+BEGIN_SOMETHING and toggle that with a property to export or not. E.g: #+BEGIN_something :export (org-macro--get-property "results-y-or-n" "") [[./fig/foo.png]] #+CAPTION: foo #+END_something I recognize that if the figure is generated from a code block I can achieve my desired behavior. The code can have ":exports results" set to ":exports (org-macro--get-property "results-y-or-n" "")", and elsewhere :PROPERTIES: :results-y-or-n: nil :END: But there are a few problems with this: 1) org-macro--get-property works for header level properties in :PROPERTIES: drawers, but not top level #+PROPERTY: items. 2) Not all my figures are generated from code blocks Thanks, -k.