From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: add #+ATTR_SOMETHING to headline?
Date: Tue, 6 Jul 2021 08:11:30 -0400 [thread overview]
Message-ID: <CAJ51ETo_gqyO6RdHUBiuxahr3enVcmjMGc8vS+uYiuS_WDbugg@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec_t3C+3wutz6oJpeEKW-bo5CZS4+igvmXO9vJYwEftH-w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
Why don’t you just use a property for this?
On Mon, Jul 5, 2021 at 11:12 PM Matt Price <moptop99@gmail.com> 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
>
--
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
[-- Attachment #2: Type: text/html, Size: 1761 bytes --]
prev parent reply other threads:[~2021-07-06 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 3:11 add #+ATTR_SOMETHING to headline? Matt Price
2021-07-06 12:11 ` John Kitchin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETo_gqyO6RdHUBiuxahr3enVcmjMGc8vS+uYiuS_WDbugg@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).