On Mon, Mar 31, 2008 at 10:09:30AM +0200, Jürgen Spitzmüller wrote:

> Enrico Forestieri wrote:
> > In the new hspace inset (thanks Jürgen) one of the possible spaces
> > is labeled "Enspace (0.5em)" but it really inserts \enskip.
> > This could be okay by itself, as \enskip is defined similarly to \quad
> > (inserted by "Quad (1em)") and \qquad (inserted by "QQuad (2em)", i.e.,
> > TeX defines them as
> > \def\enskip{\hskip.5em\relax}
> > \def\quad{\hskip1em\relax}
> > \def\qquad{\hskip2em\realx}
> 
> AFAIU, enspace and enskip are of the same length (a half em), only one is 
> protected, the other isn't. That's why I used only one combo entry while 
> the "protected" state can be toggled, as for the other spaces as well.

Hmm... there's no such thing as a protected enspace.

> > But in the hspace context menu both "Enspace" and "Enskip" are
> > offered as a choice. Apart from the fact that this is confusing,
> > as the Enspace inserted through the hspace dialog is now listed as
> > being an Enskip, the Enspace entry now inserts \enspace.
> 
> In the context menu, we do not have two widgets (length combo and protected 
> check box), therefore I decided to fall back to the old names.
> 
> > I think that this entry does not belong there, as \enspace is
> > defined as \def\enspace{\kern.5em } in TeX, and \kern is a strange
> > animal that inserts horizontal space when in horizontal mode, but
> > vertical space when in vertical mode. For example, try
> > \vbox{\hbox{a\enspace b}\enspace\hbox{c}}
> > to see it.
> >
> > So, I propose to rename "Enspace (0.5em)" to "Enskip (0.5em)" in
> > the hspace dialog, and to remove the "Enspace" choice from the
> > context menu. What do you think?
> 
> I think if "Enspace (protected)" is too confusing, we should just rename the 
> entry in the combo to "0.5 em" or somesuch.

I think that you misunderstood \enskip and \enspace. They both have a
length of 0.5em, but \enskip always inserts horizontal space, whereas
\enspace inserts horizontal space when in horizontal mode but vertical
space when in vertical mode. Try the attached latex snippet for a
surprise...

I think that for latex experts it would be confusing having a "Enspace"
menu that really inserts \enskip. What is the problem in simply renaming
"Enspace (0.5em)" to "Enskip (0.5em)" and getting rid of the "Enspace"
in the context menu?

-- 
Enrico

Attachment: enspace.tex
Description: TeX document

Reply via email to