use mathpar for figures