This question already has an answer here:

I created new commands for Galois groups and Automorphism groups like so,


I wanted to the text of Gal and Aut to be unitalicized and that works for normal math mode, but it italicizes in theorem environments. How can I keep it from italicizing in theorems and propositions?

An example of a function that does what I want would be the gcd function.

marked as duplicate by Henri Menke, Community Jan 28 '18 at 2:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I suppose you load amsmath or mathtools. This is the way:


Not only will it not be italicised, but you'll get a correct spacing for exponents, indices, &c.

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