calc-embedded-close-formula

calc-embedded-close-formula is a variable defined in `calc.el'.
Its value is

"\\'\\|\n$\\|\\$\\$?\\|\\\\]\\|^\\\\end[^{].*\n\\|^\\\\end{.*[^x]}.*\n\\|^@.*\n\\|^\\.EN.*\n\\|\\\\)\\|\n%\n\\|^\\.\\\\\"\n"


Documentation:
A regular expression for the closing delimiter of a formula used by calc-embedded.

You can customize this variable.