# [texworks] New Command question from beginner

Jean-Claude Raoult JC.Raoult at free.fr
Mon Nov 26 09:00:37 CET 2012

Le 25 nov. 2012 à 19:31, Schor, Robert H a écrit :

> I’ve just installed MiKTeX and have started writing a document about Getting Started with LabVIEW.  In this document, I talk about a Virtual Instrument, commonly abbreviated as VI.  To make the plural, I didn’t want to use either VIs or VI’s, but instead wanted to use VI\hspace{1pt}s, putting a little space between the VI and the “s”.
>
> Not wanting to type this string over and over again, I defined a New Command as follows:
>
> \newcommand{VIs}{VI\hspace{1pt}s}
>
> However, when I use it in my document, it “eats” white space that follows the command, causing a line such as “These \VIs will be” to be rendered as “These VIswill be” (with a 1 pt space between VI and s, but no space between s and “will”).  On the other hand, if I build the space into the command itself, then “normal \VIs.” is rendered as “normal VIs .”  (with the extra space before the period).
>
> Is there a way to define the command so that the characters being output will “respect” subsequent white space?  [I’ve done a quick Google search, but am new enough to TeX and LaTeX to not know what search terms to use].
>
> Bob Schor
[...]

Personally, I use Plain TeX or rather XeTeX (simpler is better), but I think that the following def would work equally well with LaTeX:

\def\vi{VI'\kern1pts\ }

Jean-Claude Raoult