summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/webcomp.err
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 15:31:27 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 15:31:27 +0000
commite5fabe7a228278dc1eaeb1f8740c21724639a9da (patch)
treeecd1aff89e7ef9d0b22eaaad5a0219f1d753581c /Master/texmf-dist/source/latex/base/webcomp.err
parentb57ff57a6c2fec7c7c89f59ea8a75eae8cc252a9 (diff)
latex (latex core) update via latex-tds (25sep09)
git-svn-id: svn://tug.org/texlive/trunk@15515 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/base/webcomp.err')
-rw-r--r--Master/texmf-dist/source/latex/base/webcomp.err101
1 files changed, 91 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/base/webcomp.err b/Master/texmf-dist/source/latex/base/webcomp.err
index 64c885df7c1..2ca4b41daf1 100644
--- a/Master/texmf-dist/source/latex/base/webcomp.err
+++ b/Master/texmf-dist/source/latex/base/webcomp.err
@@ -10,11 +10,27 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\begin{filecontents}{errata.cls}
-% Copyright (C) 1997, Frank Mittelbach
+\begin{filecontents}{ttcterrata.cls}
+%%
+%% Copyright (C) 1997,2004,2005,2007 Frank Mittelbach
+%% This class file is licenced under LPPL latest version;
+%% see http://www.latex-project.org/lppl
+%
+%
+% It sets up a few commands used to format the errata entries for books in the
+% Addison-Wesley Series:
+%
+% Tools and Techniques for Computer Typesetting
+%
+% hence the name. However, anybody who likes to use it is free to apply it for
+% errata files of other books.
+%
+% Changes:
+%
+% v1.0a - changed name from errata.cls to ttcterrata.cls
-\ProvidesClass{errata}
- [1997/12/31 v0.6b Mini class for errata files subject to change (FMi)]
+\ProvidesClass{ttcterrata}
+ [2007/11/10 v1.0a Mini class for errata files; subject to change (FMi)]
\LoadClass{article}
@@ -47,11 +63,11 @@
\newcommand\erratastartdate{}
-\newcommand\myprinting{}
+\newcommand\myprinting{1}
\newcommand\doweprint[2]{%
- \ifnum \myprinting < \if!#2!1000 \else#2 \fi
+ \ifnum \myprinting < \if!#2!1000 \else \ifx s#2 1000\else#2 \fi\fi
\ifnum \expandafter\erratagetnumber\erratastartdate\erratagetnumber <
\erratagetnumber#1\erratagetnumber \relax
\@tempswatrue
@@ -87,6 +103,10 @@
\typeout{*}
\typeout{* Configuration file for \jobname.err found }
\typeout{*}
+ \typeout{***************************************************}
+ \AtEndDocument{
+ \typeout{***************************************************}
+ \typeout{*}
\typeout{* If you wish to generate an errata listing}
\typeout{* containing only errors found after a certain revision}
\typeout{* and/or only errors found after a certain date}
@@ -98,7 +118,7 @@
\typeout{* \@spaces include \includedentries}
\typeout{*}
\typeout{***************************************************}
- }
+ }}
{}
%% \erroronpage <page> <line info> <contributor> <date> <fixed in revision>
@@ -117,6 +137,21 @@
\hideamp #2 \hideamp (\textsf{#3}) \hideamp
}
+\newcommand\seriouserroronpage[5]{%
+ \endgobble
+ \doweprint{#4}{#5}%
+ \if@tempswa
+ \typeout{Typesetting entry #1 #2 #3 #4}%
+ \else
+ \typeout{Ignoring entry #1 #2 #3 #4}%
+ \expandafter\gobbleerrata
+ \fi
+ \hideamp \\%
+ \fbox{\bfseries !!}\hfill
+ \displayrevisionfix{#1}{#5}
+ \hideamp #2 \hideamp (\textsf{#3}) \hideamp
+}
+
\newcommand\CHAPTER[1]{\endgobble
&\\[4pt]%
\multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
@@ -128,7 +163,9 @@
\newcommand\erratatitle[2]
{\begin{center}\LARGE\bfseries
Errata list for #1\\[5pt](\myprinting.\ printing)\\[10pt]
- \large Includes all entries found \printedentries\space #2
+ \small Includes all entries found \printedentries\space #2\\
+ (For other periods/print runs reprocess this document
+ with different config settings)
\end{center}%
\markright{Errata for #1 (\printedentries\space #2)}%
\thispagestyle{plain}%
@@ -145,9 +182,53 @@
% some special shortcuts overwriting existing commands:
-\let\u\underline
+\let\u\underline
\renewcommand\>{$\to$}
+%%% some code suggested by Thorsten Hansen to count the number of
+%%% contributions by individuals (will work only if we do not get
+%%% too many :-)
+
+\def\count@contributors#1/#2/#3\@nil{
+ \@ifundefined{c@#1}{\newcounter{#1}}{}\stepcounter{#1}%
+%%% also count secondary:
+%%% \@ifundefined{c@#2}{\newcounter{#2}}{}\stepcounter{#2}%
+}
+
+\renewcommand\erroronpage[5]{%
+ \count@contributors#3/secondary/\@nil
+ \endgobble
+ \doweprint{#4}{#5}%
+ \if@tempswa
+ \typeout{Typesetting entry #1 #2 #3 #4}%
+ \else
+ \typeout{Ignoring entry #1 #2 #3 #4}%
+ \expandafter\gobbleerrata
+ \fi
+ \hideamp \\%
+ \displayrevisionfix{#1}{#5}
+ \hideamp #2 \hideamp (\textsf{#3}) \hideamp
+}
+
+\renewcommand\seriouserroronpage[5]{%
+ \count@contributors#3/secondary/\@nil
+ \endgobble
+ \doweprint{#4}{#5}%
+ \if@tempswa
+ \typeout{Typesetting entry #1 #2 #3 #4}%
+ \else
+ \typeout{Ignoring entry #1 #2 #3 #4}%
+ \expandafter\gobbleerrata
+ \fi
+ \hideamp \\%
+ \fbox{\bfseries !!}\hfill
+ \displayrevisionfix{#1}{#5}
+ \hideamp #2 \hideamp (\textsf{#3}) \hideamp
+}
+
+\renewcommand\contributor[2]{\makebox[1cm][l]{%
+ \sffamily#1} #2\@ifundefined{c@#1}{}{ (\arabic{#1})}\par}
+
\end{filecontents}
@@ -207,7 +288,7 @@
-\documentclass{errata}
+\documentclass{ttcterrata}
\begin{document}