emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Build a menu for an HTML publish


From: Sébastien Gendre
Subject: Re: Build a menu for an HTML publish
Date: Tue, 13 Aug 2024 12:58:46 +0200
User-agent: mu4e 1.12.1; emacs 29.4

Thank you very much for your reply.

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




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

> Hi Sébastien,
>
> Sébastien Gendre <seb@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

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