[bug] Macro in citation not expanded

2022-10-16 Thread M . ‘quintus’ Gülker
Dear list, it turns out that macros in citation commands are not expanded. Minimal working example: /tmp/mwe.org: #+TITLE: Test #+LANGUAGE: de #+bibliography: /tmp/mwe.bib #+cite_export: csl /tmp/juristische-schulung.csl #+MACRO: name @@latex:\textsc{$1}@@ Dies {{{na

Re: [bug] Macro in citation not expanded

2022-10-16 Thread Ihor Radchenko
M. ‘quintus’ Gülker writes: > it turns out that macros in citation commands are not expanded. Confirmed. They are not. Only bold, code, entity, italic, latex-fragment, strike-through, subscript, superscript, underline, and verbatim objects are allowed inside citations. This is hard-coded inside

Re: [bug] Macro in citation not expanded

2022-10-17 Thread M . ‘quintus’ Gülker
Am Sonntag, dem 16. Oktober 2022 schrieb Ihor Radchenko: > Only bold, code, entity, italic, latex-fragment, strike-through, > subscript, superscript, underline, and verbatim objects are allowed > inside citations. > This is hard-coded inside `org-element-object-restrictions'. This is a bit unfortu

[RFC PATCH] Re: [bug] Macro in citation not expanded

2022-10-17 Thread Ihor Radchenko
M. ‘quintus’ Gülker writes: >> It sounds reasonable to allow macros inside citation references. >> Maybe we also want to allow other things. Maybe simply allow all objects >> but other citations, line-breaks, and table-cells? > > I have no strong opinion on this. I certainly do not need tables in

Re: [RFC PATCH] Re: [bug] Macro in citation not expanded

2022-11-11 Thread M . ‘quintus’ Gülker
Dear Ihor, thank for the WIP patch. I have applied it to current main (f83e45526b5ec4627d601673be3680e2dece1b33), but when I now export the document described in the OP to LaTeX, the macro is erased entirely. I receive: 1 Doe, Nothing important, 2. Aufl. (2022), 55, zum vorgenannten Argument

Re: [RFC PATCH] Re: [bug] Macro in citation not expanded

2022-11-12 Thread Ihor Radchenko
M. ‘quintus’ Gülker writes: > thank for the WIP patch. I have applied it to current main > (f83e45526b5ec4627d601673be3680e2dece1b33), but when I now export the > document described in the OP to LaTeX, the macro is erased entirely. I > receive: > > 1 Doe, Nothing important, 2. Aufl. (2022), 5

Re: [RFC PATCH] Re: [bug] Macro in citation not expanded

2024-01-24 Thread Ihor Radchenko
Ihor Radchenko writes: > Subject: [PATCH] org-element: Allow more objects inside citations Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9ef18956b -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Sup