--- bytefield/bytefield.dtx 2004-06-14 19:45:00.000000000 -0700 +++ ../+temp2/bytefield/bytefield.dtx 2005-07-19 11:01:02.000000000 -0700 @@ -1064,10 +1064,13 @@ % ``|0-7,15-23|''. Ranges must be specified in increasing order; use the % optional argument to |\bitheader| to reverse the labels' direction. % \begin{macrocode} +\newdimen\heightnine +\setbox0=\hbox{\tiny 9} +\heightnine=\ht0 \DeclareRobustCommand{\bitheader}[2][l]{% \parse@bitbox@arg{lrtb}% \setlength{\units@wide}{\bitwidth * \value{bits@wide}}% - \setlength{\units@tall}{\heightof{\tiny 9}}% + \setlength{\units@tall}{\heightnine}% \setlength{\units@high}{\units@tall * -1}% \def\bit@endianness{#1}% \begin{picture}(\strip@pt\units@wide,\strip@pt\units@tall)% @@ -1305,10 +1308,11 @@ \settowidth{\label@box@width}{\usebox{\word@label@box}}% \setlength{\label@box@height}{\wordlabelr@end-\wordlabelr@start}% \store@rcurly{\curly@box}{\label@box@height}% + \settowidth{\curly@box@width}{\usebox{\curly@box}}% \bf@newdimen\total@box@width% \setlength{\total@box@width}{% \curlyspace + - \widthof{\usebox{\curly@box}} + + \curly@box@width + \labelspace + \label@box@width}% \begin{picture}(\strip@pt\total@box@width,0) @@ -1414,9 +1418,10 @@ \begin{tabular}[b]{@{}l@{}}\wordlabell@text\end{tabular}}% \settowidth{\label@box@width}{\usebox{\word@label@box}}% \store@lcurly{\curly@box}{5cm}% + \settowidth{\curly@box@width}{\usebox{\curly@box}}% \setlength{\total@lbox@width}{% \curlyspace + - \widthof{\usebox{\curly@box}} + + \curly@box@width + \labelspace + \label@box@width}% \global\total@lbox@width=\total@lbox@width @@ -1469,12 +1474,14 @@ % \begin{macro}{\label@box@width} % \begin{macro}{\label@box@height} % \begin{macro}{\word@label@box} +% \begin{macro}{\curly@box@width} % Scratch storage for the width, height, and contents of the word label % we're about to output. % \begin{macrocode} \newlength{\label@box@width} \newlength{\label@box@height} \newsavebox{\word@label@box} +\newlength{\curly@box@width} % \end{macrocode} % \end{macro} % \end{macro} --- bytefield/bytefield.ins 2004-06-14 19:40:00.000000000 -0700 +++ ../+temp2/bytefield/bytefield.ins 2005-07-19 13:13:31.000000000 -0700 @@ -35,6 +35,7 @@ and version 1.2 or later is part of all \endpreamble +\askforoverwritefalse \generate{\file{bytefield.sty}{\from{bytefield.dtx}{package}}} \Msg{***************************************************************}