1 \def\readRCS$#1 #2 #3 #4 #5${\def\erratafiledate{#4}}
3 $Id: lgc2.err 5886 2008-06-13 09:45:27Z mittelba $
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 % To produce a printed version of this errata file run this file through
7 % LaTeX. It will unpack a small class file (if not already present) and
8 % a configuration file with the extension .cfg. You might want to modify
9 % the setting in this configuration file to print only a partial errata
10 % suitable for your printed revision of this book, see details in the
13 % The current version of this file can be found at:
15 % http://www.latex-project.org/guides/books.html
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 \begin{filecontents}{ttcterrata.cls}
22 %% Copyright (C) 1997,2004,2005,2007 Frank Mittelbach
23 %% This class file is licenced under LPPL latest version;
24 %% see http://www.latex-project.org/lppl
27 % It sets up a few commands used to format the errata entries for books in the
28 % Addison-Wesley Series:
30 % Tools and Techniques for Computer Typesetting
32 % hence the name. However, anybody who likes to use it is free to apply it for
33 % errata files of other books.
37 % v1.0a - changed name from errata.cls to ttcterrata.cls
39 \ProvidesClass{ttcterrata}
40 [2007/11/10 v1.0a Mini class for errata files; subject to change (FMi)]
44 \setcounter{secnumdepth}{-1}
45 \addtolength\textwidth{5cm}
46 \addtolength\oddsidemargin{-3cm}
48 \addtolength\textheight{36pt}
50 \RequirePackage{shortvrb}
53 \RequirePackage{array,longtable}
54 \RequirePackage{multicol}
57 \newcommand\erratagetnumber{}
58 \def\erratagetnumber#1/#2/#3\erratagetnumber{#1#2#3}
61 \newcommand\gobbleerrata{%
62 \setbox\@tempboxa\vbox\bgroup
65 \let\\\relax\let\par\@@par}
67 \newcommand*\hideamp{&}
72 \newcommand\erratastartdate{}
73 \newcommand\myprinting{1}
76 \newcommand\doweprint[2]{%
77 \ifnum \myprinting < \if!#2!1000 \else \ifx s#2 1000\else#2 \fi\fi
78 \ifnum \expandafter\erratagetnumber\erratastartdate\erratagetnumber <
79 \erratagetnumber#1\erratagetnumber \relax
91 \newcommand\includedentries{entries after = \erratastartdate}
92 \newcommand\printedentries{between \erratastartdate\space and}
94 \newcommand\showallerrors{%
95 \renewcommand\includedentries{all errata entries}%
96 \renewcommand\printedentries{up to}
97 \renewcommand\doweprint[2]{\@tempswatrue}}
100 \newcommand\displayrevisionfix[2]{%
101 \if!#2!\textbf{#1}\else\textit{#1}\rlap{\textsuperscript{#2}}\fi}
103 \newcommand\norevisionnumbers{%
104 \renewcommand\displayrevisionfix[2]{\textbf{##1}}}
106 \IfFileExists{\jobname.cfg}
109 \typeout{***************************************************}
111 \typeout{* Configuration file for \jobname.err found }
113 \typeout{***************************************************}
115 \typeout{***************************************************}
117 \typeout{* If you wish to generate an errata listing}
118 \typeout{* containing only errors found after a certain revision}
119 \typeout{* and/or only errors found after a certain date}
120 \typeout{* modify the information stored in \jobname.cfg}
122 \typeout{* Current settings are:}
124 \typeout{* \@spaces printing of your book = \myprinting}
125 \typeout{* \@spaces include \includedentries}
127 \typeout{***************************************************}
131 %% \erroronpage <page> <line info> <contributor> <date> <fixed in revision>
133 \newcommand\erroronpage[5]{%
137 \typeout{Typesetting entry #1 #2 #3 #4}%
139 \typeout{Ignoring entry #1 #2 #3 #4}%
140 \expandafter\gobbleerrata
143 \displayrevisionfix{#1}{#5}
144 \hideamp #2 \hideamp (\textsf{#3}) \hideamp
147 \newcommand\seriouserroronpage[5]{%
151 \typeout{Typesetting entry #1 #2 #3 #4}%
153 \typeout{Ignoring entry #1 #2 #3 #4}%
154 \expandafter\gobbleerrata
157 \fbox{\bfseries !!}\hfill
158 \displayrevisionfix{#1}{#5}
159 \hideamp #2 \hideamp (\textsf{#3}) \hideamp
162 \newcommand\CHAPTER[1]{\endgobble
164 \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
166 \newenvironment{erratalist}
167 {\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
168 {\endgobble\end{longtable}}
170 \newcommand\erratatitle[2]
171 {\begin{center}\LARGE\bfseries
172 Errata list for #1\\[5pt](\myprinting.\ printing)\\[10pt]
173 \small Includes all entries found \printedentries\space #2\\
174 (For other periods/print runs reprocess this document
175 with different config settings)
177 \markright{Errata for #1 (\printedentries\space #2)}%
178 \thispagestyle{plain}%
181 \pagestyle{myheadings}
183 \AtBeginDocument{\small}
185 \setlength\parindent{0pt}
186 \setlength\parskip{2pt}
188 \newcommand\contributor[2]{\makebox[1cm][l]{\sffamily#1} #2\par}
190 % some special shortcuts overwriting existing commands:
193 \renewcommand\>{$\to$}
195 %%% some code suggested by Thorsten Hansen to count the number of
196 %%% contributions by individuals (will work only if we do not get
199 \def\count@contributors#1/#2/#3\@nil{
200 \@ifundefined{c@#1}{\newcounter{#1}}{}\stepcounter{#1}%
201 %%% also count secondary:
202 %%% \@ifundefined{c@#2}{\newcounter{#2}}{}\stepcounter{#2}%
205 \renewcommand\erroronpage[5]{%
206 \count@contributors#3/secondary/\@nil
210 \typeout{Typesetting entry #1 #2 #3 #4}%
212 \typeout{Ignoring entry #1 #2 #3 #4}%
213 \expandafter\gobbleerrata
216 \displayrevisionfix{#1}{#5}
217 \hideamp #2 \hideamp (\textsf{#3}) \hideamp
220 \renewcommand\seriouserroronpage[5]{%
221 \count@contributors#3/secondary/\@nil
225 \typeout{Typesetting entry #1 #2 #3 #4}%
227 \typeout{Ignoring entry #1 #2 #3 #4}%
228 \expandafter\gobbleerrata
231 \fbox{\bfseries !!}\hfill
232 \displayrevisionfix{#1}{#5}
233 \hideamp #2 \hideamp (\textsf{#3}) \hideamp
236 \renewcommand\contributor[2]{\makebox[1cm][l]{%
237 \sffamily#1} #2\@ifundefined{c@#1}{}{ (\arabic{#1})}\par}
242 \begin{filecontents}{\jobname.cfg}
245 % Configuration file for the errata listing of
247 % The LaTeX Graphics Companion, Second Edition
252 % Specifies the date from which on errata entries should be listed.
254 % The format is YYYY/MM/DD.
256 % The default below ensures that all entries for a particular
257 % printing are typeset.
260 \renewcommand\erratastartdate{2007/06/30}
266 % Specifies which (revised) printing you own. For example, if you
267 % have the second printing set this to 2 so that errors already
268 % corrected in that printing will not appear in your errata
271 % The default below ensures that all entries relevant to the x-th
272 % printing are typeset.
276 \renewcommand\myprinting{2}
281 % Specifies that all page numbers in the errata are shown in the same
282 % format (bold face) irregardless of whether or not they are fixed
283 % in some revision. The default is to print corrected errors in
284 % italic and add the revision number as a superscript.
289 % With this command you tell the program that all errata entries are
290 % supposed to be generated. This makes \myprinting and
291 % \erratastartdate basically obsolete so this isn't turned on by
299 \documentclass{ttcterrata}[2005/11/10] % we want new class
301 \usepackage[T1]{fontenc}
302 \let\u\underline % shortcut for this file
303 \newcommand\meta[1]{$\langle$\textit{#1\/}$\rangle$}
305 \usepackage{textcomp}
311 \erratatitle{The \LaTeX{} Graphics Companion, Second Edition}{\erratafiledate}
316 author = {Michel Goossens and Frank Mittelbach and Sebastian Rahtz
317 and Denis Roegel and Herbert Vo{\ss}},
318 title = {The {\LaTeX} Graphics Companion},
320 series = {Tools and Techniques for Computer Typesetting},
321 publisher = {Addison-Wesley},
322 address = {Boston, Massachusetts},
325 bibliography = {yes},
327 isbn = {978-0-321-50892-8},
332 \begin{list}{}{\setlength\leftmargin{0cm}\setlength\rightmargin{3cm}}
335 This file (\texttt{\jobname.err}) can be found as part of the \LaTeX{}
336 distribution and its latest version is maintained on the \LaTeX{}
337 project site at \texttt{http://www.latex-project.org/guides/\jobname.err}
338 where you will also find extracts of the book.
340 The first column in the table shows the page number of the errata
341 entry. Superscript numbers in the first column refer to the printed
342 revision in which this entry was corrected (\textit{s} indicates a
343 correction in the sources only). The second
344 column gives the precise location (negative line or paragraph numbers
345 are counted from the bottom of the page). The third column shows the
346 first finder of the problem.
348 You can customize this list to only show errata related to the printing
349 you own by changing the configuration in the file \texttt{\jobname.cfg}.
352 \Large \bfseries To Err is Human --- Bug Contest
355 Any mistake found and reported is a gain for all readers of our book.
356 For this reason Addison-Wesley and the authors offer a prize (for 6
357 periods) to the eligible person who finds the largest
358 number of bugs during that period (in case of a draw a random choice
359 will be made between all those with the largest number of findings).
360 A person can receive at most one prize, ever; errors found by any of
361 the authors do not count.
363 Each prize is a free choice of any single computing book found on the
364 AW Professional web site \texttt{http://www.awprofessional.com} (that
365 is, no boxed sets or multiple volume offers).
368 As usual, the authors and publisher reserve the right to make various
369 decisions such as whether a reported feature is an error for
370 competitive purposes or whether similar features count as a single or
376 Contest period ends & Winner \\[4pt]
377 2008/05 & Milan Vujtek & 16 suggestions\\
387 %<--------------------------
389 \newcommand\BibTeX{\textsc{Bib}\TeX}
395 \seriouserroronpage{general}{}{FMi}{2007/07/01}{}
397 To help you in assessing this errata document we have placed
398 exclamation marks in front of each entry that we consider essential
399 for correctly understanding the book contents.
401 \erroronpage{general}{}{FMi}{2007/07/01}{}
403 Due to the printing process there may be small alignment problems
404 between blue and black text on some pages. These can vary from book
405 to book depending on how the paper was handled between print
406 runs---such is the analog nature of printing on a press.
408 \CHAPTER{Front matter}
410 \erroronpage{xxix}{para 4, l.1}{FMi/hv}{2007/08/23}{2}
411 Add ``In case of \textsf{PSTricks} \u{and, for example, the \textsf{beamer}
412 class} the syntax \ldots''
414 \erroronpage{xxix}{para 5, code}{FMi}{2007/08/24}{2}
415 There should be a bit more space in front of the code block
419 \erroronpage{2}{para 3, l.1}{MiV}{2008/05/22}{2}
420 ``First.'' \> ``First,''
428 \seriouserroronpage{152}{exa 4-1-15}{HjG}{2007/08/17}{2}
429 Output of example is missing! Oops \ldots\ it was there honest
431 \erroronpage{177}{para 2, l.1}{MiV}{2008/05/22}{2}
432 Missing interword space: ``Flowcharts\u{ }are''
437 \erroronpage{221}{last line}{RSh}{2008/02/13}{2}
438 ``down'' should be ``up''.
440 \erroronpage{223}{}{hv}{2008/02/22}{2}
441 Changed explanation for example 5-4-1 slightly (since example changed).
443 \erroronpage{224}{exa. 5-4-1}{hv}{2008/02/22}{2}
446 \begin{pspicture}(-1,-1)(2,2)
447 \psaxes{->}(0,0)(-1,-1)(2,2)
448 \parabola[linewidth=1.5pt](1,2)(-0.5,-0.5)
449 \parabola[origin={0.25,-0.5},
450 linestyle=dashed](1,2)(-0.5,-0.5)
451 \psaxes[origin={0.25,-0.5},linestyle=dashed,
452 linewidth=0.2pt]{->}(0,0)(-1,-1)(2,2)
456 \erroronpage{240}{para 4, l.8}{MiV}{2008/05/22}{2}
458 ``keyword setting \verb/\showpoints=true/''
460 \erroronpage{254}{Ex 5-9-1}{MiV}{2008/05/22}{}
461 The blue circle shouldn't be visible behind the black circle. This is a
462 problem due to the printing process used for the book---it does not show up on
465 \erroronpage{290}{Ex 5-13-22}{MSh}{2008/06/11}{2}
466 Inside |\pscustom| the |\psbezier| macro needs four arguments in case
467 there exists no current point (always for the first macro) and three
468 arguments if the bezier curve connects to an existing line
473 \erroronpage{335}{para 5, l.4}{JMi}{2008/06/23}{2}
474 ``\ldots{} summarized in \u{Table} 5.2 \ldots" \> ``\ldots{} summarized in
475 \u{Figure} 5.2 \ldots''
477 \erroronpage{406}{margin}{hv}{2007/08/20}{2}
478 Missing interword space:
479 ``The\u{ }plotpoints \ldots''.
481 \erroronpage{416}{exa 6-6-34}{hv}{2007/08/20}{2}
482 The filling (crosshatch) of the example isn't quite correct.
484 \erroronpage{458}{para 2, l.1}{HjG}{2007/08/17}{2}
485 Missing interword space:
486 ``The\u{ }\textsf{pst-pdf} package \dots''
491 \erroronpage{491}{2nd line}{yhj}{2008/01/06}{2}
492 The name of author of xytree package should be ``Koaunghi Un''
493 but not ``Koaungli Un''. Sorry for the mistake.
497 \erroronpage{514}{tab. 8.3}{FMi}{2008/012/21}{2}
498 Slightly increase spacing after hline.
500 \erroronpage{515}{tab. 8.4}{MiV}{2008/05/22}{2}
501 There should be vertical spacing in the first line (superscript $10^{24}$
504 \seriouserroronpage{579}{para 2, l.3}{MiV}{2008/05/22}{2}
505 \verb=\ln= \> \verb=\nl= (this will also change the index entry)
507 \erroronpage{583}{para 4, l.9}{MiV}{2008/05/22}{2}
508 Replace: ``of the voltage $V_C$'' \> ``of the voltage $v_C$''
512 \erroronpage{598/599}{several}{FMi}{2007/08/19}{2}
513 The text and the displayed logs talk about example 7-2-6 but afterwards two
514 more chapters got added (without the logs being regenerated), i.e., this
519 \seriouserroronpage{683}{exa. 10-1-22}{FMi}{2007/08/26}{2}
520 The example unfortunately highlights a bug in the current texmate package: a
521 linebreak (in contrast to a space) is not recognized as a move separator
522 resulting in all moves getting scrambled in the output, e.g., you see
523 \texttt{dxe5 Bxf3 Qxf5} put together under move 4.
525 Fix: use \texttt{;} to separate moves on linebreaks or wait for the next
526 release of the package.
530 \erroronpage{720}{6th item}{MiV}{2008/05/22}{2}
531 Replace: ``documentwide'' \> ``\u{D}ocumentwide''
533 \erroronpage{726}{para 2, l.2}{MiV}{2008/05/22}{2}
535 parenthesis: ``( in practice''
537 \erroronpage{740}{para 2, l.1}{MiV}{2008/05/22}{2}
539 by \textit{start\u{ row}}'' \> ``given by \textit{start} row''
541 \seriouserroronpage{741}{Ex 11-3-5}{MiV}{2008/05/22}{2}
543 \verb=\cellcolor= might introduce extra space in the output (as one can see in
546 This can be argued as being a bug in the \texttt{colortbl} package. Given that the
547 basic \verb=\color= command ignores spaces after it, \verb=\cellcolor= should
550 \seriouserroronpage{744}{line after Ex 11-3-9}{MiV}{2008/05/22}{2}
551 Replace: ``This does \u{not}, of course, affect'' \>
552 ``This does, of course, \u{also} affect''
554 \erroronpage{758}{para 3, l.2}{MiV}{2008/05/22}{2}
555 Add small space between values and units in frame dimension
557 \erroronpage{760}{fig. 11.1}{MiV}{2008/05/22}{2}
559 why differs section names (``Introduction to encoding'' vs. ``Introduction''
562 Frank: because the author of this section used a real live example where he had
563 used an optional argument to |\section| to make the toc have special text for
564 some reason (should be mentioned in the source though).
566 \erroronpage{774}{2nd snytax box}{hv}{2009/05/8}{2}
567 The |\transduration| command takes ``time in seconds'' as mandatory argument
568 (and not ``key/vals'')
570 \erroronpage{779}{para 3, l.1}{MiV}{2008/05/22}{2}
574 \erroronpage{794}{exa 11--4-36}{hv}{2009/05/12}{2}
575 Replace ``pic2e'' \> ``pic\u{t}2e'' in output, corresponding input not
576 displayed in the book.
584 \erroronpage{809}{para -1, l.-1}{HjG}{2007/08/17}{2}
585 Missing interword space before opening parenthesis:
586 ``\dots \texttt{faq}\u{ }(or \dots''
589 Frank: actually there is nothing missing in the source. It is a deficiency of
595 \CHAPTER{Bibliography}
597 \erroronpage{822}{entry [32]}{MiV}{2008/05/22}{2}
598 Use capital C in ``Lecture Notes in computer Science''
600 \erroronpage{823}{entry [35]}{JPFD}{2007/09/05}{2}
601 The author name ``Eitan M. Gurai'' should be ``Eitan M. Gurari''.
603 \erroronpage{824}{entry [47]}{GTa}{2010/02/10}{}
604 An updated version of the manual can be downloaded from
605 \url{http://www.tug.org/docs/metapost/mpman.pdf}
607 \erroronpage{825}{entry [50]}{FMi}{2008/12/21}{2}
608 Use capital C in ``Lecture Notes in computer Science''
610 \erroronpage{826}{entry [59]}{FMi}{2008/12/21}{2}
611 Add web url: \url{http://www.dante.de/dante/DTK/PDF/komoedie_2002_1.pdf}
613 \erroronpage{826}{entry [60]}{FMi}{2008/12/21}{2}
614 Add web url: \url{http://www.dante.de/dante/DTK/PDF/komoedie_2002_2.pdf}
616 \erroronpage{828}{entry [60]}{FMi}{2008/12/21}{2}
617 Add web url: ``Sample chapter
618 at: \url{http://www.latex-project.org/guides/books.html}''
620 \erroronpage{829/830}{editorial change}{FMi}{2008/12/21}{2}
621 Page breaks changed due to other changes
623 \erroronpage{833}{entry [128]}{FMi}{2008/12/21}{2}
624 Url changed to: \url{obsolete/graphics/pstricks/doc/code/pst-code.pdf}
627 \erroronpage{833}{entry [129]}{FMi}{2008/12/21}{2}
628 Url changed to: \url{macros/generic/multido/}
631 \erroronpage{833}{entry [135]}{ADo}{2008/01/02}{2}
632 An ``s'' is missing in ``using'' (end of the first line of comment)
637 \erroronpage{856/860/866}{editorial change}{FMi}{2008/12/21}{2}
638 changed index entries due to changes above
640 \erroronpage{886}{col.2, l.-7}{GTa}{2010/02/10}{}
641 image(METAPOST) should also reference example on p.145
643 \erroronpage{891}{editorial change}{FMi}{2008/12/21}{2}
644 changed index entries due to changes above
646 \erroronpage{910/911}{editorial change}{FMi}{2008/12/21}{2}
647 changed index entries due to changes above
649 \erroronpage{925}{editorial change}{FMi}{2008/12/21}{2}
650 changed index entries due to changes above
655 \setcounter{collectmore}{3}
657 \begin{multicols}{3}[Thanks to all who have found errors or
658 omissions. Listed are the people who found an errata entry first.]
659 \contributor{ADo}{Alain Dondelinger}
660 \contributor{FMi}{Frank Mittelbach}
661 \contributor{GTa}{Gr\'egoire Taviot}
662 \contributor{HjG}{Hubert G\"a\ss lein}
663 \contributor{JPFD}{Jean-Pierre Drucbert}
664 \contributor{JMi}{John Middlekauff}
665 \contributor{MSh}{Michael Sharpe}
666 \contributor{MiV}{Milan Vujtek}
667 \contributor{RSh}{Richard Shepard}
668 \contributor{hv}{Herbert Vo\ss}
669 \contributor{yhj}{You Hyun Jo}
673 Other people have sent us corrections for errors already found.
674 Thanks to all of you!
678 errors please report them to one of the authors, e.g.,
679 \begin{quote}\ttfamily
680 frank.mittelbach@latex-project.org
682 preferably in a form usable directly in this file, i.e.,
684 |\erroronpage{|\textit{page-number}|}{|\textit{line-identification}|}{|%
685 \textit{your-initials}|}{|\textit{date}|}{}| \\
686 \hspace*{2em}\textit{description of the the erratum}
690 \erroronpage{5}{para 3, l.1}{MOs}{2007/07/01}{}
691 ``LaTeX'' should be typeset ``\LaTeX''.
697 > > In addition, with regards to content of Section 8.1 it would be nice
698 > > to use Roman ``d'' in integrands in examples 3-2-3, 3-5-83, 3-5-84,
699 > > 5-12-21, 6-5-6 and 6-5-11.