Thank you very much for your reply.

I didn't know the bind part. I will take a look at it.




Bruno Barbier <brubar...@gmail.com> writes:

> Hi Sébastien,
>
> Sébastien Gendre <s...@k-7.ch> writes:
>
> [...]
>> I cannot found a way to define "very-strawbery" value in an Org-mode
>> buffer and having it used while I manually export the Org-mode buffer.
>>
>> I tried with "#+very-strawbery: test123" and "#+OPTIONS: very-strawbery:
>> test123", without success.
>>
>> Someone have an idea ?
>
> IIUC, "BIND" should work.
>
> You put this in the exported file:
>
> #+BIND: a-string "3"
> #+BIND: a-number 3
>
> And you can then use these variables directly:
>
> (defun my/preamble-test (info)
>    (message "My string: %S" a-string)
>    (message "My number: %S" a-number))
>
> This works only if 'org-export-allow-bind-keywords' is t; else Org
> ignores the "#+BIND" instructions.
>
> HTH,
>
> Bruno

Attachment: signature.asc
Description: PGP signature

Reply via email to