Selection/merge support in Latex documents