emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug with macro expansion after underscore (subscript)
@ 2021-01-05 14:10 Dauer, Michael
  2021-04-01 15:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Dauer, Michael @ 2021-01-05 14:10 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

Hi,

I cannot expand a macro after underscore, as the following sample shows in
detail:

#+macro: xxx A
* macro bug
_{{{xxx}}}
a _{{{xxx}}}
a_{{{xxx}}}
a^{{{xxx}}}
a{{{xxx}}}
a_A

generates:

_A
a _A
a_{{{xxx}}}
a^{{{xxx}}}
aA
a_A

thx
m

[-- Attachment #2: Type: text/html, Size: 449 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug with macro expansion after underscore (subscript)
  2021-01-05 14:10 bug with macro expansion after underscore (subscript) Dauer, Michael
@ 2021-04-01 15:33 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-04-01 15:33 UTC (permalink / raw)
  To: Dauer, Michael; +Cc: emacs-orgmode

Hello,

"Dauer, Michael" <michael.dauer@smartpm.com> writes:

> I cannot expand a macro after underscore, as the following sample shows in
> detail:
>
> #+macro: xxx A
> * macro bug

> a _{{{xxx}}}
> a_{{{xxx}}}

The first pair of braces belongs to the sup/superscript syntax, as in
a_{foo}. IOW, you need a fourth pair of braces in this case.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-01 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05 14:10 bug with macro expansion after underscore (subscript) Dauer, Michael
2021-04-01 15:33 ` Nicolas Goaziou

Code repositories for project(s) associated with this 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).