I am looking for a way to have LaTeX render strings of more than one letter as upright (in math mode). For example, I want it to render
$Hom$as$\mathrm{Hom}$,$apple$as$\mathrm{apple}$,$apple + orange$as$\mathrm{apple} + \mathrm{orange}$,
while rendering
$a$and$a + o$as normal.
The answers at Use \mathrm by default are close to what I want, but they fail the last example.
xy. Is that wrong or deprecated? I don't know about maths, but it would be extremely awkward to write that in first order predicate calculus, for example.$Pxyz$makes a lot more sense semantically than$P x y z$. – cfr Mar 01 '14 at 23:04