How to tweak unicode-math so that u+003A colon behaves like AMS's \colon, and u+2236 like a relation symbol (potentially assuming amsmath is loaded)?


Change \colon to use U+2236 and make U+003A math active, defined to yield \colon.


  \char_set_active_eq:nN { `: } \colon
\patchcmd{\colon}{:}{∶}{}{}% first is U+003A, second is U+2236


$f:A\to B$ % U+003A

$f∶f$      % U+2236


enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.