Am 23.02.2009 um 18:14 schrieb Mojca Miklavec: > thanks a lot for the very nice code :) :) :) > > The second example (H_2^+) does not return expected result - it > should have been > H\lohi{2}{+} > instead, but I don't require such cases for the current document, so I > guess that I'll just replace the old macro with this one for now in > order not to get distracted with TeX problems too much :) You can try the attatched, it use lpeg to parse the content. Wolfgang