latex2wp: added handling of nested macros