🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6385

Re: Changing line thicknesses and squeeze

#6385
From: Jerry Leichter
Date: Tue, 16 May 1989 16:53
34 lines
1776 bytes
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
Technical Details
Message-ID: <60690@yale-celray.yale.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!leichter

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!leichter
From: leichter@CS.YALE.EDU (Jerry Leichter)
Newsgroups: comp.text
Subject: Re: Changing line thicknesses and squeeze
Message-ID: <60690@yale-celray.yale.UUCP>
Date: 16 May 89 16:53:13 GMT
Sender: root@yale.UUCP
Distribution: na
Organization: Yale Computer Science Department, New Haven, Connecticut, USA
Lines: 34
X-from: leichter@CS.YALE.EDU (Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU))