fix ruby insert-end
fix yatex mode