1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
|
\newcommand\erratafiledate{1999/06/05}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% To produce a printed version of this errata file run this file through
% LaTeX. It will unpack a small class file (if not already present) and
% a configuration file with the extension .cfg. You might want to modify
% the setting in this configuration file to print only a partial errata
% suitable for your printed revision of this book, see details in the
% .cfg file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{filecontents}{errata.cls}
% Copyright (C) 1997, Frank Mittelbach
\ProvidesClass{errata}
[1997/12/31 v0.6b Mini class for errata files subject to change (FMi)]
\LoadClass{article}
\setcounter{secnumdepth}{-1}
\addtolength\textwidth{5cm}
\addtolength\oddsidemargin{-3cm}
\addtolength\textheight{36pt}
\RequirePackage{shortvrb}
\MakeShortVerb{\|}
\RequirePackage{array,longtable}
\RequirePackage{multicol}
\newcommand\erratagetnumber{}
\def\erratagetnumber#1/#2/#3\erratagetnumber{#1#2#3}
\newcommand\gobbleerrata{%
\setbox\@tempboxa\vbox\bgroup
\let\endgobble\egroup
\let\hideamp\relax
\let\\\relax\let\par\@@par}
\newcommand*\hideamp{&}
\let\endgobble\relax
\newcommand\erratastartdate{}
\newcommand\myprinting{}
\newcommand\doweprint[2]{%
\ifnum \myprinting < \if!#2!1000 \else#2 \fi
\ifnum \expandafter\erratagetnumber\erratastartdate\erratagetnumber <
\erratagetnumber#1\erratagetnumber \relax
\@tempswatrue
\else
\@tempswafalse
\fi
\else
\@tempswafalse
\fi
}
\newcommand\includedentries{entries after = \erratastartdate}
\newcommand\printedentries{between \erratastartdate\space and}
\newcommand\showallerrors{%
\renewcommand\includedentries{all errata entries}%
\renewcommand\printedentries{up to}
\renewcommand\doweprint[2]{\@tempswatrue}}
\newcommand\displayrevisionfix[2]{%
\if!#2!\textbf{#1}\else\textit{#1}\rlap{\textsuperscript{#2}}\fi}
\newcommand\norevisionnumbers{%
\renewcommand\displayrevisionfix[2]{\textbf{##1}}}
\IfFileExists{\jobname.cfg}
{
\input{\jobname.cfg}
\typeout{***************************************************}
\typeout{*}
\typeout{* Configuration file for \jobname.err found }
\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}
\typeout{* modify the information stored in \jobname.cfg}
\typeout{*}
\typeout{* Current settings are:}
\typeout{*}
\typeout{* \@spaces printing of your book = \myprinting}
\typeout{* \@spaces include \includedentries}
\typeout{*}
\typeout{***************************************************}
}
{}
%% \erroronpage <page> <line info> <contributor> <date> <fixed in revision>
\newcommand\erroronpage[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 \\%
\displayrevisionfix{#1}{#5}
\hideamp #2 \hideamp (\textsf{#3}) \hideamp
}
\newcommand\CHAPTER[1]{\endgobble
&\\[4pt]%
\multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
\newenvironment{erratalist}
{\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
{\endgobble\end{longtable}}
\newcommand\erratatitle[2]
{\begin{center}\LARGE\bfseries
Errata list for #1\\[5pt](\myprinting.\ printing)\\[10pt]
\large Includes all entries found \printedentries\space #2
\end{center}%
\markright{Errata for #1 (\printedentries\space #2)}%
\thispagestyle{plain}%
\vspace{20pt}}
\pagestyle{myheadings}
\AtBeginDocument{\small}
\setlength\parindent{0pt}
\setlength\parskip{2pt}
\newcommand\contributor[2]{\makebox[1cm][l]{\sffamily#1} #2\par}
% some special shortcuts overwriting existing commands:
\let\u\underline
\renewcommand\>{$\to$}
\end{filecontents}
\begin{filecontents}{\jobname.cfg}
%
%
% Configuration file for the errata listing of
%
% The LaTeX Web Companion
%
%
% \erratastartdate
%
% Specifies the date from which on
% errata entries should be listed.
%
% The format is YYYY/MM/DD.
%
% The default below ensures that all
% entries are typeset.
%
\renewcommand\erratastartdate{1999/05/01}
%
% \myprinting
%
% Specifies which (revised) printing you
% own. For example, if you have the second
% printing set this to 2 so that errors
% already corrected in that printing will not
% appear in your errata listing.
%
% The default below ensures that all
% entries are typeset.
%
\renewcommand\myprinting{1}
%
%
% \norevisionnumbers
%
% Specifies that all page numbers in the errata are shown in the same
% format (bold face) irregardless of whether or not they are fixed
% in some revision. The default is to print corrected errors in
% italic and add the revision number as a superscript.
%
%
% \showallerrors
%
% With this command you tell the program that all errata entries are
% supposed to be generated. This makes \myprinting and
% \erratastartdate basically obsolete so this isn't turned on by
% default.
%
%
\endinput
\end{filecontents}
\documentclass{errata}
\begin{document}
\erratatitle{The \LaTeX{} Web Companion}{\erratafiledate}
\begin{verbatim}
@book(A-W:GR99,
author = {Michel Goossens and Sebastian Rahtz},
title = {The {\LaTeX} Web Companion},
substitle = {Integrating {\TeX}, HTML, and XML},
series = "Tools and Techniques for Computer Typesetting",
publisher = {Addison-Wesley},
address = {Reading, Massachusetts},
year = 1999,
ISBN = "0-201-43311-7",
LCCN = "QA76.76.H94G66 1999",
pagenums = {xxii + 522},
source-infos = {yes},
bibliography = {yes},
index = {yes},
price = "US\$39.95",
note = "With Eitan M. Gurari and Ross Moore and Robert S.
Sutor.",
)
\end{verbatim}
\begin{list}{}{\setlength\leftmargin{0cm}\setlength\rightmargin{5cm}}
\item[]
The latest version of this file (\texttt{\jobname.err}) can be found
as part of the \LaTeX{} distribution.
The first column in the table shows the page number of the errata
entry. Superscript numbers in the first column refer to the printed
revision in which this entry was corrected. The second column gives
the precise location, negative line numbers are counted from the
bottom of the page. The third column shows the first finder of the
problem.
\end{list}
\begin{erratalist}
%=======================================================================
\CHAPTER{Chapter 6}
\erroronpage{247}{3 para l.5}{MGo}{1999/06/05}{}
GenCod \> GenCode
\CHAPTER{Appendix B}
\erroronpage{418}{3 para}{MGo}{1999/06/05}{}
The \texttt{book} element types (lines 10--\u{15})
\end{erratalist}
%==========================================================================
\bigskip
\begin{multicols}{3}[Thanks to all who have found errors or
omissions. Listed are the people who found an errata entry first.]
\contributor{MGo}{Michel Goossens}
\end{multicols}
If you find further errors please report them to one of the authors
\begin{quote}\ttfamily
sebastian.rahtz@oucs.ox.ac.uk\\
goossens@cern.ch
\end{quote}
preferable in a form usable for this file, i.e.,
\begin{flushleft}
|\erroronpage{|\textit{page-number}|}{|\textit{line-identification}|}{|%
\textit{your-initials}|}{|\textit{date}|}{}| \\
\hspace*{2em}\textit{description of the the errata}
\end{flushleft}
Here is an example:
\begin{verbatim}
\erroronpage{4}{l.-7}{PMcJ}{1998/06/11}{}
surprisingly \> surprising
\end{verbatim}
\end{document}
|