From 834ac25ede283e2301af97dc6383155fbb031261 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 21 Apr 2024 12:41:47 +0300 Subject: [PATCH] Mention that round braces are allowed in sub/superscripts * org-syntax.org (Subscript and Superscript): Fix description of SCRIPT token - parenthesis are allowed around the scripts. Add examples. Link: https://orgmode.org/list/87plvproor.fsf@localhost --- org-syntax.org | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/org-syntax.org b/org-syntax.org index 63ac18c5..0821670d 100644 --- a/org-syntax.org +++ b/org-syntax.org @@ -1699,8 +1699,9 @@ CHAR^SCRIPT + CHAR :: Any non-whitespace character. + SCRIPT :: One of the following constructs: - A single asterisk character (=*=). - - An expression enclosed in curly brackets (={=, =}=), which may itself - contain balanced curly brackets and the standard set of objects. + - An expression enclosed in curly brackets (={=, =}=) or in round braces + (=(=, =)=), which may itself contain balanced curly or round brackets + and the standard set of objects. - An instance of the pattern: #+begin_example SIGN CHARS FINAL @@ -1713,6 +1714,18 @@ SIGN CHARS FINAL dots. + FINAL :: An alphanumeric character. + +Examples: + +#+begin_example +pecularity^* +x^2 +x^-2 +y_(i^th, i is odd) +x^{y^{z}} +A_i,j +#+end_example + In rare occasions, subscript syntax clashes with [[#Emphasis_Markers][underline markup]]: #+begin_example -- 2.45.2