From 1e35a2ab442dbc7cb043bb2a03e547b8e5ec4ba6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 29 Oct 2015 21:08:42 +0000 Subject: bytefield git-svn-id: svn://tug.org/texlive/trunk@38736 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/bytefield/bytefield.dtx | 50 ++++++++++++++-------- .../source/latex/bytefield/bytefield.ins | 4 +- 2 files changed, 35 insertions(+), 19 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/bytefield/bytefield.dtx b/Master/texmf-dist/source/latex/bytefield/bytefield.dtx index fe5b22e933e..d5592242307 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) 2014 by Scott Pakin +% Copyright (C) 2015 by Scott Pakin % ------------------------------------------------------ % % This file may be distributed and/or modified under the @@ -22,7 +22,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{bytefield} %<*package> - [2014/06/03 v2.2 Network protocol diagrams] + [2015/10/28 v2.3 Network protocol diagrams] % % %<*driver> @@ -35,16 +35,24 @@ \usepackage{calc} \usepackage{array} \usepackage{wasysym} -\IfFileExists{hypdoc.sty}{\usepackage{hypdoc}}{} +\usepackage{hyperxmp} +\usepackage{hypdoc} \usepackage{hyperref} -\IfFileExists{hypcap.sty}{\usepackage[figure]{hypcap}}{} +\usepackage[figure]{hypcap} \hypersetup{% pdftitle={The bytefield package}, - pdfauthor={Scott Pakin }, + pdfauthor={Scott Pakin}, pdfsubject={Protocol diagrams for LaTeX}, - pdfkeywords={bits, bytes, bit fields, communication, network protocol - diagrams, LaTeX2e, memory maps}, + pdfkeywords={bits, bytes, bit fields, communication, network protocol diagrams, LaTeX2e, memory maps}, + pdfcopyright={Copyright (C) 2015, Scott Pakin}, + pdflicenseurl={http://www.latex-project.org/lppl/}, + pdfcaptionwriter={Scott Pakin}, + pdfcontactemail={scott+bf@pakin.org}, + pdfcontacturl={http://www.pakin.org/\xmptilde scott/}, + pdflang={en-US}, + baseurl={http://mirrors.ctan.org/macros/latex/contrib/bytefield/bytefield.pdf}, + pdfstartview=Fit, colorlinks=false, bookmarksopen=true} \EnableCrossrefs @@ -59,7 +67,7 @@ % % \fi % -% \CheckSum{1020} +% \CheckSum{1025} % % \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 @@ -1998,20 +2006,28 @@ % \end{macro} % % \begin{macro}{\bf@newdimen} -% If we're using $\varepsilon$-\TeX\ then we have access to many more -% \meta{dimen}s than in original \TeX\@. The \textsf{etex} package -% makes these extra \meta{dimen}s 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|. +% $\varepsilon$-\TeX\ provides many more \meta{dimen}s than the original +% \TeX's 255. When running newer versions of $\varepsilon$-\TeX\ we +% rebind |\bf@newdimen| to |\newdimen|. If the \pkgname{etex} package +% is loaded, however, we instead rebind |\bf@newdimen| to |\locdimen| to +% keep the allocation local. Finally, if we're not running +% $\varepsilon$-\TeX\ we leave |\bf@newdimen| defined as above to help +% reduce register pressure when only 255 \meta{dimen}s are available. % \changes{v1.3}{2010/10/31}{Added support for $\varepsilon$-\TeX's larger % local \meta{dimen} pool (code provided by Heiko Oberdiek)} +% \changes{v2.3}{2015/10/28}{Rewrote the macro based on discussions with +% David Carlisle to avoid producing ``\texttt{No room for a new +% \string\string\string\dimen}'' errors in newer versions of $\varepsilon$-\TeX\ +% (cf.~\url{http://tex.stackexchange.com/q/275042})} % \begin{macrocode} \AtBeginDocument{% - \begingroup\expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname locdimen\endcsname\relax + \expandafter\ifx\csname e@alloc\endcsname\relax + \expandafter\ifx\csname locdimen\endcsname\relax + \else + \let\bf@newdimen=\locdimen + \fi \else - \let\bf@newdimen\locdimen + \let\bf@newdimen=\newdimen \fi } % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/bytefield/bytefield.ins b/Master/texmf-dist/source/latex/bytefield/bytefield.ins index 62fd6fbe610..f85ddeb20a4 100644 --- a/Master/texmf-dist/source/latex/bytefield/bytefield.ins +++ b/Master/texmf-dist/source/latex/bytefield/bytefield.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2014 by Scott Pakin +%% Copyright (C) 2015 by Scott Pakin %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3a of this license @@ -21,7 +21,7 @@ This is a generated file. -Copyright (C) 2014 by Scott Pakin +Copyright (C) 2015 by Scott Pakin This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3a of this license -- cgit v1.2.3