summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/bytefield/bytefield.dtx')
-rw-r--r--Master/texmf-dist/source/latex/bytefield/bytefield.dtx22
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/bytefield/bytefield.dtx b/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
index 7504d58c68e..4f6d096cb78 100644
--- a/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
+++ b/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2008 by Scott Pakin <scott+bf@pakin.org>
+% Copyright (C) 2010 by Scott Pakin <scott+bf@pakin.org>
% ------------------------------------------------------
%
% This file may be distributed and/or modified under the
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{bytefield}
%<*package>
- [2005/07/31 v1.2a Network protocol diagrams]
+ [2010/10/31 v1.3 Network protocol diagrams]
%</package>
%
%<*driver>
@@ -64,7 +64,7 @@
%</driver>
% \fi
%
-% \CheckSum{599}
+% \CheckSum{615}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -924,6 +924,22 @@
\dimendef#1=\allocationnumber
\wlog{\string#1=\string\dimen\the\allocationnumber\space (locally)}}
% \end{macrocode}
+% If we're using $\varepsilon$-\TeX, we have access to many more
+% \meta{dimen}s. The \textsf{etex} package makes these available via
+% the |\locdimen| macro. At the start of the document we check if
+% |\locdimen| is defined and, if so, replace the preceding definition of
+% |\bf@newdimen| with \textsf{etex}'s |\locdimen|.
+% \changes{v1.3}{2010/10/31}{Added support for $\varepsilon$-\TeX's larger
+% local \meta{dimen} pool (code provided by Heiko Oberdiek)}
+% \begin{macrocode}
+\AtBeginDocument{%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname locdimen\endcsname\relax
+ \else
+ \let\bf@newdimen\locdimen
+ \fi
+}
+% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\bytefield@height}