Revert "fix the last commit"

This reverts commit be8bef1f5fa1a8405ebd8a89f1378935077bfd6a.
Revert "treat arguments for \begin and \end as parts of the pairs"

This reverts commit 224b1cd82b1b22243ef1eb2813ae4c4d751d244e.