[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build a menu for an HTML publish
From: |
Bruno Barbier |
Subject: |
Re: Build a menu for an HTML publish |
Date: |
Tue, 13 Aug 2024 10:50:27 +0200 |
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