emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] #+ATTR_MY-ASCII: in derived backend?


From: Thorsten Jolitz
Subject: Re: [O] #+ATTR_MY-ASCII: in derived backend?
Date: Sun, 22 Sep 2013 15:01:06 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

Hello,

> Thorsten Jolitz <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]