[OS X TeX] automatic superscript braces in TeXShop editor

Herbert Schulz herbs at wideopenwest.com
Tue Mar 13 01:41:15 CET 2012


On Mar 12, 2012, at 7:18 PM, Don Green Dragon wrote:

> Hi Michael,
> 
> Sorry for the long delay, but it took me a while to get around to applying your suggestion about the package `xspace'. I assumed that all that was necessary was the inclusion of 
> 
> \usepackage{xspace}
> 
> in the preamble. But that did not work! So 
> 
> The set of natural number \N is not
> 
> typesets as shown below after my sign off. Other examples behaved the same way. Wondering if I have misinterpreted what you intended!!!
> 
> 
> On 19Feb2012, at 12:15 AM, Michael Welsh wrote:
> 
>> On 18/02/2012, at 2:32 PM, Don Green Dragon wrote:
>>> 
>>>>> \newcommand{\N}{$\mathbb{N}$}
>>>> 
>>>> Wouldn't
>>>> 
>>>> \newcommand{\N}{\ensuremath{\mathbb{N}}} be better?
>>> 
>>> Yes! In text mode I can type \N\ and obtain what I want.
>> 
>> I would recommend the package xspace here.
>> 
>> Then you get the spacing done correctly, removing the need for \ in some places and not in others.
> 
> Don Green Dragon
> fergdc at Shaw.ca


Howdy,

\newcommand{\N}{\ensuremath{\mathbb{N}}\xspace}

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list