# 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 -r 0a09d4b40767 -r 8201f78a0064 libinterp/corefcn/oct-tex-parser.yy --- a/libinterp/corefcn/oct-tex-parser.yy Sun Aug 18 21:39:27 2013 -0400 +++ b/libinterp/corefcn/oct-tex-parser.yy Sun Aug 18 21:39:29 2013 -0400 @@ -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