[NTG-context] czech food

Hans Hagen pragma at wxs.nl
Thu Sep 15 12:02:52 CEST 2005


Vit Zyka wrote:

> It needs some new definitions to core-spa.tex (Hans ??):
>   \unexpanded\def\textormathglue#1#2#3{%
>     {\dimen0=#1\hspaceamount\empty{#3}%
>      \skip0=0pt plus.5\dimen0 minus.3\dimen0
>      \ifmmode\mskip#1#2%
>      \else\kern#1\hspaceamount\empty{#3}\hskip\skip0\fi\relax}%
>   }
>   \def\thinglue    {\textormathglue+\thinmuskip 1}
>   \def\medglue     {\textormathglue+\medmuskip  2}
>   \def\thickglue   {\textormathglue+\thickmuskip3}


this boils down to:

\unexpanded\def\textormathglue#1#2#3%
  {\begingroup
   \scratchdimen=#1\hspaceamount\empty{#3}%
   \scratchskip=\zeropoint
      \!!plus.5\scratchdimen
      \!!minus.3\scratchdimen\relax
   \ifmmode
     \mskip#1#2%
   \else
     \kern\scratchdimen
     \hskip\scratchskip
   \fi
   \endgroup}

\def\thinglue {\textormathglue+\thinmuskip 1}
\def\medglue  {\textormathglue+\medmuskip  2}
\def\thickglue{\textormathglue+\thickmuskip3}

why the kern followed by the skip? why not just 

\unexpanded\def\textormathglue#1#2#3%
  {\ifmmode
     \mskip#1#2\relax
   \else  
     \begingroup
     \scratchdimen#1\hspaceamount\empty{#3}%
     \scratchskip
       \scratchdimen  
       \!!plus .5\scratchdimen
       \!!minus.3\scratchdimen
     \hskip\scratchskip
     \endgroup
   \fi}

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list