emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: #+ATTR_MY-ASCII: in derived backend?
Date: Sun, 22 Sep 2013 15:01:06 +0200	[thread overview]
Message-ID: <87vc1tau3x.fsf@gmail.com> (raw)
In-Reply-To: 87pps1119u.fsf@gmail.com

Nicolas Goaziou <n.goaziou@gmail.com> writes:

Hello,

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> do derived backends set their attributes always via the 
>>
>> ,--------------
>> | +ATTR_BACKEND:
>> `--------------
>>
>> construct of the parent backend and don't have their own 
>>
>> ,--------------
>> | +ATTR_MY-BACKEND:
>> `--------------
>>
>> construct?
>
> You can use any name you want for attributes
>
>   #+attr_my-special-name
>
> and then retrieve it with
>
>   (org-export-read-attribute :attr_my-special-name element)

I've seen this in ox backends, but since I sometimes simply use the
parse-tree as produced by `org-element-parse-buffer', I wonder why
something like 

,------------------------------------------------
| #+CAPTION: My minimal table
| #+ATTR_HTML: :border 2 :rules all :frame border
| | col1 | col2 |
| |------+------|
| | val1 | val2 |
`------------------------------------------------

actually is included in the tables property list

,--------------------------------------------------------------------------
| (table (begin 205... attr_html (":border 2 ... :frame border") ...) )
`--------------------------------------------------------------------------

although the exporter is never called - only org-element?


PS
I would like to have that too - how is that achieved?

-- 
cheers,
Thorsten

      reply	other threads:[~2013-09-22 13:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22  9:04 #+ATTR_MY-ASCII: in derived backend? Thorsten Jolitz
2013-09-22 12:36 ` Nicolas Goaziou
2013-09-22 13:01   ` Thorsten Jolitz [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=87vc1tau3x.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).