Skip to content

Instantly share code, notes, and snippets.

@laughinghan
Last active February 17, 2016 03:14
Show Gist options
  • Save laughinghan/5fbe41939bf14fbc7780 to your computer and use it in GitHub Desktop.
Save laughinghan/5fbe41939bf14fbc7780 to your computer and use it in GitHub Desktop.
\acos
\acosec
\acosech
\acosh
\acot
\acotan
\acotanh
\acoth
\acsc
\acsch
\asec
\asech
\asin
\asinh
\atan
\atanh
@laughinghan
Copy link
Author

To replace \asin with \arcsin etc: .replace(/\\a((?:sin|cos|tan|sec|csc|cosec|cot|cotan)h?)\b/g, '\\arc$1')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment