summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thumbs/thumbs.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-03 00:19:58 +0000
committerKarl Berry <karl@freefriends.org>2012-01-03 00:19:58 +0000
commitb335c8eb18249435672bc4d540525ace62021d0c (patch)
tree1bdda60bf32a3892448ee079b57a01b3309ef9fd /Master/texmf-dist/tex/latex/thumbs/thumbs.sty
parente2de36e60fe8b2a0bd9716548bb190adc30c24b9 (diff)
thumbs (2jan12)
git-svn-id: svn://tug.org/texlive/trunk@25009 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thumbs/thumbs.sty')
-rw-r--r--Master/texmf-dist/tex/latex/thumbs/thumbs.sty235
1 files changed, 128 insertions, 107 deletions
diff --git a/Master/texmf-dist/tex/latex/thumbs/thumbs.sty b/Master/texmf-dist/tex/latex/thumbs/thumbs.sty
index f2dec087375..c0663066fc9 100644
--- a/Master/texmf-dist/tex/latex/thumbs/thumbs.sty
+++ b/Master/texmf-dist/tex/latex/thumbs/thumbs.sty
@@ -9,12 +9,12 @@
%% This is a generated file.
%%
%% Project: thumbs
-%% Version: 2011/10/19 v1.0j
+%% Version: 2012/01/01 v1.0k
%%
-%% Copyright (C) 2010, 2011 by
+%% Copyright (C) 2010 - 2012 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
%%
-%% The usual disclaimer applys:
+%% The usual disclaimer applies:
%% If it doesn't work right that's your problem.
%% (Nevertheless, send an e-mail to the maintainer
%% when you find an error in this package.)
@@ -33,17 +33,17 @@
%%
%% The Current Maintainer of this work is H.-Martin Muench.
%%
-%% This work consists of the main source file thumbs.dtx
-%% and the derived files
+%% This work consists of the main source file thumbs.dtx,
+%% the README, and the derived files
%% thumbs.sty, thumbs.pdf, thumbs.ins, thumbs.drv,
-%% thumbs-example.tex.
+%% thumbs-example.tex, thumbs-example.pdf.
%%
-\NeedsTeXFormat{LaTeX2e}[2009/09/24]% recent: 2011/06/27
-\ProvidesPackage{thumbs}[2011/10/19 v1.0j
- Thumb marks and overwiew page(s) (HMM)]
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\ProvidesPackage{thumbs}[2012/01/01 v1.0k
+ Thumb marks and overview page(s) (HMM)]
%% This package allows to create a customizable thumb index,
-%% providing a quick and easy reference methode for large documents,
+%% providing a quick and easy reference method for large documents,
%% as well as an overview page.
\IfFileExists{tcilatex.tex}{%
@@ -83,17 +83,41 @@
\RequirePackage{xcolor}[2007/01/21]% v2.11
\RequirePackage{picture}[2009/10/11]% v1.3
\RequirePackage{alphalph}[2010/04/18]% v2.3
-\RequirePackage{pageslts}[2011/08/08]% v1.2a
-\RequirePackage{pagecolor}[2011/08/08]% v1.0c
+\RequirePackage{pageslts}[2011/08/08]% v1.2a
+\RequirePackage{pagecolor}[2011/08/08]% v1.0c
\RequirePackage{rerunfilecheck}[2011/04/15]% v1.7
-\RequirePackage{infwarerr}[2010/04/08]% v1.3
-\RequirePackage{atveryend}[2011/04/23]% v1.7,
-%% v1.8 would be needed but is currently (2011/10/19) not available at CTAN yet
+\RequirePackage{infwarerr}[2010/04/08]% v1.3
+\RequirePackage{atveryend}[2011/04/23]% v1.7
+%% \RequirePackage{atveryend}[2011/06/30]% v1.8
+%% would be needed but is currently (2012/01/01) not available at CTAN yet
%% thumbs may work with earlier versions of LaTeX2e and those packages,
%% but this was not tested. Please consider updating your LaTeX contribution
%% and packages to the most recent version (if they are not already the most
%% recent version).
+\@ifl@t@r\fmtversion{2011/06/27}% or possibly even newer
+{\@ifpackagelater{atveryend}{2011/06/29}%
+ {% 2011/06/30, v1.8, or even more recent: OK
+ }{% else: older package version, no \AtVeryVeryEnd
+ \PackageWarningNoLine{thumbs}{%
+ LaTeX 2011/06/27 has changed \string\enddocument\space and thus broken the\MessageBreak%
+ \string\AtVeryVeryEnd\space command/hooking of atveryend package as of\MessageBreak%
+ 2011/04/23, v1.7. New package version 2011/06/30, v1.8, works with\MessageBreak%
+ the new LaTeX format, but some older package version was loaded.\MessageBreak%
+ (As of 2012/01/01, the new version is NOT available at CTAN yet.)\MessageBreak%
+ For fixing this problem until the update is available,\MessageBreak%
+ \string\let\string\AtVeryVeryEnd\string\AtEndAfterFileList\MessageBreak%
+ is used now, fingers crossed.%
+ }%
+ \let\AtVeryVeryEnd\AtEndAfterFileList%
+ \RequirePackage{ltxcmds}[2011/04/18]% v1.20, for \ltx@firstofone
+ \AtEndAfterFileList{% if there is \AtVeryVeryEnd inside \AtEndAfterFileList
+ \let\AtEndAfterFileList\ltx@firstofone%
+ }
+ }
+}{% else: older fmtversion: OK
+}
+
\SetupKeyvalOptions{family=thumbs,prefix=thumbs@}
\DeclareStringOption{linefill}[dots]% \thumbs@linefill
\DeclareStringOption[rule]{thumblink}[rule]
@@ -207,12 +231,9 @@
\newbox\ThumbsBox
-\newcounter{th@mbs@tmpA}
-\setcounter{th@mbs@tmpA}{0}
-
\gdef\th@mbs{0}
\gdef\th@mbsmax{0}
-\gdef\th@umbsperpage{0}% will be set via aux file
+\gdef\th@umbsperpage{0}% will be set via .aux file
\gdef\th@umbsperpagecount{0}
\gdef\th@mbtitle{}
@@ -259,8 +280,8 @@
\advance\th@mbheighty+\headsep
\advance\th@mbheighty+\textheight
\advance\th@mbheighty+\footskip
- \setcounter{th@mbs@tmpA}{\th@mbsmax}
- \ifnum\value{th@mbs@tmpA}>1
+ \@tempcnta=\th@mbsmax\relax
+ \ifnum\@tempcnta>1
\divide\th@mbheighty\th@mbsmax
\fi
\advance\th@mbheighty-\th@mbsdistance
@@ -279,13 +300,13 @@
\gdef\th@bmsvoffset{\voffset}
\fi
\xdef\th@mbpaperwidth{\the\paperwidth}
- \setlength{\th@mbposyA}{1pt}
- \ifdim \thumbs@minheight < \th@mbposyA% too small
+ \setlength{\@tempdima}{1pt}
+ \ifdim \thumbs@minheight < \@tempdima% too small
\setlength{\thumbs@minheight}{1pt}
\else
- \ifdim \thumbs@minheight = \th@mbposyA% small, but ok
+ \ifdim \thumbs@minheight = \@tempdima% small, but ok
\else
- \ifdim \thumbs@minheight > \th@mbposyA% ok
+ \ifdim \thumbs@minheight > \@tempdima% ok
\else
\PackageError{thumbs}{Option minheight has invalid value}{%
Please use a number and a length unit (e.g. mm, cm, pt)\MessageBreak%
@@ -298,15 +319,15 @@
\fi
\fi
\fi
- \setlength{\th@mbposyA}{\thumbs@minheight}
+ \setlength{\@tempdima}{\thumbs@minheight}
\ifx\thumbs@height\empty%
- \setlength{\th@mbheighty}{\th@mbposyA}
+ \setlength{\th@mbheighty}{\@tempdima}
\else
\def\th@mbstest{auto}
\ifx\thumbs@height\th@mbstest%
\setth@mbheight
\ifdim \th@mbheighty < \thumbs@minheight
- \PackageWarningNoLine{thumbs}{Thumbs not high enought:\MessageBreak%
+ \PackageWarningNoLine{thumbs}{Thumbs not high enough:\MessageBreak%
Option height has value 'auto'. For \th@mbsmax\space thumbs per page\MessageBreak%
this results in a thumb height of \the\th@mbheighty.\MessageBreak%
This is lower than the minimal thumb height, \thumbs@minheight,\MessageBreak%
@@ -315,7 +336,7 @@
for option 'minheight'%
}
\setlength{\th@mbheighty}{\z@}
- \advance\th@mbheighty+\th@mbposyA% = \thumbs@minheight
+ \advance\th@mbheighty by \@tempdima% = \thumbs@minheight
\fi
\else
\ifthumbs@verbose
@@ -338,7 +359,7 @@
\setlength{\th@mbwidthx}{\paperwidth}
\advance\th@mbwidthx-\textwidth
\divide\th@mbwidthx4
- \setlength{\th@mbposyA}{0sp}
+ \setlength{\@tempdima}{0sp}
\ifx\thumbs@width\empty%
\else
\def\th@mbstest{auto}
@@ -365,10 +386,10 @@
\setlength{\th@mbwidthx}{\th@mbmaxwidtha}
}%\fi
\else
- \ifdim \thumbs@width > \th@mbposyA% OK
+ \ifdim \thumbs@width > \@tempdima% OK
\setlength{\th@mbwidthx}{\thumbs@width}
\else
- \PackageError{thumbs}{Thumbs not wide enought}{%
+ \PackageError{thumbs}{Thumbs not wide enough}{%
Option width has value '\thumbs@width'.\MessageBreak%
This is not a valid dimension larger than zero.\MessageBreak%
Width will be set automatically.\MessageBreak%
@@ -404,8 +425,8 @@
\advance\th@mbposy-\th@mbsdistance
\advance\th@mbposy+\th@mbheighty
\else
- \setlength{\th@mbposyA}{-1pt}
- \ifdim \thumbs@topthumbmargin > \th@mbposyA% OK
+ \setlength{\@tempdima}{-1pt}
+ \ifdim \thumbs@topthumbmargin > \@tempdima% OK
\else
\PackageWarning{thumbs}{Thumbs column starting too high.\MessageBreak%
Option topthumbmargin has value '\thumbs@topthumbmargin'.\MessageBreak%
@@ -445,29 +466,29 @@
\advance\th@mbposybottom-\th@mbsdistance
\advance\th@mbposybottom-\th@mbheighty
\else
- \setlength{\th@mbposyA}{\paperheight}
- \advance\th@mbposyA-\thumbs@bottomthumbmargin
- \advance\th@mbposyA-\th@mbposytop
- \advance\th@mbposyA-\th@mbsdistance
- \advance\th@mbposyA-\th@mbheighty
- \advance\th@mbposyA-\th@mbsdistance
- \ifdim \th@mbposyA > 0sp%ok
+ \setlength{\@tempdima}{\paperheight}
+ \advance\@tempdima by -\thumbs@bottomthumbmargin
+ \advance\@tempdima by -\th@mbposytop
+ \advance\@tempdima by -\th@mbsdistance
+ \advance\@tempdima by -\th@mbheighty
+ \advance\@tempdima by -\th@mbsdistance
+ \ifdim \@tempcnta > 0sp \relax
\else
- \setlength{\th@mbposyA}{\paperheight}
- \advance\th@mbposyA-\th@mbposytop
- \advance\th@mbposyA-\th@mbsdistance
- \advance\th@mbposyA-\th@mbheighty
- \advance\th@mbposyA-\th@mbsdistance
- \advance\th@mbposyA-1pt
+ \setlength{\@tempdima}{\paperheight}
+ \advance\@tempdima by -\th@mbposytop
+ \advance\@tempdima by -\th@mbsdistance
+ \advance\@tempdima by -\th@mbheighty
+ \advance\@tempdima by -\th@mbsdistance
+ \advance\@tempdima by -1pt
\PackageWarning{thumbs}{Thumbs column ending too high.\MessageBreak%
Option bottomthumbmargin has value '\thumbs@bottomthumbmargin'.\MessageBreak%
- bottomthumbmargin will be set to '\the\th@mbposyA'.\MessageBreak%
+ bottomthumbmargin will be set to '\the\@tempdima'.\MessageBreak%
}
- \xdef\thumbs@bottomthumbmargin{\the\th@mbposyA}
+ \xdef\thumbs@bottomthumbmargin{\the\@tempdima}
\fi
- \setlength{\th@mbposyA}{\thumbs@bottomthumbmargin}
+ \setlength{\@tempdima}{\thumbs@bottomthumbmargin}
\setlength{\@tempdimc}{-1pt}
- \ifdim \th@mbposyA < \@tempdimc%
+ \ifdim \@tempdima < \@tempdimc%
\PackageWarning{thumbs}{Thumbs column ending too low.\MessageBreak%
Option bottomthumbmargin has value '\thumbs@bottomthumbmargin'.\MessageBreak%
bottomthumbmargin will be set to -1pt.\MessageBreak%
@@ -479,14 +500,14 @@
\fi
\ifthumbs@verbose%
\setlength{\@tempdimc}{\paperheight}
- \advance\@tempdimc-\th@mbposybottom
+ \advance\@tempdimc by -\th@mbposybottom
\edef\thumbsinfo{\the\@tempdimc}
\@PackageInfoNoLine{thumbs}{The bottom thumb margin is \thumbsinfo}
\@PackageInfoNoLine{thumbs}{**********************************************}
\message{^^J}
\fi
- \advance\th@mbposy-\th@mbheighty% because it will be advanced also for the first thumb
- \setlength{\th@mbposyA}{\th@mbposy}% \th@mbposyA will change.
+ \advance\th@mbposy-\th@mbheighty% because it will be advanced also for the first thumb
+ \setlength{\th@mbposyA}{\th@mbposy}% \th@mbposyA will change.
\setlength{\th@mbsposytocyy}{\th@mbposy}% \th@mbsposytocyy shall not be changed.
}
@@ -507,9 +528,12 @@
\newcommand{\thumbnewcolumn}{%
\ifx\th@mbtoprint\pagesLTS@one%
\PackageError{thumbs}{\string\thumbnewcolumn\space after \string\addthumb }{%
- On page \thepage\space (approx.) \string\addthumb\space was used and *afterwards* \string\thumbnewcolumn .\MessageBreak%
- When you want to use \string\thumbnewcolumn , do not use an \string\addthumb\space on the same\MessageBreak%
- page before \string\thumbnewcolumn . Thus, either remove the \string\addthumb , or use a\MessageBreak%
+ On page \thepage\space (approx.) \string\addthumb\space was used and *afterwards* %
+ \string\thumbnewcolumn .\MessageBreak%
+ When you want to use \string\thumbnewcolumn , do not use an \string\addthumb\space %
+ on the same\MessageBreak%
+ page before \string\thumbnewcolumn . Thus, either remove the \string\addthumb , %
+ or use a\MessageBreak%
\string\pagebreak , \string\newpage\space etc. before \string\thumbnewcolumn .\MessageBreak%
(And remember to use an \string\addthumb\space*after* \string\thumbnewcolumn .)\MessageBreak%
Your command \string\thumbnewcolumn\space will be ignored now.%
@@ -554,30 +578,28 @@
\gdef\th@mbcolumn{1}%
\fi%
\fi%
- \setcounter{th@mbs@tmpA}{\th@mbs}%
- \addtocounter{th@mbs@tmpA}{+1}%
- \xdef\th@mbs{\arabic{th@mbs@tmpA}}%
+ \@tempcnta=\th@mbs\relax%
+ \advance\@tempcnta by 1%
+ \xdef\th@mbs{\the\@tempcnta}%
\gdef\th@mbtitle{#1}%
\gdef\th@mbtext{#2}%
\gdef\th@mbtextcolour{#3}%
\gdef\th@mbbackgroundcolour{#4}%
- \edef\th@mbstmpwidth{\the\th@mbposyA}%
- \settowidth{\th@mbposyA}{\th@mbtext\space}%
- \ifdim\th@mbposyA>\th@mbmaxwidth%
- \xdef\th@mbmaxwidth{\the\th@mbposyA}%
+ \settowidth{\@tempdima}{\th@mbtext\space}%
+ \ifdim\@tempdima>\th@mbmaxwidth%
+ \xdef\th@mbmaxwidth{\the\@tempdima}%
\fi%
- \ifdim\th@mbposyA>\th@mbwidthx%
+ \ifdim\@tempdima>\th@mbwidthx%
\ifthumbs@draft% \relax
\else%
\edef\thumbsinfoa{\the\th@mbwidthx}
- \edef\thumbsinfob{\the\th@mbposyA}
+ \edef\thumbsinfob{\the\@tempdima}
\PackageWarning{thumbs}{%
Thumb mark too small (width: \thumbsinfoa )\MessageBreak%
or its text too wide (width: \thumbsinfob )\MessageBreak%
}%
\fi%
\fi%
- \setlength{\th@mbposyA}{\th@mbstmpwidth}%
\@ifundefined{Hy@Warning}{% hyperref not loaded
}{% hyperref loaded
\ifthumbs@nophantomsection% \relax
@@ -603,9 +625,9 @@
\fi%
\ifx\th@mbcolumnnew\pagesLTS@one%
\else%
- \setcounter{th@mbs@tmpA}{\th@mbonpage}%
- \addtocounter{th@mbs@tmpA}{+1}%
- \xdef\th@mbonpage{\arabic{th@mbs@tmpA}}%
+ \@tempcnta=\th@mbonpage\relax%
+ \advance\@tempcnta by 1%
+ \xdef\th@mbonpage{\the\@tempcnta}%
\fi%
\ifx\th@mbtoprint\pagesLTS@zero%
\else%
@@ -613,7 +635,7 @@
\PackageWarning{thumbs}{More than one thumb at one page:\MessageBreak%
You placed more than one thumb mark (at least \th@mbonpage)\MessageBreak%
on page \thepage \space (page is approximately).\MessageBreak%
- Maybe insert a pagebreak?\MessageBreak%
+ Maybe insert a page break?\MessageBreak%
}%
\fi%
\fi%
@@ -627,23 +649,23 @@
\setlength{\th@mbposyA}{\th@mbposy}%
\else%
\ifx\th@mbcolumnnew\pagesLTS@zero%
- \setcounter{th@mbs@tmpA}{1}%
- \edef\th@mbonpagetest{\arabic{th@mbs@tmpA}}%
- \@whilenum\th@mbonpagetest<\th@mbonpage\do{%
- \addtocounter{th@mbs@tmpA}{1}%
- \xdef\th@mbonpagetest{\arabic{th@mbs@tmpA}}%
- \ifnum\th@mbonpage=\th@mbonpagetest%
- \ifnum\th@mbonpagemax<\th@mbonpage%
- \xdef\th@mbonpagemax{\th@mbonpage}%
- \fi%
- \edef\th@mbtmpdef{\csname th@mbtext\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
- \expandafter\gdef\th@mbtmpdef{#2}%
- \edef\th@mbtmpdef{\csname th@mbtextcolour\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
- \expandafter\gdef\th@mbtmpdef{#3}%
- \edef\th@mbtmpdef{\csname th@mbbackgroundcolour\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
- \expandafter\gdef\th@mbtmpdef{#4}%
- \fi%
- }%
+ \@tempcnta=1\relax%
+ \edef\th@mbonpagetest{\the\@tempcnta}%
+ \@whilenum\th@mbonpagetest<\th@mbonpage\do{%
+ \advance\@tempcnta by 1%
+ \xdef\th@mbonpagetest{\the\@tempcnta}%
+ \ifnum\th@mbonpage=\th@mbonpagetest%
+ \ifnum\th@mbonpagemax<\th@mbonpage%
+ \xdef\th@mbonpagemax{\th@mbonpage}%
+ \fi%
+ \edef\th@mbtmpdef{\csname th@mbtext\AlphAlph{\the\@tempcnta}\endcsname}%
+ \expandafter\gdef\th@mbtmpdef{#2}%
+ \edef\th@mbtmpdef{\csname th@mbtextcolour\AlphAlph{\the\@tempcnta}\endcsname}%
+ \expandafter\gdef\th@mbtmpdef{#3}%
+ \edef\th@mbtmpdef{\csname th@mbbackgroundcolour\AlphAlph{\the\@tempcnta}\endcsname}%
+ \expandafter\gdef\th@mbtmpdef{#4}%
+ \fi%
+ }%
\else%
\ifnum\th@mbonpagemax<\th@mbonpage%
\xdef\th@mbonpagemax{\th@mbonpage}%
@@ -698,7 +720,7 @@
\def\th@mbstest{rule}%
\ifx\thumbs@thumblink\th@mbstest%
\ifx\th@mb@tmp@column\pagesLTS@zero%
- {\color{\th@mb@tmp@backgroundcolour}\hyperref[\th@mb@tmp@label]{\rule{\th@mbwidthxtoc}{\th@mbheighty}}}%
+ {\color{\th@mb@tmp@backgroundcolour}\hyperref[\th@mb@tmp@label]{\rule{\th@mbwidthxtoc}{\th@mbheighty}}}%
\else%
{\color{\th@mb@tmp@backgroundcolour}\rule{\th@mbwidthxtoc}{\th@mbheighty}}%
\fi%
@@ -866,8 +888,8 @@
\space until \string\addthumb\space is used.)\MessageBreak%
}%
\fi%
- \setcounter{th@mbs@tmpA}{\value{CurrentPage}}%
- \addtocounter{th@mbs@tmpA}{-1}% because CurrentPage is already the one of the next page
+ \@tempcnta=\value{CurrentPage}\relax%
+ \advance\@tempcnta by -1% because CurrentPage is already the one of the next page
\edef\th@mbstmpwidth{\the\paperwidth}%
\ifdim\th@mbpaperwidth=\th@mbstmpwidth% OK
\else%
@@ -883,7 +905,7 @@
\xdef\th@mbpaperwidth{\the\paperwidth}%
\fi%
\def\th@mbxpos{\th@mbposx}%
- \ifodd\c@th@mbs@tmpA% \relax
+ \ifodd\@tempcnta% \relax
\else%
\if@twoside%
\ifthumbs@ignorehoffset%
@@ -896,20 +918,20 @@
\AtBeginShipoutUpperLeft{%
\ifx\th@mbprinting\pagesLTS@one%
\th@mbprint{\th@mbtextA}{\th@mbtextcolourA}{\th@mbbackgroundcolourA}%
- \setcounter{th@mbs@tmpA}{1}%
- \edef\th@mbonpagetest{\arabic{th@mbs@tmpA}}%
+ \@tempcnta=1\relax%
+ \edef\th@mbonpagetest{\the\@tempcnta}%
\@whilenum\th@mbonpagetest<\th@mbonpage\do{%
- \addtocounter{th@mbs@tmpA}{1}%
- \edef\th@mbonpagetest{\arabic{th@mbs@tmpA}}%
+ \advance\@tempcnta by 1%
+ \edef\th@mbonpagetest{\the\@tempcnta}%
\th@mb@yA%
- \def\th@mbtmpdeftext{\csname th@mbtext\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
- \def\th@mbtmpdefcolour{\csname th@mbtextcolour\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
- \def\th@mbtmpdefbackgroundcolour{\csname th@mbbackgroundcolour\AlphAlph{\arabic{th@mbs@tmpA}}\endcsname}%
+ \def\th@mbtmpdeftext{\csname th@mbtext\AlphAlph{\the\@tempcnta}\endcsname}%
+ \def\th@mbtmpdefcolour{\csname th@mbtextcolour\AlphAlph{\the\@tempcnta}\endcsname}%
+ \def\th@mbtmpdefbackgroundcolour{\csname th@mbbackgroundcolour\AlphAlph{\the\@tempcnta}\endcsname}%
\th@mbprint{\th@mbtmpdeftext}{\th@mbtmpdefcolour}{\th@mbtmpdefbackgroundcolour}%
}%
\fi%
- \setcounter{th@mbs@tmpA}{\th@mbonpage}%
- \ifnum\value{th@mbs@tmpA}<2% \relax
+ \@tempcnta=\th@mbonpage\relax%
+ \ifnum\@tempcnta<2% \relax
\else%
\gdef\th@mbtextA{\th@mbtext}%
\gdef\th@mbtextcolourA{\th@mbtextcolour}%
@@ -926,7 +948,7 @@
\else
\PackageWarningNoLine{thumbs}{%
Still missing \string\addthumb\space after \string\thumbnewcolumn\space after\MessageBreak%
- last shipout: Command \string\thumbnewcolumn\space was used,\MessageBreak%
+ last ship-out: Command \string\thumbnewcolumn\space was used,\MessageBreak%
but no new thumb placed with \string\addthumb\space anywhere in the\MessageBreak%
rest of the document. Starting a new column of thumb\MessageBreak%
marks and not putting a thumb mark into that column\MessageBreak%
@@ -1202,7 +1224,7 @@
\newcommand{\th@mbs@verview}{%
\ifthumbs@verbose%
- \message{^^JPackage thumbs Info: Processing line \arabic{th@mblinea} to \arabic{th@mblineb} of \jobname.tmb.}%
+ \message{^^JPackage thumbs Info: Processing line \arabic{th@mblinea} to \arabic{th@mblineb} of \jobname.tmb.}%
\fi%
\setcounter{FileLine}{1}%
\AtBeginShipoutNext{%
@@ -1266,9 +1288,9 @@
\closein\@instreamthumb%
\addtocounter{th@mblinea}{\th@umbsperpage}%
\addtocounter{th@mblineb}{\th@umbsperpage}%
- \setcounter{th@mbs@tmpA}{\th@mbsmax}%
- \ifnum \value{th@mblineb}>\value{th@mbs@tmpA}
- \setcounter{th@mblineb}{\value{th@mbs@tmpA}}%
+ \@tempcnta=\th@mbsmax\relax%
+ \ifnum \value{th@mblineb}>\@tempcnta\relax%
+ \setcounter{th@mblineb}{\@tempcnta}%
\fi%
}{% else
\setcounter{FileLine}{\arabic{thumbsstop}}%
@@ -1305,7 +1327,6 @@
\renewcommand{\thumbnewcolumn}{\relax}
\fi
-
\endinput
%%
%% End of file `thumbs.sty'.