fixed bug where emphasis tails were not added to latex output