Reorganize the grammar and implement some WebTeX array options.