Same in HTML export as Guillaume reports for ODT: A {{{title}}} macro in DESCRIPTION and KEYWORDS keywords is unexpanded in the exported meta tags.
However, macros in the text that reference those keywords, in turn, *do* expand to the contents of those keywords *with* the title macro expanded. I attach an example below. So it it seems that the macros get parsed correctly at some point, but the unparsed macro gets inserted. Yours, Christian ---- BEGIN EXAMPLE -------------- #+TITLE: Test macros in keywords #+DESCRIPTION: {{{title}}}: Do they expand? #+KEYWORDS: {{{title}}}, Org-mode In HTML export results, the macros in the DESCRIPTION and KEYWORDS keywords are not expanded: #+begin_src html <meta name="description" content="{{{title}}}: Do they expand?" /> <meta name="keywords" content="{{{title}}}, Org-mode" /> #+end_src But referencing those keywords from macros in the text gives the expanded results. - Description: {{{keyword(description)}}} - Keywords: {{{keyword(keywords)}}} Exported HTML: #+begin_src html <li>Description: Test macros in keywords: Do they expand?</li> <li>Keywords: Test macros in keywords, Org-mode</li> #+end_src ---- END EXAMPLE -------------- Guillaume MULLER <guillaume.mul...@emse.fr> writes: > Hello, > > Often when I write ORG files, I use the exact same content for TITLE > and DESCRIPTION, and almost the same thing for KEYWORDS: > #+TITLE: My Great Title > #+DESCRIPTION: My Great Title > #+KEYWORDS: My, Great, Title > > I discovered recently that I could use pre-defined macro to fill the 2 > extra fields automatically, like this (not exactly what I want for KW, > but it's OK for the moment) [see attached MWE]: > #+TITLE: My Great Title > #+DESCRIPTION: {{{TITLE}}} > #+KEYWORDS: {{{TITLE}}} > > When I export to PDF using LaTeX exporter, the "Properties" of the file get > set correctly. See 2nd attached image. > > However, when I export with ODT, the "SUBJECT" and "KEYWORDS" elements > receive the raw string "{{{TITLE}}}" instead of the evaluation of the > macro. > > I think this is a small bug in the ODT export... > > Thanks > > Guillaume > > [2. text/org; test.org]... > > [3. image/png; screenshot_2025-04-16-10.34.png]... > > [4. image/png; screenshot_2025-04-17-20.07.png]... > > [5. OpenPGP public key --- application/pgp-keys; > OpenPGP_0xF3BCAD9F46F5FADC.asc]...