# HG changeset patch # User Michael Goffioul # Date 1376876369 14400 # Node ID 8201f78a006458c4c063c1d4b1b40eda55724f0c # Parent 0a09d4b4076709bc9e8f72a571d5a578cb79150d Allow simple symbol as super-/subscript. * libinterp/corefcn/oct-tex-parser.yy (subscript_element, superscript_element): Allow simple syntax like SUB/SUPER followed by a symbol_element. diff --git a/libinterp/corefcn/oct-tex-parser.yy b/libinterp/corefcn/oct-tex-parser.yy --- a/libinterp/corefcn/oct-tex-parser.yy +++ b/libinterp/corefcn/oct-tex-parser.yy @@ -156,12 +156,16 @@ { $$ = new text_element_superscript ($2); } | SUPER scoped_string_element_list { $$ = new text_element_superscript ($2); } + | SUPER symbol_element + { $$ = new text_element_superscript ($2); } ; subscript_element : SUB CH { $$ = new text_element_subscript ($2); } | SUB scoped_string_element_list { $$ = new text_element_subscript ($2); } + | SUB symbol_element + { $$ = new text_element_subscript ($2); } ; combined_script_element : subscript_element superscript_element