[OS X TeX] Handling punctuation and spaces after an abbreviation

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sat Dec 3 13:17:04 CET 2011

When I type this kind of  macro, I follow it with a pair of closed braces, like \SoS{}.  (If you are using a macro with arguments, this is unnecessary.)
Then any space I type afterward will not get swallowed up by the macro, whereas a punctuation immediately following the macro will sit right there.

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966

On Dec 2, 2011, at 16:59, Nirav S wrote:

In my writing I need to use the abbreviation SoS -- not the distress signal -- it stands for system of systems.  Some people prefer this typeset as "SoS" or "SofS" or "S-o-S" or one of these in italics.  To deal with this, I created a macro:


which I then change depending upon the convention being used in the particular paper.

My problem is that this macro doesn't work well it the middle of sentence, i.e.,

I really like \SoS.  typesets as "I really like SoS."


\SoS are my favorite things. typesets as "SoSare my favorite things."

Changing that to "\SoS\ are..." makes it so that 'SoS' and 'are' don't run together, but then "\SoS\," makes the comma disappear.

What's the correct way to do this?  Right now, I'm making lots of mistake trying to remember whether to type \SoS\ or just \SoS depending on the punctuation (or lack thereof) that follows.


- Nirav----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list