8
votes
3answers
174 views

How can you tell whether a given macro is meant to be used in text mode or maths mode?

I recently read answer that discouraged the use of \ensuremath on the grounds that one should know whether each command is meant to be used in math mode or text mode. Given a command, how can you tell ...
8
votes
2answers
452 views

Is it worth defining \ensuretext ?

We already have \ensuremath to make sure the argument get enclosed in math mode. Is it worth defining \ensuretext ?