From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ALVmJbtI5GAcSAEAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 14:12:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WOcSIbtI5GC2cQAAbx9fmQ (envelope-from ) for ; Tue, 06 Jul 2021 12:12:43 +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 5CEE029BF9 for ; Tue, 6 Jul 2021 14:12:42 +0200 (CEST) Received: from localhost ([::1]:48866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0jwO-0005WX-UQ for larch@yhetil.org; Tue, 06 Jul 2021 08:12:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0jvW-0005Us-Nu for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 08:11:47 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:52029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0jvU-00050v-4U for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 08:11:46 -0400 Received: by mail-wm1-x32b.google.com with SMTP id n33so5921589wms.1 for ; Tue, 06 Jul 2021 05:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eLvVqdjr6uYHXCW//fIZqMCOTvrOKTm1kgC6O/hku3Y=; b=eTz7IThtMHJU8yVLVzHz5cD08kGEyzzLBU2HWMKg392Fh0UnmDEya0IhylbaVFjwVC 6tUuSb4XaWQDU0Xnoi4uotX6cJkPoxdZAFW5QyXpHYvWwWDyC/P3/kKYqpsA7tqhAQez 1i1ssI3ot04a1eZTEE789wCZU41mrbGIYj1PTPcgiQpgd/jUj3kUR7d74fSRa+BYbKWb DpfnK9mWiCs9LcOO45whVHs0Q0/7vL7OOIKvk7QLU5nlOCBlP89lxm6ohDNP5Meqjyj1 bLx46xpzw7URYCQ8Mu3kNfEHDHq7GpXtok2FnOQFkkFATkm+TgwGx6tUOZHw6BrBuwJj uY5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eLvVqdjr6uYHXCW//fIZqMCOTvrOKTm1kgC6O/hku3Y=; b=lqtCW+HebnkxyHSEFmDXWgwvcCxRmlfRn4/1WTXnMsrg+0O+ExK5IsmixUDkf4WRaw 6DgI9DFEY8IUGgr0R5735UhHXMxTTjWRZPM1qw7Qyuds7G81c7xxnPen485Y7+8nU2CS dPvw/ZgVtdi8W6yZRNXUnEq0gfEiWsxMV49xst/69521yB1D+dK2/Qeno4XWeyt27Q1e N1HMLE+v6B19T+hBt8R3OEQt81APlRhfecw+tDa/AIbpk9CqvC5k4Pvz2QCwfQW1JU+1 KAYUyjPDuQDhdHCQ+jsdzVFlcS2j4e+vWRBOkTgHQCGLC91Mb6N/FPCfjdskntzG+NAx 6Tlw== X-Gm-Message-State: AOAM530dGjTs4CYHiD25AgIBq6HUHfaNRLZlATSBKh3vHnISj1Q8AgSi pBoNuuZojo9jXTgq6ooN/4LEqAM4A3X8Nh5CArg= X-Google-Smtp-Source: ABdhPJyiYTnQ3UL7oS0FS4aSlD463y4CoLHeFCmQwML5hHYyw0Vpt+NyQwZjSN239D9XsimXn/TneV9Sj5MdoKKx2sk= X-Received: by 2002:a1c:8097:: with SMTP id b145mr344588wmd.54.1625573500836; Tue, 06 Jul 2021 05:11:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Tue, 6 Jul 2021 08:11:30 -0400 Message-ID: Subject: Re: add #+ATTR_SOMETHING to headline? To: Matt Price Content-Type: multipart/alternative; boundary="00000000000012dcf605c6735398" Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Org Mode 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=1625573562; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eLvVqdjr6uYHXCW//fIZqMCOTvrOKTm1kgC6O/hku3Y=; b=bsVNiflWWwKbsry9ouzgPAAZ3uF5MZDtxKIvwTS+WWVMH0Nv9IgVRja6aisk3cKKUolheA /jfG9Yx7FCQ56bgRO+Da5oBv91HSFANkFd0dNUVkrUWizN4WXDzLYkGfuYOZ5N56Cv80pF UVb0XUkDBWiQ/b3gZAQMo5MI5/bQMiWLfCLxlJxEbPw1n0HnafUM7yhrrF+f8rk4IOjHGI mTurVi82TiDJayDcx64hqOByfk6AfNapAXq1JZaw09ktprFy15EYeEjqxzAtobKZFr3Jvo Hlfr03TrADjf5F9RQfwcCHXYdOnd99PLhhfSd2+mySrZGFIPsHayXfmrPqwftA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625573562; a=rsa-sha256; cv=none; b=NulRVkCShVs/pAmVTn/oEvRhgWXaz/+ddqlIIQ/h+zr86gzZ52JkpYfrrxkr6V9lyqr2xz I7vtwe29vh90HrsnU6s7mEZ9CZ2QmX4tM4cyfyg9PzscJmVyxpNPDtw9WG0r3gNuhK0i+9 hfpz3ejKUJoics3fU30V0ilOqzq9MsLvD4/CHlesWhcmKyl0wVkF/D7JVE8j6omFLd42Nt j7y5nUPFTEbqJQj+O869odGFCPI3HKpmsFCGiG2Ob9WdDW3daRYgkL+70YU0GysqAm+1DH m9y1ZYzPA8UjulrlzkclhTNOpT/Xl/1uWLFEhJOH1vukNe0gzGatwXUnJm8BiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=eTz7ITht; 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.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=eTz7ITht; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=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: 5CEE029BF9 X-Spam-Score: -1.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rc/n22aB7tzy --00000000000012dcf605c6735398 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Why don=E2=80=99t you just use a property for this? On Mon, Jul 5, 2021 at 11:12 PM Matt Price wrote: > Does anyone know if attributes get attached to headline elements during > the export process? I am writing a derived backend in which I would like = to > have a line like > > (let (add-toggle (org-export-read-attribute :attr_canvas_html headline > :toggle)) > ....) > > But as var as i can tell, the call to org-rexport-read-attribute always > evaluates to nil in a file like this: > > #+ATTR_CANVAS_HTML: :toggle t > * My TOggle Headline > > Am I missing something obvious, or is htis not possible? I notice that > none of the org-xxx-headline functions in ox-xxx.el seem to check for > attributes, so maybe this is by design? > > THanks, > > Matt > --=20 John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --00000000000012dcf605c6735398 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Why don=E2=80=99t you just use a property for this?
=

O= n Mon, Jul 5, 2021 at 11:12 PM Matt Price <moptop99@gmail.com> wrote:
Does anyone know if attributes get attached to headline ele= ments during the export process? I am writing a derived backend in which I = would like to have a line like

(let (add-toggle (o= rg-export-read-attribute :attr_canvas_html headline :toggle))
...= .)

But as var as i can tell, the call to org-rexpo= rt-read-attribute always evaluates to nil in a file like this:
#+ATTR_CANVAS_HTML: :toggle t
* My TOggle Headline

Am I missing something obvious, or is htis not poss= ible? I notice that none of the org-xxx-headline functions in ox-xxx.el see= m to check for attributes, so maybe this is by design?

=
THanks,

Matt
--
J= ohn

-----------------------------------
Professor John Kitchin (h= e/him/his)
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=
--00000000000012dcf605c6735398--