[comp.text] Changing line thicknesses and squeeze

adam@ironwood.math.ucla.edu (05/13/89)

A couple of questions:

  1. Is there any way to change the line thickness when using
     \overline ?

  2. Is there a horizontal version of \smash? That is, is
     there a \squeeze{x} which makes x have zero width?

   Thanks,  Adam H. Lewenberg

UCLA-Mathnet; 3921 MSA; 405 Hilgard Ave.; Los Angeles, CA 90024-1555
UUCP:...!{ihnp4,ucbvax,sdcrdcf,{hao!cepu}}!ucla-cs!math.ucla.edu!adam
ARPA: adam@math.ucla.edu            BITNET: adam%math.ucla.edu@WISCVM

leichter@CS.YALE.EDU (Jerry Leichter) (05/16/89)

In article <1030@sunset.MATH.UCLA.EDU>, adam@ironwood.math.ucla.edu writes...
>A couple of questions:
> 
>  1. Is there any way to change the line thickness when using
>     \overline ?

No.  (The thickness is specified as a parameter of one of the math fonts.
You would have to change that parameter, which might have unpredictable
effects elsewhere in math typesetting.  See Appendix G of the TeXbook if you
want the details.)

> 
>  2. Is there a horizontal version of \smash? That is, is
>     there a \squeeze{x} which makes x have zero width?
> 
>   Thanks,  Adam H. Lewenberg
> 

No, but you can define one if you want.  It's a little tricky because of the
need to get the right size characters inside an hbox within math mode.  The
simplest approach is to imitate the implementation of \smash, which you can
find in PLAIN.TEX.  The following is UNTESTED.  If it works, enjoy it.  If
not, enjoy fixing it.  :-)

	\def\squeeze{\relax % \relax, in case this comes first in \halign
	  \ifmmode\def\next{\mathpalette\mathsq@ze}\else\let\next\makesq@ze
	  \fi\next}
	\def\makesq@ze#1{\setbox\z@\hbox{#1}\finsq@ze}
	\def\mathsq@ze#1#2{\setbox\z@\hbox{$\m@th#1{#2}$}\finsq@ze}
	\def\finsq@ze{\wd\z@\z@ \box\z@}

It (obviously) must be set up in an environment in which @ is a letter.

							-- Jerry