Article View: comp.text.tex
Article #2666Re: getting width of {\tt xxxxxxxx} in the *current* font size
From: Jonathan Thornburg
Date: Sun, 23 Aug 1992 08:36
Date: Sun, 23 Aug 1992 08:36
24 lines
1469 bytes
1469 bytes
In article <1992Aug23.072029.18770@chpc.utexas.edu>
jonathan@chpc.utexas.edu (Jonathan Thornburg) writes [I asked]:
>In a LaTeX style file, how can I set \dimen\tabwidth to the width
>of {\tt xxxxxxxx} in the *current* size? All of my attempts so far
>yield \normalsize\tt.
Oops, I need a \skip, not a \dimen. To rephrase my question:
In a LaTeX style file, how can I set a skip register \tabwidth
to the width of {\tt xxxxxxxx} in the *current* size, i.e.
\newskip\tabwidth%%%
\setbox0=\hbox{\scriptsize\tt xxxxxxxx}%%%
\tabwidth=\wd0%%%
except using whatever the current size is, not hard-wiring in
\scriptsize?
Thanks,
- Jonathan Thornburg
<jonathan@einstein.ph.utexas.edu> or <jonathan@hermes.chpc.utexas.edu>
University of Texas at Austin / Physics Dept / Center for Relativity
and (for a few more months) U of British Columbia / {Astronomy,Physics}
Technical Details
Message-ID:
<1992Aug23.083603.22011@chpc.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!hermes.chpc.utexas.edu!jonathanReferences:
<1992Aug23.072029.18770@chpc.utexas.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!hermes.chpc.utexas.edu!jonathan
From: jonathan@chpc.utexas.edu (Jonathan Thornburg)
Subject: Re: getting width of {\tt xxxxxxxx} in the *current* font size
Message-ID: <1992Aug23.083603.22011@chpc.utexas.edu>
Summary: correction, I want it in a \newskip, not a \newdimen
Keywords: TeX LaTeX box dimension register font \tt verbatim tab width \hbox
Organization: The University of Texas System - CHPC
References: <1992Aug23.072029.18770@chpc.utexas.edu>
Date: Sun, 23 Aug 92 08:36:03 GMT
Lines: 24