From: Bruno Barbier <brubar.cs@gmail.com>
To: "Sébastien Gendre" <seb@k-7.ch>,
"Org mailing list" <emacs-orgmode@gnu.org>
Subject: Re: Build a menu for an HTML publish
Date: Tue, 13 Aug 2024 10:50:27 +0200 [thread overview]
Message-ID: <66bb1e56.050a0220.1b102c.3ec2@mx.google.com> (raw)
In-Reply-To: <877ccl3ck0.fsf@k-7.ch>
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
next prev parent reply other threads:[~2024-08-13 8:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 0:45 Build a menu for an HTML publish Sébastien Gendre
2024-08-12 16:56 ` Sébastien Gendre
2024-08-13 8:50 ` Bruno Barbier [this message]
2024-08-13 10:58 ` Sébastien Gendre
2024-08-13 9:56 ` Sébastien Gendre
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=66bb1e56.050a0220.1b102c.3ec2@mx.google.com \
--to=brubar.cs@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=seb@k-7.ch \
/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).