tags:

views:

277

answers:

2

How can I make a LaTex macro which replaces each

  1. \and by the word "and"
  2. \or by the word "or"

so that the nouns are not in italics?

+4  A: 

\text{and} or \text{or}

If you insist on a macro, just use the normal LaTeX \newcommand.

Charlie Martin
Thank you! Do you know how I can make an alias of \and so that it applies to \text{and}?
Masi
It seems that I can make an alias by \newcommand.
Masi
Hah, beat you to it ;-)
Charlie Martin
You need to load the amsmath package (or amstext, at a minimum) for this to work.
Will Robertson
No you don't. \text is plain LaTeX.
Charlie Martin
A: 

In math mode \mbox{} gives the argument upright (roman) typesetting.

dmckee
The advantage to \text is that the font size adjusts in different situations (such as subscripts/superscripts). Although that's not always important...
Will Robertson
@Will: News to me. Thanks.
dmckee