bug fix scoring of rays
add support for double-escape-tex to filter