[texhax] Finding the widest string

Reinhard Kotucha reinhard.kotucha at web.de
Tue May 4 21:11:40 CEST 2010


On 4 May 2010 José Romildo Malaquias wrote:

 > So the following:
 > 
 >   \setbox\z@\hbox{\wid at fmt{#1}}
 > 
 > is equivalent to
 > 
 >   \setbox0\hbox{\wid at fmt{#1}}
 > 
 > and it records the given box in a special box variable that has the
 > index 0, right? 

Right.

 > After doing some more searching I have found that there are 256
 > possible indexes, from 0 to 255, that can be used with \setbox.

All TeX engines except Knuth's TeX ("tex" on Unix, "tex.exe" on Windows)
nowadays provide the e-TeX extensions.  e-TeX provides indexes from 0
to 65535 for all register types but not for file descriptors (\openin,
\openout). 

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the texhax mailing list