summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-09 18:29:12 +0000
committerKarl Berry <karl@freefriends.org>2008-04-09 18:29:12 +0000
commit793ccd841817272cff30d09bc6e298401dd35003 (patch)
treec3579034149f42ce78278369abcd95a992468487
parenta3a666a6e9bb5f4d23b7dca4ad03fd9aa8ca4ee0 (diff)
new latex package nostarch (7apr08)
git-svn-id: svn://tug.org/texlive/trunk@7363 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/bibtex/bib/nostarch/nostarch.bib163
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/100euroie.pngbin0 -> 16301 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/100euroit.pngbin0 -> 15657 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/1eurogr.jpgbin0 -> 26576 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/README9
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/nostarch.pdfbin0 -> 316092 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/nssample.pdfbin0 -> 403728 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/nssample.tex394
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/recycled.pngbin0 -> 1190 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/vitruvian.jpgbin0 -> 63756 bytes
-rw-r--r--Master/texmf-dist/makeindex/nostarch/nostarch.ist46
-rw-r--r--Master/texmf-dist/source/latex/nostarch/Makefile65
-rw-r--r--Master/texmf-dist/source/latex/nostarch/nostarch.dtx2260
-rw-r--r--Master/texmf-dist/source/latex/nostarch/nostarch.ins33
-rw-r--r--Master/texmf-dist/tex/latex/nostarch/nostarch.cls719
-rw-r--r--Master/texmf-dist/tex/latex/nostarch/nshyper.sty65
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-publishers.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/nostarch.tlpsrc2
19 files changed, 3758 insertions, 1 deletions
diff --git a/Master/texmf-dist/bibtex/bib/nostarch/nostarch.bib b/Master/texmf-dist/bibtex/bib/nostarch/nostarch.bib
new file mode 100644
index 00000000000..de86d1e6245
--- /dev/null
+++ b/Master/texmf-dist/bibtex/bib/nostarch/nostarch.bib
@@ -0,0 +1,163 @@
+,-------------------.
+| BIBTEX ENTRIES |
+`-------------------'
+
+@misc{TeXFAQ,
+ author = {UK \TeX{} Users Group},
+ howpublished = {\url{http://www.tex.ac.uk/cgi-bin/texfaq2html}},
+ title = {{UK} List of {\TeX} Frequently Asked Questions},
+ year = {2006},
+}
+
+@manual{NbaskervFont,
+ author = {Boris Veytsman},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/fonts/psfonts/adobe/nbaskerv}},
+ title = {{\LaTeX} Support For New Baskerville Fonts From
+ Adobe},
+ year = {2008},
+}
+
+@manual{FuturansFont,
+ author = {Boris Veytsman},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/fonts/psfonts/adobe/futurans}},
+ title = {{\LaTeX} Support For Futura Fonts From Adobe As Used
+ By No Starch Press},
+ year = {2008},
+}
+
+@manual{DogmaFont,
+ author = {Boris Veytsman},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/fonts/psfonts/emigre/dogma}},
+ title = {{\LaTeX} Support For Dogma Fonts From Emigre
+ Graphics},
+ year = {2008},
+}
+
+@manual{ThsmcFont,
+ author = {Boris Veytsman},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/fonts/psfonts/fontfabrik/thsmc}},
+ title = {{\LaTeX} Support For The Sans Mono Condensed Fonts},
+ year = {2008},
+}
+
+@manual{Oberdiek06:Ifpdf,
+ author = {Heiko Oberdiek},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/oberdiek}},
+ title = {The \textsf{ifpdf} Package},
+ year = {2006},
+}
+
+@manual{Oostrum04:Fancyhdr,
+ author = {van Oostrum, Piet},
+ month = {March},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/fancyhdr}},
+ title = {Page Layout in \LaTeX},
+ year = {2004},
+}
+
+@manual{Fear05:Booktabs,
+ author = {Simon Fear},
+ month = {April},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/booktabs}},
+ title = {Publication Quality Tables in {\LaTeX}},
+ year = {2005},
+}
+
+@manual{Carlisle05:Graphics,
+ author = {D. P. Carlisle},
+ month = {November},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/required/graphics}},
+ title = {Packages in the `Graphics' Bundle},
+ year = {2005},
+}
+
+@manual{Sommerfeldt07:Caption,
+ author = {Axel Sommerfeldt},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/caption}},
+ title = {Typesetting Captions with the \textsf{caption}
+ Package},
+ year = {2007},
+}
+
+@manual{VanZandt98:Fancyvrb,
+ author = {Van Zandt, Timothy},
+ editor = {Denis Girou},
+ month = {July},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/fancyvrb}},
+ title = {The \textsf{`fancyvrb'} Package. Fancy Verbatims in
+ {\LaTeX}},
+ year = {1998},
+}
+
+@manual{Schroeder03:Ragged2e,
+ author = {Martin Schr\"oder},
+ month = {March},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/ms}},
+ title = {The \textsf{ragged2e} Package},
+ year = {2003},
+}
+
+@manual{Rahtz06:Hyperref,
+ author = {Sebastian Rahtz and Heiko Oberdiek},
+ month = {September},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/hyperref}},
+ title = {Hypertext Marks in \LaTeX: a Manual for Hyperref},
+ year = {2006},
+}
+
+@book{Lamport94,
+ address = {Reading, Ma.},
+ author = {Leslie Lamport},
+ edition = {2},
+ note = {Illustrations by Duane Bibby},
+ publisher = {Addison-Wesley Publishing Company},
+ title = {{\LaTeX}: a Document Preparation System},
+ year = {1994},
+}
+
+@manual{Daly07:Natbib,
+ author = {Patrick W. Daly},
+ month = {February},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/natbib}},
+ title = {Natural Sciences Citations and References
+ (Author-Year and Numerical Schemes)},
+ year = {2007},
+}
+
+@manual{Wilson04:Memoir,
+ author = {Peter Wilson},
+ month = {January},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/contrib/memoir}},
+ title = {The Memoir Class for Configurable Typesetting},
+ year = {2004},
+}
+
+@manual{classes,
+ author = {Leslie Lamport and Frank Mittelbach and
+ Johannes Braams},
+ note =
+ {\url{http://ctan.tug.org/tex-archive/macros/latex/base}},
+ title = {Standard Document Classes for {\LaTeX{}} version 2e},
+ year = {1997},
+}
+
diff --git a/Master/texmf-dist/doc/latex/nostarch/100euroie.png b/Master/texmf-dist/doc/latex/nostarch/100euroie.png
new file mode 100644
index 00000000000..212e796a04c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/100euroie.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/100euroit.png b/Master/texmf-dist/doc/latex/nostarch/100euroit.png
new file mode 100644
index 00000000000..0090323b29c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/100euroit.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/1eurogr.jpg b/Master/texmf-dist/doc/latex/nostarch/1eurogr.jpg
new file mode 100644
index 00000000000..0099d15cdbc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/1eurogr.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/README b/Master/texmf-dist/doc/latex/nostarch/README
new file mode 100644
index 00000000000..fdecf967329
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/README
@@ -0,0 +1,9 @@
+ LaTeX Style For No Starch Press
+ Version 1.0 2008/04/07
+
+This is the ``official'' LaTeX style for No Starch Press,
+http://www.nostarch.com. The class is intended to typeset books for
+this publisher---both hard copies and electronic books.
+
+The suite provides main class, nostarch.cls, hyperref interface
+nshyper.sty and MakeIndex style nostarch.ist.
diff --git a/Master/texmf-dist/doc/latex/nostarch/nostarch.pdf b/Master/texmf-dist/doc/latex/nostarch/nostarch.pdf
new file mode 100644
index 00000000000..d75235ac2ac
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/nostarch.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/nssample.pdf b/Master/texmf-dist/doc/latex/nostarch/nssample.pdf
new file mode 100644
index 00000000000..0675c5557b4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/nssample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/nssample.tex b/Master/texmf-dist/doc/latex/nostarch/nssample.tex
new file mode 100644
index 00000000000..33a4d14a95e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/nssample.tex
@@ -0,0 +1,394 @@
+\documentclass[cfonts]{nostarch}
+\usepackage{lipsum}
+\hyphenation{ve-sti-bu-lum sene-c-tus rut-rum con-sec-te-tu-er
+ elei-fend no-num-my li-be-ro}
+\usepackage{natbib}
+\usepackage{nshyper}
+\makeindex
+\begin{document}
+
+
+\frontmatter
+
+\author{A.~U.~Thor, C.~O.~R.~Respondent and W.~R.~Iter}
+
+\title{Pellentesque habitant morbi}
+
+\subtitle{Cum sociis natoque penatibus}
+
+\nostarchlogo{vitruvian.jpg}
+
+\makehalftitle
+
+\maketitle
+
+
+\begin{copyrightpage}
+ \textbf{\sffamily\MakeUppercase{Pellentesque habitant morbi.}}
+ Copyright \textcopyright{} 2008 by A.~U.~Thor, C.~O.~R.~Respondent
+ and W.~R.~Iter
+
+ No rights reserved. Any part of this work may be reproduced or
+ transmitted in any form or by any means, electronic or mechanical,
+ including photocopying, recording, or by any information storage or
+ retrieval system, without the prior written permission of the
+ copyright owner and the publisher.
+
+ \raisebox{-8pt}{\includegraphics[height=20pt]{recycled}} Typeset
+ with recycled electrons in the United States of America
+
+11 10 09 08 07 \hspace{0.5in} 123456789\\
+ISBN-10: 1-23456-789-0\\
+ISBN-13: 123-4-56789-012-3
+
+Publisher: P.~U.~Blisher\\
+Production Editor: E.~D.~Itor\\
+Cover and Interior Design: Calamari Studios\\
+Developmental Editor: D.~E.~Itor\\
+Technical Reviewer: R.~E.~Viewer\\
+Copyeditor: C.~O.~Editor\\
+Compositor: A.~U.~Thor\\
+Proofreader: P.~R.~\O freader\\
+Indexer: I.~N.~Dexer
+
+For information on book distributors or translations, please contact
+No Starch Press, Inc. directly: \\
+No Starch Press, Inc.\\
+555 De Haro Street, Suite 250, San Francisco, CA 94107\\
+phone: 415.863.9900; fax: 415.863.9950; info@nostarch.com; www.nostarch.com\\
+
+\begin{cipblock}
+Uthor, A. U. and Respondent, C. O. R. and Iter, W. R.
+ Pellentesque habitant morbi: Cum sociis natoque penatibus/
+ A. U. Thor, C. O. R. Respondent and W. R. Iter
+ p. cm.
+ Includes index.
+ ISBN-10: 1-23456-789-0
+ ISBN-13: 123-4-56789-012-3
+ 1. Morbi (habitant). 2. Penatibus. I. Title.
+XX2303.5.T324 2008
+\end{cipblock}
+
+No Starch Press and the No Starch Press logo are registered trademarks
+of No Starch Press, Inc. Other product and company names mentioned
+herein may be the trademarks of their respective owners. Rather than
+use a trademark symbol with every occurrence of a trademarked name, we
+are using the names only in an editorial fashion and to the benefit of
+the trademark owner, with no intention of infringement of the
+trademark.
+
+The information in this book is distributed on an ``As Is'' basis,
+without warranty. While every precaution has been taken in the
+preparation of this work, neither the author nor No Starch Press, Inc.
+shall have any liability to any person or entity with respect to any
+loss or damage caused or alleged to be caused directly or indirectly
+by the information contained in it.
+
+
+\end{copyrightpage}
+
+\begin{dedicationpage}
+ God of the golden bow,\\
+ And of the golden lyre,\\
+And of the golden hair,\\
+ And of the golden fire,\\
+ Charioteer\\
+ Of the patient year,\\
+ Where---where slept thine ire,\\
+When like a blank idiot I put on thy wreath,\\
+ Thy laurel, thy glory,\\
+ The light of thy story,\\
+Or was I a worm---too low crawling for death?\\
+ O Delphic Apollo!
+
+\bigskip
+\emph{John Keats}
+\index{Keats, John@\emph{Keats, John}}
+\index{gods!Greek!Apollo}
+\index{Apollo|see{gods, Greek}}
+\index{Greek gods|see{gods, Greek}}
+\end{dedicationpage}
+
+\brieftableofcontents
+
+\tableofcontents
+
+\chapter*[Foreword by R.~E.~Viewer]{Foreword}
+
+\lipsum[48-60]
+
+\bigskip
+
+\begin{raggedright}
+\bfseries
+R.~E.~Viewer\index{Viewer, R. E.@\emph{Viewer, R.~E.}}\\
+New York\index{USA!states!New York}\index{New York|see{USA, states}}\\
+December 2007
+\end{raggedright}
+
+\mainmatter
+\part{Mi aliquam dictum}
+
+\lipsum[77-78]
+
+\chapter[Morbi ac orci]{Morbi ac orci et nisl hendrerit
+ mollis}
+
+\chapterartfile{1eurogr}\index{euro, coin!Greece}\index{Greek euro|see{euro}}
+
+
+Fusce adipiscing justo nec ante. Nullam in enim. Pellentesque felis
+orci, sagittis ac, malesuada et, facilisis in, ligula\index{ligula}.
+Nunc\index{nunc} non magna sit amet mi aliquam dictum\index{dictum}.
+
+\section{Quisque aliquam ipsum sed turpis}
+
+\lipsum[1]
+
+Nam dui ligula\index{ligula}, \emph{fringilla a}, euismod sodales,
+sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus
+libero, pretium at, lobortis vitae\index{vita}, ultricies et, tellus.
+Donec \textbf{aliquet,} tortor sed accumsan bibendum, erat
+ligula\index{ligula} aliquet magna, vitae\index{vita} ornare odio
+metus a mi.
+
+Morbi ac orci et nisl hendrerit mollis. Proin tellus est, luctus
+vitae\index{vita}, molestie a, mattis et, mauris. Donec tempor. Pellentesque
+habitant morbi tristique senectus et netus et malesuada fames ac
+turpis egestas. Duis ante felis, dignissim id, blandit in, suscipit
+vel, dolor. Suspendisse ut massa. Cras nec ante\footnote{\lipsum[4]}.
+\texttt{{\itshape Pellentesque} a nulla.} Cum sociis natoque
+penatibus et magnis dis parturient montes, nascetur ridiculus mus.
+Aliquam tincidunt urna. Nulla ullamcorper vestibulum turpis.
+Pellentesque cursus luctus mauris\footnote{\lipsum[3]}.
+
+\lipsum[10]
+
+\section{Nunc\index{nunc} non magna sit amet mi aliquam dictum}
+
+\lipsum[32-33]
+
+\subsection{Nam sed augue}
+
+\lipsum[34-35]
+
+\subsubsection{Pellentesque tincidunt cursus felis}
+
+\lipsum[36-38]
+
+
+\chapter{Proin vel urna}
+
+\chapterartfile{100euroit}\index{euro, coin!Italy}\index{Italian
+ euro|see{euro}}
+
+Aenean imperdiet\footnote{Quisque aliquam ipsum sed turpis\index{turpis}}.
+Vestibulum ante ipsum pri\-m\-is in faucibus orci luctus et ultrices
+posuere cubilia Curae; Donec lacinia nonummy lectus. Proin vel urna.
+Fusce sit amet orci ac magna iaculis pharetra.
+
+Fusce adipiscing justo nec ante. Nullam in enim. Pellentesque felis
+orci, sagittis ac, malesuada et, facilisis in, ligula\index{ligula}.
+Nunc\index{nunc} non magna sit amet mi aliquam dictum. In mi.
+Curabitur sollicitudin justo sed quam. Aenean imperdiet.
+\begin{enumerate}
+\item Aenean adipiscing auctor est.
+\item Morbi quam arcu, malesuada sed, volutpat et, elementum sit
+ amet, libero. Duis accumsan.
+\item Curabitur urna.
+\item In sed ipsum.
+\end{enumerate}
+
+Maecenas enim\index{enim!Maecenas}. Proin quis neque nec tortor
+sollicitudin volutpat. Sed at ante. Sed vitae\index{vita} mauris non
+ante egestas hendrerit. Cum sociis natoque penatibus et magnis dis
+parturient montes, nascetur ridiculus mus. In
+venenatis\index{venenatis} facilisis magna\index{magna}. Phasellus
+purus. Cras quis mauris. Aliquam eget magna. Donec rutrum sagittis
+mi. Morbi elementum, est sit amet sollicitudin feugiat, orci magna
+semper risus, eu congue nulla metus vel elit. Nunc\index{nunc} tempor
+ornare mi. Integer justo odio, suscipit tincidunt, fermentum eu,
+tincidunt\index{tincida} et, libero. Vestibulum vestibulum, urna et
+suscipit imperdiet, nulla ante fermentum erat, at laoreet lorem lectus
+sed metus. Fusce ante sem, posuere in, vehicula a, posuere sed, ante.
+Phasellus magna. Maecenas sit amet diam. Nunc\index{nunc} at nibh
+sit amet augue tristique gravida.\index{ante}
+\begin{itemize}
+\item Donec lobortis nibh.
+\item Duis mattis.
+\item Sed cursus lectus quis odio.
+\item Phasellus arcu.
+\item Praesent imperdiet dui in sapien\index{sapien}.
+\item Vestibulum tellus pede, auctor a, pellentesque sit amet, vulputate sed,
+ purus.
+\item Nunc\index{nunc} pulvinar, dui at eleifend adipiscing, tellus
+ nulla placerat massa, sed condimentum nulla tellus sed
+ ligula\index{ligula}. Nulla vitae\index{vita} odio sit amet leo
+ imperdiet blandit. In vel massa. Maecenas varius dui at turpis. Sed
+ odio.
+\end{itemize}
+
+\begin{figure}[tp]
+ \includegraphics[width=3in]{vitruvian}
+ \index{Da Vinci, Leonardo@\emph{Da Vinci, Leonardo}}
+ \index{Leonardo Da Vinci@\emph{Leonardo Da Vinci}|see{Da Vinci,
+ Leonardo}}
+ \index{Vitruvian Man}
+ \caption{Pellentesque laoreet velit nec justo}
+ \label{fig:one}
+\end{figure}
+
+
+\section{Donec vel augue}
+
+
+Donec\index{donec|(} vel augue. Morbi a turpis sed libero consequat
+porta. Quisque lacinia consequat odio. Sed vehicula sollicitudin
+purus. Vestibulum eget est. In hac habitasse platea dictumst. Sed
+blandit, tortor a auctor imperdiet, wisi nibh ornare leo, ac dictum
+nibh enim eu orci. Pellentesque habitant morbi tristique senectus et
+netus et malesuada fames ac turpis egestas. Aliquam tincidunt
+ullamcorper justo. Etiam accumsan lacus nec ante. Ut dictum luctus
+mauris. Ut metus. Maecenas gravida. Proin iaculis. Integer convallis,
+justo iaculis ullamcorper sollicitudin, lectus neque tincidunt mi, at
+condimentum sem quam vel diam. Aenean sit amet purus.
+\begin{quote}
+ Nam quis ante. Nullam interdum quam in eros. Sed eleifend libero eu
+ tellus consequat fermentum. Nullam pellentesque risus ut augue.
+ Vestibulum eu tellus. Integer eleifend suscipit urna. Fusce
+ porttitor leo et odio. Vivamus vehicula justo a nisl. In rutrum,
+ purus ut dictum auctor, dolor velit accumsan dolor, eu convallis
+ augue dui ac lectus.
+\end{quote}
+
+Vestibulum at lectus. Vestibulum dapibus placerat magna. Suspendisse
+dolor urna, condimentum sit amet, euismod a, adipiscing a, enim.
+Aliquam erat volutpat. Donec imperdiet dolor non mi. Phasellus magna
+metus, dictum sit amet, laoreet non, dictum vel, dui. Suspendisse
+potenti. Nunc\index{nunc} turpis risus, porta vel, pharetra id,
+eleifend vitae\index{vita}, justo. Duis pulvinar dolor sit amet urna.
+Integer eu eros. Nulla facilisi. Duis dui. Nullam vitae\index{vita}
+quam. Morbi a nunc\index{nunc} in elit sodales euismod.
+Nunc\index{nunc} sed orci. Etiam malesuada metus vitae\index{vita}
+felis. Suspendisse imperdiet velit in tellus.
+\begin{quotation}
+\lipsum[40-41]
+\end{quotation}
+\lipsum[63-65]
+\begin{Code}[commandchars=\\\[\]]
+\textit[/* S.C. Johnson, B.W. Kernighan, The Programming Language B, 1972 */]
+main( ) {
+ extrn a, b, c;
+ putchar(a); putchar(b); putchar(c); putchar('!*n');
+ }
+ a 'hell';
+ b 'o, w';
+ c 'orld';
+\end{Code}
+\index{Johnson, S.~C.@\emph{Johnson, S.~C.}}
+\index{Kernigan, B.~W.@\emph{Kernigan, B.~W.}}
+\index{B|see{programming languages}}
+\index{programming languages!B}
+\index{operators!putchar@\texttt{putchar}}
+\index{putchar@\texttt{putchar}|see{operators}}
+\index{operators!extrn@\texttt{extrn}}
+\index{extrn@\texttt{extrn}|see{operators}}
+\index{functions!main@\texttt{main}}
+\index{main@\texttt{main}|see{functions}}
+\index{()@\texttt{( )} (parentheses)}
+\index{{}@\texttt{\{ \}} (braces)}
+\index{/*@\texttt{/*} (comment start)}
+\index{*/@\texttt{*/} (comment end)}
+\index{;@\texttt{;} (semicolon)}
+
+Integer posuere, metus ac rhoncus auctor, mi tellus scelerisque
+nunc\index{nunc}, venenatis elementum tortor lorem eu erat.
+\begin{description}
+\item[Sed:] consectetuer risus vitae\index{vita} orci. Nullam tortor
+ mauris, interdum at, imperdiet in, convallis eget, massa.
+\item[Aliquam:] suscipit, magna nec blandit volutpat, lectus neque
+ suscipit nunc\index{nunc}, sit amet cursus nisl erat eget risus.
+ Vestibulum leo lectus, accumsan ut, pharetra vel, elementum sed,
+ quam. Maecenas condimentum orci at enim. Maecenas ut
+ nunc\index{nunc}. Vivamus pede. Integer vel purus vel mi mollis
+ vestibulum. Sed laoreet ultricies nibh. Suspendisse non nisl quis
+ ligula\index{ligula} fermentum facilisis.
+\end{description}
+\lipsum[37]
+
+
+\begin{table}[tp]
+ \caption[Sed blandit, tortor a auctor]{Sed blandit, tortor a auctor
+ imperdiet, wisi nibh\\ ornare leo,
+ ac dictum nibh enim eu orci}
+ \tbfont
+ \begin{tabular}{@{}lll}
+ \toprule\let\normalfont=\bfseries%
+ \thfont Phasellus & \thfont At Dui & \thfont Donec Commodo \\
+ \midrule
+ Augue At Nunc & Nunc In sapien & Et magna mollis \\
+ Sagittis & Morbi eu elit & Phasellus lacus\\
+ Donec a quam & Etiam pulvinar sapien & Sed nibh magna\\
+ \bottomrule
+ \end{tabular}
+\label{tab:one}
+\end{table}
+
+\lipsum[60]
+
+Curabitur hendrerit. Morbi fringilla enim quis nunc\index{nunc}.
+Phasellus at dui. Curabitur fringilla dui a odio. Nunc\index{nunc}
+semper condimentum arcu.
+\begin{note}
+ Donec commodo augue at nunc\index{nunc}. Nunc\index{nunc} in
+ sapien\index{sapien} et magna mollis sagittis. Morbi eu elit.
+ Phasellus lacus. Donec a quam. Etiam pulvinar sapien\index{sapien}.
+ Sed nibh magna, viverra vitae\index{vita}, auctor eget, eleifend
+ nec, lorem.
+\end{note}
+Curabitur vitae\index{vita} lectus sit amet turpis pretium
+condimentum. Nullam imperdiet mattis neque. Proin eget magna porta
+erat rhoncus consectetuer. Aenean pulvinar erat vitae\index{vita} mi.
+\index{donec|)}
+
+\section{Proin eget magna porta erat rhoncus consectetuer}
+
+\lipsum[123-124]
+
+\part{Curabitur vitae}\index{vita|(}
+
+\chapter[Curabitur vitae lectus]{Curabitur vitae lectus sit amet
+ turpis pretium condimentum}
+
+\chapterart{\includegraphics[width=1.264in]{100euroie}}
+\index{euro, coin!Ireland}\index{Irish euro|see{euro}}
+
+
+
+\lipsum[43-48]
+
+\section{Sed blandit, tortor a auctor imperdiet, wisi nibh ornare leo,
+ ac dictum nibh enim eu orci}
+
+\lipsum[94-98]
+\index{vita|)}
+
+\backmatter
+
+\nocite{*}
+\bibliographystyle{plainnat}
+\bibliography{nostarch}
+
+\printindex
+
+\updatespage
+
+Visit \url{http://borisv.lk.net/latex.html} for updates, errata, and
+other information.
+
+
+\colophon
+
+The book was produced as an example of the package \texttt{nostarch}.
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/nostarch/recycled.png b/Master/texmf-dist/doc/latex/nostarch/recycled.png
new file mode 100644
index 00000000000..8a7451a0fd6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/recycled.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nostarch/vitruvian.jpg b/Master/texmf-dist/doc/latex/nostarch/vitruvian.jpg
new file mode 100644
index 00000000000..406573b7d0e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/nostarch/vitruvian.jpg
Binary files differ
diff --git a/Master/texmf-dist/makeindex/nostarch/nostarch.ist b/Master/texmf-dist/makeindex/nostarch/nostarch.ist
new file mode 100644
index 00000000000..909d7450147
--- /dev/null
+++ b/Master/texmf-dist/makeindex/nostarch/nostarch.ist
@@ -0,0 +1,46 @@
+%%
+%% This is file `nostarch.ist',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nostarch.dtx (with options: `ist')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from nostarch.ist.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file nostarch.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% \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
+%% Lower-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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+lethead_prefix "\\indexgroup{"
+lethead_suffix "}\\nopagebreak\n"
+lethead_flag 1
+heading_prefix "\\indexgroup{"
+heading_suffix "}\\nopagebreak\n"
+headings_flag 1
+\endinput
+%%
+%% End of file `nostarch.ist'.
diff --git a/Master/texmf-dist/source/latex/nostarch/Makefile b/Master/texmf-dist/source/latex/nostarch/Makefile
new file mode 100644
index 00000000000..e0f6ff95003
--- /dev/null
+++ b/Master/texmf-dist/source/latex/nostarch/Makefile
@@ -0,0 +1,65 @@
+#
+# Makefile for nostarch package
+#
+# This file is in public domain
+#
+# $Id: Makefile,v 1.5 2008-04-04 19:37:03 boris Exp $
+#
+
+PACKAGE=nostarch
+
+SAMPLES = nssample.tex
+
+
+PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf}
+
+all: ${PDF}
+
+
+%.pdf: %.dtx $(PACKAGE).cls
+ pdflatex $<
+ - bibtex $*
+ pdflatex $<
+ - makeindex -s gind.ist -o $*.ind $*.idx
+ - makeindex -s gglo.ist -o $*.gls $*.glo
+ pdflatex $<
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
+ do pdflatex $<; done
+
+
+%.cls: %.ins %.dtx
+ pdflatex $<
+
+%.pdf: %.tex $(PACKAGE).cls
+ pdflatex $<
+ - bibtex $*
+ - makeindex -s $(PACKAGE).ist -o $*.ind $*.idx
+ pdflatex $<
+ pdflatex $<
+ - makeindex -s $(PACKAGE).ist -o $*.ind $*.idx
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
+ do pdflatex $<; done
+
+
+
+.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls
+
+
+clean:
+ $(RM) $(PACKAGE).cls *.log *.aux \
+ *.glo *.idx *.toc *.tbc \
+ *.ilg *.ind *.out *.lof \
+ *.lot *.bbl *.blg *.gls *.sty *.ist \
+ *.dvi *.ps *.thm *.tgz *.zip
+
+distclean: clean
+ $(RM) $(PDF)
+
+#
+# Archive for the distribution. Includes typeset documentation
+#
+archive: all clean
+ tar -czvf $(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS .
+
+zip: all clean
+ zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*' \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/nostarch/nostarch.dtx b/Master/texmf-dist/source/latex/nostarch/nostarch.dtx
new file mode 100644
index 00000000000..2abef5b8f32
--- /dev/null
+++ b/Master/texmf-dist/source/latex/nostarch/nostarch.dtx
@@ -0,0 +1,2260 @@
+% \iffalse
+% $Id: nostarch.dtx,v 1.41 2008-04-07 22:02:22 boris Exp $
+%
+% Copyright 2008, Boris Veytsman
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any
+% later version.
+% The latest version of the license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Boris Veytsman,
+% <borisv@lk.net>
+%
+% This work consists of the file nostarch.dtx and the
+% derived file nostarch.cls
+%
+% \fi
+% \CheckSum{1622}
+%
+%
+%% \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
+%% Lower-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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%
+%\iffalse
+% Taken from xkeyval.dtx
+%\fi
+%\makeatletter
+%\def\DescribeOption#1{\leavevmode\@bsphack
+% \marginpar{\raggedleft\PrintDescribeOption{#1}}%
+% \SpecialOptionIndex{#1}\@esphack\ignorespaces}
+%\def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
+%\def\SpecialOptionIndex#1{\@bsphack
+% \index{#1\actualchar{\protect\ttfamily#1}
+% (option)\encapchar usage}%
+% \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
+% usage}\@esphack}
+%\def\DescribeOptions#1{\leavevmode\@bsphack
+% \marginpar{\raggedleft\strut\emph{options}%
+% \@for\@tempa:=#1\do{%
+% \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
+% }}\@esphack\ignorespaces}
+%\makeatother
+%
+% \MakeShortVerb{|}
+% \GetFileInfo{nostarch.dtx}
+% \newcommand{\progname}[1]{\textsf{#1}}
+% \title{\LaTeX{} Style For \emph{No Starch Press}
+% \thanks{\copyright 2008, Boris Veytsman}}
+% \author{Boris Veytsman\thanks{%
+% \href{mailto:borisv@lk.net}{\texttt{borisv@lk.net}},
+% \href{mailto:boris@varphi.com}{\texttt{boris@varphi.com}}}}
+% \date{\filedate, \fileversion}
+% \maketitle
+% \begin{abstract}
+% This package provides class for typesetting books for No Starch
+% Press, \url{http://www.nostarch.com}
+% \end{abstract}
+% \tableofcontents
+%
+% \clearpage
+%
+% \changes{v0.1}{2008/02/27}{First fully functional version}
+% \changes{v0.5}{2008/03/19}{Documentation update}
+% \changes{v0.6}{2008/03/21}{Documentation update}
+% \changes{v1.0}{2008/04/07}{First public release}
+%
+%
+%\section{Introduction}
+%\label{sec:intro}
+%
+% This is the ``official'' \LaTeX{} style for \emph{No Starch Press,}
+% \url{http://www.nostarch.com}. The class is intended to typeset
+% books for this publisher---both hard copies and electronic books.
+%
+% The suite provides main class, |nostarch.cls|, hyperref interface
+% |nshyper.sty| and MakeIndex style |nostarch.ist|.
+%
+%\section{User's Guide}
+%\label{sec:manual}
+%
+%
+%\subsection{Installation}
+%\label{sec:installation}
+%
+% The installation of the class follows the usual
+% practice~\cite{TeXFAQ} for \LaTeX{} packages:
+% \begin{enumerate}
+% \item Run \progname{latex} on |nostarch.ins|. This will produce the
+% following files:
+% \LaTeX{} class |nostarch.cls|, \LaTeX{} style |nshyper.sty| and
+% MakeIndex style |nostarch.ist|.
+% \item Put the files |nostarch.cls|, |nshypher.sty| and
+% |nostarch.ist| to
+% the places where \LaTeX{} and MakeIndex can find them (see
+% \cite{TeXFAQ} or the documentation for your \TeX{}
+% system).\label{item:install}
+% \item Update the database of file names. Again, see \cite{TeXFAQ}
+% or the documentation for your \TeX{} system for the system-specific
+% details.\label{item:update}
+% \item The file |nostarch.pdf| provides the documentation for the
+% package (this is the file you are probably reading now).
+% \end{enumerate}
+% As an alternative to items~\ref{item:install} and~\ref{item:update}
+% you can just put the files in the working directory where your
+% |.tex| file is.
+%
+% To typeset the books in the distinctive \emph{No Starch Press} style
+% you will need the fonts used by them. Unfortunately these fonts
+% (New Baskerville, Futura, The Sans Mono Condensed and Dogma) are not
+% free. You may buy them from the vendor or license from the
+% publisher to typeset your book. Please contact \emph{No Starch
+% Press} directly for the arrangements.
+%
+% The class uses some other \LaTeX{} classes or packages. Most
+% probably, some of them they are already installed on your system.
+% If not (or if their versions are very old), you need to download and
+% install them. Here is the list:
+% \begin{enumerate}
+% \item Font support packages \progname{nbaskerv}~\cite{NbaskervFont},
+% \progname{futurans}~\cite{FuturansFont},
+% \progname{dogma}~\cite{DogmaFont} and
+% \progname{thsmc}~\cite{ThsmcFont}.
+% \item \progname{ifpdf} package~\cite{Oberdiek06:Ifpdf}.
+% \item \progname{fancyhdr} package~\cite{Oostrum04:Fancyhdr}.
+% \item \progname{booktabs} package~\cite{Fear05:Booktabs}.
+% \item \progname{graphics} package~\cite{Carlisle05:Graphics}.
+% \item \progname{caption} package~\cite{Sommerfeldt07:Caption}.
+% \item \progname{fancyvrb} package~\cite{VanZandt98:Fancyvrb}.
+% \item \progname{ragged2e} package~\cite{Schroeder03:Ragged2e}.
+% \end{enumerate}
+% These packages are called internally by |nostarch.cls|; you do not
+% need to explicitly call them from your document.
+%
+%
+%
+%
+%
+%\subsection{Invocation}
+%\label{sec:invocation}
+%
+% To use the class, put in the preamble of your document
+% \begin{flushleft}
+% |\documentclass[|\meta{options}|]{nostarch}|
+% \end{flushleft}
+%
+% \DescribeOptions{cfonts,nocfonts}
+% As discussed above, \emph{No Starch Press} uses a number of
+% commercial fonts to typeset their books.
+% The option |cfonts| (default) tells \LaTeX{} that you do have these
+% commercial fonts. On the other hand, the option |nocfonts| instructs
+% \LaTeX{}
+% to use freely available fonts for typesetting. Of course in this
+% case the result will not look like a \emph{No Starch Press} Book.
+%
+%
+% \DescribeOptions{8pt,9pt,10pt,11pt,12pt}
+% The fontsize changing options (|8pt|, |9pt|, \dots, |12pt|) have no
+% effect other than producing a warning in the log.
+%
+%
+%
+% \emph{No Starch Press} uses a special paper size. If you process the
+% manuscript with \progname{pdflatex} to produce PDF output, the paper
+% dimensions will be automatically set up by the class. However, if
+% you use \progname{latex} and \progname{dvips}, you need to tell
+% \progname{dvips} what paper size to choose. One way to do this is
+% to add to the \progname{dvips} options the following:
+% \begin{verbatim}
+% -T 7in,9.25in
+% \end{verbatim}
+%
+%\subsection{Use of \progname{hyperref} Package}
+%\label{sec:guide:hyperref}
+%
+% The books typeset by \emph{No Starch Press} can be sold either as
+% traditional printed and bound hard copies, or as PDF files. If you,
+% the author, envisage the second possibility, you may want additional
+% possibilites provided by \progname{hyperref}
+% package~\cite{Rahtz06:Hyperref}, like ``clickable'' entries in the
+% table of context and index, etc. The provided package |nshyper.sty|
+% adds the functionality of \progname{hyperref} to the class. This
+% package is highly recommended for the books that are going to be
+% distributed in an electronic form.
+%
+% To use the package, just add the line |\uspackage{nshyper}| to your
+% preamble. This package should be loaded last since it redefines
+% internals of many other packages. Note that a direct call of
+% \progname{hyperref} by |\usepackage{hyperref}| will not work since
+% \progname{nshyper} patches hyperref to work with our class.
+%
+%
+%
+%\subsection{Front Matter}
+%\label{sec:guide:frontmatter}
+%
+% \DescribeMacro{\frontmatter}
+% A book can be divided into three parts: front matter, main matter
+% and back matter. Front matter starts with the command
+% |\frontmatter|. Normally this is the first command in the class.
+% Front matter contains half page, title page, copyright page, brief
+% contents, detailed contents, foreword(s) and other stuff which is
+% traditionally typeset on roman-numbered pages. The commands in main
+% matter can be divides into \emph{declarations} and
+% \emph{directives.} Declarations do not typeset anything. Rather,
+% they up parameters for the typesetting. Directives use them to
+% typeset the stuff.
+%
+%
+%\subsubsection{Front Matter Declarations}
+%\label{sec:guide:decls}
+%
+%
+%
+% \DescribeMacro{\title}
+% There are five declarations defined by |nostarch.cls|: |\title|,
+% |\subtitle|,
+% |\author|, |\nostarchlogo| and |\nostarchlocation|. The macro
+% |\title|, like the standard \LaTeX{} |\title|, sets the title of the
+% book, for example |\title|\texttt{\{The book about everything\}}.
+%
+% \DescribeMacro{\subtitle}
+% The macro |\subtitle| takes one argument and sets up the subtitle of
+% your book, for example |\subtitle|\texttt{\{A Guide For
+% Perplexed\}}.
+%
+% \DescribeMacro{\author}
+% The command |\author| has just one argument, which is the list of
+% authors, separated by commas and (for the last author) the word
+% ``and''. Do not use the command |\and| defined in the standard
+% \LaTeX. For example,
+% |\author|\texttt{\{Ralph Alpher, Hans Bethe and George Gamow\}}.
+%
+% \DescribeMacro{\nostarchlogo}
+% Due to copyright reasons the logo of \emph{No Starch Press} is not
+% distribuded with the package. You should get the logo as a graphics
+% file from the publishers and put in the directory where \LaTeX{} can
+% find it (for example, the directory with the other sources of your
+% book). The command |\nostarchlogo| has one argument: the name of
+% the file, for example, |\nostarchlogo{biglogo.pdf}|.
+% The file will be automatically scaled to the proper size.
+%
+% \DescribeMacro{\nostarchlocation}
+% \emph{No Starch Press} books are usually published in San
+% Francisco. If you need to change this setting, use
+% |\nostarchlocation| declaration, for example,
+% |\nostarchlocation|\texttt{\{San Francisco; London; Tokyo\}}.
+%
+%
+%
+%\subsubsection{Front Matter Directives}
+%\label{sec:guide:directives}
+%
+%
+%
+% \DescribeMacro{\makehalftitle}
+% The command |\makehalftitle| creates \emph{half title page.}
+% This is normally the first page of the book.
+%
+% \DescribeMacro{\maketitle}
+% The command |\maketitle| creates \emph{title page.} It uses logo
+% and full title of the book.
+%
+% \DescribeMacro{copyrightpage}
+% The copyright page is the \emph{verso} of the title page. It has
+% information about copyright, edition history, the credits of the
+% people who helped you to make the book, CIP information, etc. The
+% exact contents of the copyright page differ from book to book.
+% Therefore the class does not try to create this page automatically,
+% and rather sets up the typographic style for arbitrary contents.
+% For this purpose the environment |copyrigthtpage| is used. So just
+% put the information provided by the publisher between
+% |\begin{copyrightpage}| and |\end{copyrightpage}|. Use
+% |\textbf{\sffamily title}| for the title of the book on the
+% copyright line.
+%
+% \DescribeMacro{cipblock}
+% One of important parts of the copyright page is \emph{CIP block.}
+% It contains catalogue data for your book (CIP means Cataloguing in
+% Publication, by the way). Again, the contents of this field will be
+% provied by the publishers; you just need to put them inside
+% |cipblock| environment, i.e. between |\begin{cipblock}| and
+% |\end{cipblock}|. To make your life easier, this block is typeset
+% verbatim, so line ends and spaces are typeset as is.
+%
+%
+% \DescribeMacro{dedicationpage}
+% Dedications, if any, are included in the special dedication page,
+% for which a special environment |dedicationpage| is provided.
+%
+% \DescribeMacro{\brieftableofcontents}
+% \DescribeMacro{\tableofcontents}
+% The standard \LaTeX{} provides just one table of contents. This
+% class uses two tables: brief contents and contents in detail. They
+% are correspondingly typeset by the commands |\brieftableofcontents|
+% and |\tableofcontents|.
+%
+%
+% Forewords and similar front matter materials are unnumbered
+% chapters: |\chapter*[Foreword by R. E.~Viewer]{Foreword}|.
+%
+%
+% Front matter with its formal parts like copyright page, CIP
+% information, etc., can be daunting, especially for novice authors.
+% Feel free to use the sample enclosed and ask the publisher for
+% advice.
+%
+%\subsection{Main Matter}
+%\label{sec:guide:mainmatter}
+%
+% \DescribeMacro{\mainmatter}
+% The command |\mainmatter| finishes the front matter and starts the
+% main matter of the book. The main matter is divided into chapters,
+% sections, subsections, etc. They are discussed below.
+%
+%
+%\subsubsection{Parts, Chapters and Sections}
+%\label{sec:guide:sections}
+%
+% \DescribeMacro{\chapter}
+% \DescribeMacro{\section}
+% \DescribeMacro{\subsection}
+% \DescribeMacro{\subsubsection}
+% \emph{No Starch Press} books have chapters, sections, subsections and
+% subsubsections. The chapters are usually numbered, but sections ande
+% below are not. The commands for them are the same as in the
+% standard \LaTeX: |\chapter|\oarg{short title}\marg{long title},
+% |\section|\oarg{short title}\marg{long title}, etc. For
+% example:
+% \begin{verbatim}
+% \section[Building Lego Fire Track]{How To Build A Lego Fire Track
+% And Why It Is Fun}
+% \end{verbatim}
+% The ``starred'' forms |\chapter*|, |\section*| etc. are used when
+% the corresponding division has no number (like unnumbered chapters in
+% the front matter). Since our sections, subsections and
+% subsusbsections are unnumbered anyway, this form has meaning only
+% for chapters (but can be used for other divisions as well).
+%
+% \DescribeMacro{\chapterart}
+% \DescribeMacro{\chapterartfile}
+% \emph{No Starch Press} books use ``circular art'' for chapter
+% openings (except for unnumbered chapters in the front matter). The
+% command |\chapterart| should be issued immediately
+% after |\chapter| command and before the first paragraph. Its
+% argument is the artwork used for the current chapter:
+% |\chapterart|\marg{\LaTeX{} commands}. In the
+% simplest case it is just inclusion of an external graphics file, for
+% example:
+% \begin{verbatim}
+% \chapterart{\includegraphics[width=1.264in]{firetrack.jpg}}
+% \end{verbatim}
+% Actually, this simplest case is so ubiquitous, that there is a
+% special command |\chapterartfile|\marg{filename} for it, so the
+% previous example can be simplified as
+% \begin{verbatim}
+% \chapterartfile{firetrack.jpg}
+% \end{verbatim}
+% However, you can use instead any \LaTeX{} commands to produce
+% the artwork. Rememer that it must be $1.264''\times1.222''$.
+%
+% The first paragraph after chapter start is typeset in larger size
+% font than the body font. If this paragraph is too long, you may
+% need to manually change the font size back in the middle of it. The
+% simplest way to do this is the combination
+% |\par\noindent\normalfont| in a strategic place.
+%
+%
+% \DescribeMacro{\part}
+% Sometimes larger books are separated into parts. The command
+% |\part|\marg{Title} is used to typeset parts.
+%
+%\subsubsection{Environments}
+%\label{sec:guide:lists}
+%
+%
+% \DescribeMacro{itemize}
+% \DescribeMacro{enumerate}
+% \DescribeMacro{description}
+% \DescribeMacro{note}
+% The class offers standard |itemize|, |enumerate| and |description|
+% environment. There is an environment specific for it: |note|. It
+% is intended for ``asides'':
+% \begin{verbatim}
+% \begin{note}
+% Do not forget to plug off the computer before doing any
+% modifications!
+% \end{note}
+% \end{verbatim}
+% The material in a |note| will be typeset in italics with bold
+% ``NOTE'' on the margin.
+%
+%
+%\subsubsection{Tables and Figures}
+%\label{sec:guide:floats}
+%
+% There are several things to keep in mind when using tables and
+% figures with the class.
+%
+% The tables and figures are not centered. Neither are their
+% captions. The captions for figures go \emph{below} the figures, the
+% captions for tables go \emph{above} the tabular data.
+%
+% If a caption for a table or figure turns out to be wider than the
+% body, you might want to split the caption into lines. Remember,
+% however, that the mandatory argument to |\caption| becomes
+% ``robust'' in the \LaTeX{} parlance~\cite{Lamport94} only when there
+% is the optional one. Therefore the correct way to split a caption
+% is the following:
+% \begin{verbatim}
+% \caption[A Long Caption With Lines To Split]{%
+% A Long Caption\\ With Lines To Split}
+% \end{verbatim}
+%
+% Typesetting tables, unfortunately, is rarely done right, and
+% standard \LaTeX{} is not an exception. The authors are urged to
+% read the introduction to \progname{booktabs}
+% package~\cite{Fear05:Booktabs}. To summarize,
+% \begin{enumerate}
+% \item Never ever use vertical rules.
+% \item Never ever use double rules.
+% \item Use only |\toprule|, |\midrule| and |\bottomrule| for tables.
+% \end{enumerate}
+% \DescribeMacro{\tbfont}
+% \DescribeMacro{\thfont}
+% \DescribeMacro{tabular}
+% \emph{No Starch Press} uses special fonts for table body and table
+% header. Since there are too many tabular-like environments
+% (|tabular|, |tabbing|, |longtable|, \dots) we do not redefine them
+% switch on these fonts automatically, but rather provide two font
+% switching commands. The command |\tbfont| should be used
+% \emph{before} tabular environment, and the command |\thfont| should
+% be used in all header cells. Also, usually the table entries are
+% flushed left, so you might want to put |@{}| before the first column
+% declaration in |\begin{tabular}| to suppress the padding on the
+% left. Here is an example of a properly
+% done table layout:
+% \begin{verbatim}
+% \begin{table}
+% \caption{Starch Content of Foods}
+% \label{tab:starch}
+% \tbfont
+% \begin{tabular}{@{}lr}
+% \toprule
+% \thfont Product & \thfont Starch Content, \% \\
+% \midrule
+% Bran (wheat) & 23.0\\
+% Brown rice (raw) & 80.0\\
+% Brown bread (average) & 41.3\\
+% White bread (average) & 46.7\\
+% \bottomrule
+% \end{tabular}
+% \end{table}
+% \end{verbatim}
+%
+%
+%
+%\subsubsection{Code Fragments}
+%\label{sec:guide:code}
+%
+% \DescribeMacro{Code}
+% The class uses \progname{fancyvrb}
+% package~\cite{VanZandt98:Fancyvrb}. Long code fragments should be
+% separated by rules; the class defines verbatim-like |Code|
+% environment, which does exactly this:
+% \begin{verbatim}
+% \begin{Code}
+% main() {
+% printf("Hello, World\n");
+% }
+% \end{Code}
+% \end{verbatim}
+% See the documentation of~\cite{VanZandt98:Fancyvrb} about many
+% features of this package.
+%
+%
+%
+%\subsection{Back Matter}
+%\label{sec:guide:backmatter}
+%
+% \DescribeMacro{\backmatter}
+% Back matter includes bibliography, index, update page, colophon and
+% other material. It starts with the command |\backmatter|.
+%
+%
+%
+%\subsubsection{Bibliography}
+%\label{sec:guide:bibliography}
+%
+% \emph{No Starch Press} at present has no special style for
+% bibliography, so the authors have a relative freedom to choose one.
+% However, it would be a good idea to use the \progname{natbib}
+% package~\cite{Daly07:Natbib}. This class should work with
+% \progname{natbib}.
+%
+% No support for per chapter bibliography lists is provided by the
+% package.
+%
+%
+%\subsubsection{Index}
+%\label{sec:guide:index}
+%
+% The books published by \emph{No Starch Press} usually have index.
+% This package provides special style file |nostarch.ist| for index
+% formatting.
+%
+%
+% \DescribeMacro{\makeindex}
+% \DescribeMacro{\printindex}
+% To create index:
+% \begin{enumerate}
+%
+% \item Put in the preamble of your
+% document the command |\makeindex|.
+% \item In the body of your document use |\index| commands as
+% described in~\cite{Lamport94}.
+% \item Put in the Back Matter the command |\printindex| at the place
+% you want the index to be printed.
+% \item After a \progname{latex} run \progname{makeindex} with the
+% style |nostarch.ist|. In a Unix system the corresponding command is
+% \begin{verbatim}
+% makeindex -s nostarch.ist mydocument
+% \end{verbatim}
+% or, in a more verbose way
+% \begin{verbatim}
+% makeindex -s nostarch.ist -o mydocument.ind mydocument.idx
+% \end{verbatim}
+% (here we assume that your main file is |mydocument.tex|).
+%
+% Refer to the documentation of your \TeX{} system for the way to run
+% \progname{makeindex} on your computer.
+% \end{enumerate}
+%
+%
+%\subsubsection{Updates and Colophon}
+%\label{sec:guide:updates}
+%
+% \DescribeMacro{\updatespage}
+% \emph{No Starch Press} books usually have updates page, which lists
+% the Web address for updates, errata, etc. The command
+% |\updatespage| starts such page. You are free to choose any text
+% there. Note that if you use the package
+% \progname{nshypher}~\ref{sec:guide:hyperref}, then the command
+% |\url|\marg{URL} becomes a hyperlink in the electronic edition.
+%
+%
+% \DescribeMacro{\colophon}
+% The last part of Back Matter is usually a \emph{colophon} which
+% describes how the book was printed and typeset. The command
+% |\colophon| starts this part and prints some standard information
+% about your fonts and \LaTeX{} package. You may want to add some
+% information after this command.
+%
+%
+% \StopEventually{%
+% \clearpage
+% \bibliography{nostarch}
+% \bibliographystyle{unsrt}}
+%
+% \clearpage
+%
+%
+%\section{Implementation}
+%\label{sec:impl}
+%
+%\subsection{Identification}
+%\label{sec:ident}
+%
+% We start with the declaration who we are. Most |.dtx| files put
+% driver code in a separate driver file |.drv|. We roll this code into the
+% main file, and use the pseudo-guard |<gobble>| for it.
+% \begin{macrocode}
+%<class>\NeedsTeXFormat{LaTeX2e}
+%<*gobble>
+\ProvidesFile{nostarch.dtx}
+%</gobble>
+%<class>\ProvidesClass{nostarch}
+%<nshyper>\ProvidesPackage{nshyper}
+%<*!ist>
+[2008/04/07 v1.0 Typesetting books for No Starch Press]
+%</!ist>
+% \end{macrocode}
+%
+% And the driver code:
+% \begin{macrocode}
+%<*gobble>
+\documentclass{ltxdoc}
+\usepackage{array}
+\usepackage{url,amsfonts}
+\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,
+ pagecolor=black,urlcolor=black,hyperindex=false]{hyperref}
+\PageIndex
+\CodelineIndex
+\RecordChanges
+\EnableCrossrefs
+\begin{document}
+ \DocInput{nostarch.dtx}
+\end{document}
+%</gobble>
+%<*class>
+% \end{macrocode}
+%
+%
+%\subsection{Options}
+%\label{sec:options}
+%
+%
+% First, let us decide whether we have non-free fonts:
+% \begin{macrocode}
+\newif\ifnostarch@cfonts
+\nostarch@cfontstrue
+\DeclareOption{cfonts}{\nostarch@cfontstrue}
+\DeclareOption{nocfonts}{\nostarch@cfontsfalse}
+% \end{macrocode}
+%
+% The size-changing options produce a warning:
+% \begin{macrocode}
+\long\def\nostarch@size@warning#1{%
+ \ClassWarning{nostarch}{Size-changing option #1 will not be
+ honored}}%
+\DeclareOption{8pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{9pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{10pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{11pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{12pt}{\nostarch@size@warning{\CurrentOption}}%
+% \end{macrocode}
+%
+%
+%
+% All other options are passed to \progname{book}:
+% \begin{macrocode}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
+% \end{macrocode}
+%
+% Now we read the configuration file
+% \begin{macrocode}
+\InputIfFileExists{nostarch.cfg}{%
+ \ClassInfo{nostarch}{%
+ Loading configuration file nostarch.cfg}}{%
+ \ClassInfo{nostarch}{%
+ Configuration file nostarch.cfg is not found}}
+% \end{macrocode}
+% And process the options:
+% \begin{macrocode}
+\ProcessOptions\relax
+% \end{macrocode}
+%
+%
+%
+%
+%
+%\subsection{Loading Class and Packages}
+%\label{sec:loading}
+%
+% We start with the base class
+% \begin{macrocode}
+\LoadClass[10pt]{book}
+% \end{macrocode}
+%
+% A bunch of packages:
+% \begin{macrocode}
+\RequirePackage{ifpdf, fancyhdr, fancyvrb, booktabs, graphicx,
+ caption, makeidx}
+% \end{macrocode}
+%
+% We do not want the option |document| with \progname{ragged2e}: this
+% calls \progname{footmisc}, while we want our own footnotes:
+% \begin{macrocode}
+\RequirePackage{ragged2e}
+\setlength\RaggedRightParindent{\parindent}
+\RaggedRight
+% \end{macrocode}
+%
+%
+% \begin{macro}{\@nschapterpreamble}
+% This is the preamble to bibliography and index commands used when
+% \progname{nshyper} is loaded. Normally it is empty.
+% \begin{macrocode}
+\def\@nschapterpreamble{}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+%\subsection{Fonts}
+%\label{sec:fonts}
+%
+% If we have commercial fonts, we load them. Note that the body text
+% has roman font at 10pt, and typewriter at 8.5pt.
+% Therefore we will load |thsmc| scaled. We also add |dgdefault| for
+% dogma family
+% \begin{macrocode}
+\ifnostarch@cfonts
+ \RequirePackage{nbaskerv}%
+ \RequirePackage{futurans}%
+ \RequirePackage[scaled=0.85]{thsmc}%
+ \RequirePackage{dogma}%
+ \newcommand{\dgdefault}{fdg}%
+% \end{macrocode}
+% Otherwise we just use sans serif font for dogma.
+% \begin{macrocode}
+\else
+ \newcommand{\dgdefault}{\sfdefault}%
+\fi
+% \end{macrocode}
+%
+%
+% And switch to normal size---just in case
+% \begin{macrocode}
+\normalsize
+% \end{macrocode}
+%
+%
+%
+%\subsection{Page Dimensions and Paragraphing}
+%\label{sec:page}
+%
+% \begin{macro}{\paperheight}
+% \begin{macro}{\paperwidth}
+% The trim size:
+% \begin{macrocode}
+\setlength{\paperheight}{9.25in}
+\setlength{\paperwidth}{7in}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{\pdfpaperheight}
+% \begin{macro}{\pdfpaperwidth}
+% \begin{macro}{\pdfvorigin}
+% \begin{macro}{\pdfhorigin}
+% If we deal with \progname{pdftex}, we can use this information more
+% creatively. This was inspired by
+% \progname{memoir}~\cite{Wilson04:Memoir}.
+% \begin{macrocode}
+\ifpdf\relax
+ \pdfpageheight=\paperheight
+ \pdfpagewidth=\paperwidth
+ \pdfvorigin=1in
+ \pdfhorigin=1in
+\fi
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\topmargin}
+% \changes{v0.2}{2008/03/03}{Moved down}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% The top margin is 0.625''. We use fake headers of 12pt:
+% \begin{macrocode}
+\setlength\topmargin{0.625in}
+\addtolength\topmargin{-1in}
+\addtolength\topmargin{-12pt}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\textheight}
+% This is the height of the text including footnotes, but excluding
+% running head and foot.
+% \begin{macrocode}
+\setlength\textheight{8in}
+\addtolength{\textheight}{-0.14in}
+% \end{macrocode}
+% Now we take care of the first line height:
+% \begin{macrocode}
+\addtolength\textheight{\topskip}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\evensidemargin}
+% \begin{macro}{\oddsidemargin}
+% The margins on even and odd pages are 0.687''+0.833'' (margin par
+% width) + 0.167'' (margin par gap):
+% \begin{macrocode}
+\setlength\evensidemargin{0.687in}
+\addtolength{\evensidemargin}{-1in}
+\addtolength{\evensidemargin}{0.833in}
+\addtolength{\evensidemargin}{0.167in}
+\setlength\oddsidemargin{\evensidemargin}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{\textwidth}
+% The type area is 5.625'', but this includes side gap:
+% \begin{macrocode}
+\setlength\textwidth{5.625in}
+\addtolength\textwidth{-0.833in}
+\addtolength\textwidth{-0.167in}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\parindent}
+% The paragraph indentation is 0.25'':
+% \begin{macrocode}
+\setlength\parindent{0.25in}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \begin{macro}{\headheight}
+% \begin{macro}{\headsep}
+% We do not have headers in these books. Fancyhdr sets |headheight|
+% to 12pt, so we compensate it above in |\topmargin|
+% \begin{macrocode}
+\setlength\headheight{12pt}
+\setlength\headsep{0pt}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\footskip}
+% The footer is 8.792'' from top
+% \begin{macrocode}
+\setlength{\footskip}{9in}
+\addtolength{\footskip}{-\textheight}
+\addtolength{\footskip}{0.067in}
+\addtolength{\footskip}{\baselineskip}
+\addtolength{\footskip}{-1in}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\widowpenalty}
+% \begin{macro}{\clubpenalty}
+% \changes{v0.3}{2008/03/11}{Changed settings}
+% We forbid widows and clubs. To prevent too extended pages we use
+% |\raggedbottom|:
+% \begin{macrocode}
+\widowpenalty=10000
+\clubpenalty=10000
+\raggedbottom
+% \end{macrocode}
+%
+% \end{macro}
+% \end{macro}
+%
+%
+%
+%\subsection{Headers and Footers}
+%\label{sec:headers}
+%
+%
+% \begin{macro}{\headrulewidth}
+% \begin{macro}{\footrulewidth}
+% We do not want decorative rules:
+% \begin{macrocode}
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0pt}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
+% We do not have headers:
+% \begin{macrocode}
+\pagestyle{fancy}
+\lhead{}
+\rhead{}
+\chead{}
+% \end{macrocode}
+%
+% The right footer is stuck 0.833''+0.167'' = 1'' to the right
+% \begin{macrocode}
+\fancyhfoffset[L]{1in}
+% \end{macrocode}
+%
+% On even pages we put page number and chapter title in footer.
+% \begin{macrocode}
+\fancyfoot[RO]{\fontfamily{\sfdefault}\fontsize{6pt}{6pt}%
+ \fontseries{lq}\selectfont\rightmark%
+ \hspace{2em}\fontseries{bc}\fontsize{9pt}{6pt}\selectfont\thepage}
+\fancyfoot[LO]{}
+\fancyfoot[CO]{}
+% \end{macrocode}
+%
+% On even pages we put page number and chapter number in footer:
+% \begin{macrocode}
+\fancyfoot[LE]{\fontfamily{\sfdefault}\fontseries{bc}\fontsize{9pt}{6pt}%
+ \selectfont\thepage\hspace{2em}%
+ \fontseries{lq}\fontsize{6pt}{6pt}\selectfont%
+ \leftmark}
+\fancyfoot[RE]{}
+\fancyfoot[CE]{}
+% \end{macrocode}
+%
+%
+%\subsection{Front Matter}
+%\label{sec:frontmatter}
+%
+%
+% \begin{macro}{\subtitle}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% We use subtitle of the book\dots
+% \begin{macrocode}
+\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\@subtitle}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% \dots With empty default:
+% \begin{macrocode}
+\def\@subtitle{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\nostarchlogo}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% The logotype of the publisher:
+% \begin{macrocode}
+\newcommand{\nostarchlogo}[1]{\gdef\@nostarchlogo{#1}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\@nostarchlogo}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% The default it empty:
+% \begin{macrocode}
+\def\@nostarchlogo{}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\nostarchlocation}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% Similarly for location:
+% \begin{macrocode}
+\newcommand{\nostarchlocation}[1]{\gdef\@nostarchlocation{#1}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\@nostarchlocation}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% The default is SF:
+% \begin{macrocode}
+\def\@nostarchlocation{San Francisco}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\makehalftitle}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% Now we are ready to typeset the half title page. It is flushed
+% right, cannot be to the left of the page center and must be 0.25''
+% indented from the right:
+% \begin{macrocode}
+\def\makehalftitle{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \null\vskip1.025in%
+ \leavevmode\noindent\hspace{1.66in}%
+ \begin{minipage}[t]{2.5625in}%
+ \flushright
+ \fontfamily{\sfdefault}\fontseries{b}%
+ \fontsize{12\p@}{13\p@}\selectfont
+ \MakeUppercase{\@title}%
+ \end{minipage}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{maketitle}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% Now the main title page:
+% \begin{macrocode}
+\def\maketitle{%
+ \bgroup
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \bgroup
+ \list{}{\leftmargin-1in\rightmargin\z@\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ \centering
+ \null\vskip0.855in%
+ {\fontfamily{\dgdefault}\fontseries{bk}\fontsize{36\p@}{37\p@}\selectfont
+ \MakeUppercase{\@title}\par}%
+ \if\@subtitle\@empty\relax\else
+ {\null\vskip25\p@%
+ \fontfamily{\dgdefault}\fontseries{bq}\fontsize{24\p@}{25\p@}\selectfont
+ \@subtitle\par}%
+ \fi
+ \vspace{1.7in}%
+ \vspace{-\baselineskip}%
+ {\fontfamily{\sfdefault}\fontseries{hq}\fontsize{18\p@}{22\p@}\selectfont
+ by \@author\par}%
+ \vspace{0.45in}%
+ \vspace{\baselineskip}%
+ \if\@nostarchlogo\@empty\relax\else
+ \includegraphics[height=1.08in]{\@nostarchlogo}\par
+ \fi
+ \vspace{12\p@}%
+ \normalfont\@nostarchlocation\par
+ \endlist
+ \egroup
+ \clearpage\egroup}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{copyrightpage}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% This is the page copyright data:
+% \begin{macrocode}
+\newenvironment{copyrightpage}{%
+ \clearpage
+ \bgroup
+ \list{}{\leftmargin-1in\rightmargin\z@\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep8\p@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ \thispagestyle{empty}%
+ \normalfont\fontsize{8\p@}{10\p@}\selectfont}{%
+ \endlist
+ \egroup
+ \clearpage}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{cipblock}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% CIP block is supposed to be in typewriter font. So we use
+% verbatim:
+% \begin{macrocode}
+\newenvironment{cipblock}{%
+ \leavevmode\par\normalfont\fontsize{8\p@}{10\p@}\selectfont
+ \textit{Library of Congress Cataloging-in-Publication Data}\par%
+ \ttfamily\@vobeyspaces\obeylines
+ \parindent\z@\parfillskip\@flushglue\parskip\z@skip}{\par\vskip8pt\relax}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{dedicationpage}
+% \changes{v0.5}{2008/03/19}{Introduced the macro}
+% Dedication is centered:
+% \begin{macrocode}
+\newenvironment{dedicationpage}{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \null\vskip1.175in%
+ \centering\normalfont}{\clearpage}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Tables of Contents}
+%\label{sec:toc}
+%
+% Standard \LaTeX{} has just one table of contents. We have two. The
+% table of brief contents will have the extension |tbc|, while the
+% standard table of contents will have the standard extension |toc|.
+%
+% \begin{macro}{\briefcontentsname}
+% The name for brief contents
+% \begin{macrocode}
+\def\briefcontentsname{Brief Contents}
+% \end{macrocode}
+%
+% \end{macro}
+%
+% \begin{macro}{\contentsname}
+% Same with |\contentsname|
+% \begin{macrocode}
+\def\contentsname{Contents in Detail}%
+% \end{macrocode}
+% Special treatment if \progname{babel} is used:
+% \begin{macrocode}
+\AtBeginDocument{\@ifpackageloaded{babel}{%
+ \addto\captionsenglish{%
+ \renewcommand{\contentsname}%
+ {Contents in Detail}}}{}}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{\brieftableofcontents}
+% \changes{v0.5}{2008/03/19}{Introduced macro}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% \changes{v0.8}{2008/04/07}{Changed dimensions}
+% This is the new macro:
+% \begin{macrocode}
+\newcommand\brieftableofcontents{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \bgroup
+ \thispagestyle{empty}%
+ \markboth{}{\briefcontentsname}%
+ \null\vskip0.925in%
+ \list{}{\leftmargin-1.0in\rightmargin0.4in\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{bs}\fontsize{16\p@}{18\p@}\selectfont
+ \MakeUppercase{\briefcontentsname}\par}\vskip40pt%
+ \@starttoc{tbc}%
+ \endlist
+ \egroup}
+% \end{macrocode}
+%
+% \end{macro}
+% \begin{macro}{\tableofcontents}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% \changes{v0.8}{2008/04/07}{Changed dimensions}
+% This is the new macro:
+% \begin{macrocode}
+\renewcommand\tableofcontents{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \bgroup
+ \thispagestyle{empty}%
+ \markboth{}{\contentsname}%
+ \null\vskip0.175in%
+ \list{}{\leftmargin-1.0in\rightmargin0.6in\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{bs}\fontsize{16\p@}{18\p@}\selectfont
+ \MakeUppercase{\contentsname}\par}\vskip18pt%
+ \@starttoc{toc}%
+ \endlist
+ \egroup}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@dotsep}
+% \changes{v0.7}{2008/04/04}{Changed LaTeX default}
+% \changes{v0.8}{2008/04/07}{Tightened dots}
+% Standard \LaTeX{} provides 4.5 for the distance between dots. We
+% will make this tighter:
+% \begin{macrocode}
+\renewcommand\@dotsep{1.5}
+% \end{macrocode}
+%
+% \end{macro}
+%
+% \begin{macro}{\l@part}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% This is how we typeset parts in the table of contents
+% \begin{macrocode}
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{28\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \fontfamily{\sfdefault}\fontseries{bq}\fontsize{12\p@}{14\p@}\selectfont
+ #1}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\l@chapter}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% This is how we typeset chapters in the table of contents
+% \begin{macrocode}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 20\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \fontfamily{\sfdefault}\fontseries{bq}\fontsize{10\p@}{12\p@}\selectfont
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \vskip4\p@\penalty\@highpenalty
+ \endgroup
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\l@section}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% This is how we typeset sections in the table of contents
+% \begin{macrocode}
+\renewcommand{\l@section}[2]{\@dottedtocline{1}{\z@}{0.25in}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#1}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#2}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\l@subsection}
+% \changes{v0.5}{2008/03/19}{Changed LaTeX default}
+% This is how we typeset subsections in the table of contents
+% \begin{macrocode}
+\renewcommand{\l@subsection}[2]{\@dottedtocline{2}{0.5in}{0.25in}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#1}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#2}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\l@bpart}
+% \changes{v0.6}{2008/03/21}{Introduced macro}
+% There is a special formatting of parts in the brief table of
+% contents:
+% \begin{macrocode}
+\newcommand*\l@bpart[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{14\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \fontfamily{\sfdefault}\fontseries{h}\fontsize{9\p@}{14\p@}\selectfont
+ #1}\par\vskip7\p@%
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\l@bchapter}
+% \changes{v0.6}{2008/03/21}{Introduced macro}
+% There is a special formatting of chapters in the brief table of
+% contents:
+% \begin{macrocode}
+\newcommand*\l@bchapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{14\p@}\selectfont
+ #1\nobreak\leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Main Matter}
+%\label{sec:mainmatter}
+%
+% \begin{macro}{\mainmatter}
+% \changes{v0.6}{2008/03/19}{Changed LaTeX default}
+% We redefine |\mainmatter| to take care of that blank verso
+% page\dots
+% \begin{macrocode}
+\renewcommand\mainmatter{%
+ \clearpage
+ {\thispagestyle{empty}\cleardoublepage}%
+ \@mainmattertrue
+ \pagenumbering{arabic}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Back Matter}
+%\label{sec:backmatter}
+%
+% \begin{macro}{\backmatter}
+% \changes{v0.6}{2008/03/21}{Changed LaTeX default}
+% We redefine |\backmatter| to take care of that blank verso
+% page\dots
+% \begin{macrocode}
+\renewcommand\backmatter{%
+ \clearpage
+ {\thispagestyle{empty}\cleardoublepage}%
+ \@mainmatterfalse}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Sectioning}
+%\label{sec:sectioning}
+%
+% We do not number sections and below:
+% \begin{macrocode}
+\setcounter{secnumdepth}{0}
+% \end{macrocode}
+%
+% \begin{macro}{\sectionmark}
+% Our section commands do not mark:
+% \begin{macrocode}
+\def\sectionmark#1{}%
+% \end{macrocode}
+% \end{macro}
+%
+%
+% Chapters, unlike the ones in~\cite{classes}, have \emph{two} obligatory
+% arguments. The second argument is the command to fill the ``circular
+% graphics''. Otherwise we follow the design in~\cite{classes}. One
+% problem, however: we \emph{cannot} use |\secdef| because we have
+% three arguments, not two.
+%
+%
+% \begin{macro}{\if@firstpara}
+% We introduce a macro to get special typesetting for the first
+% paragraph after a part or a chapter begins:
+% \begin{macrocode}
+\newif\if@firstpara
+\@firstparafalse
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@chapterart}
+% We also keep track of the current artwork for chapter start:
+% \begin{macrocode}
+\def\@chapterart{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\secdef}
+% \changes{v0.6}{2008/03/21}{Changed LaTeX default}
+% The standard \LaTeX{} |secdef| assumes that starred commands have no
+% optional argument. This is not right for us:
+% \begin{macrocode}
+\def\secdef#1#2{\@ifstar{\@dblarg{#2}}{\@dblarg{#1}}}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{\part}
+% \changes{v0.5}{2008/03/16}{Changed LaTeX default}
+% Our parts differ from the ones in standard LaTeX since we use empty
+% pagestyle rather than plain in part pages. The trick with
+% |\cleardoublepage| is from~\cite{Oostrum04:Fancyhdr}
+% \begin{macrocode}
+\renewcommand\part{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \markboth{}{}%
+ \def\@chapterart{}%
+ \thispagestyle{empty}%
+ \null\vskip0.715in%
+ \secdef\@part\@spart}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@part}
+% \changes{v0.5}{2008/03/16}{Changed LaTeX default}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% This code is used when we have a numbered part.
+% \begin{macrocode}
+\def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\MakeUppercase{\partname}
+ \thepart\protect\linebreak\penalty\@highpenalty\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{\partname~\thepart: #1}}%
+ \else
+ \addcontentsline{toc}{part}{\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{#1}}%
+ \fi
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \fontfamily{\sfdefault}\fontsize{80pt}{80pt}\fontseries{bc}\selectfont
+ \MakeUppercase{\partname\nobreakspace\thepart}%
+ \par
+ \vskip 0.45in%
+ \fi
+ \fontfamily{\dgdefault}\fontsize{16pt}{16pt}\fontseries{br}\selectfont
+ \MakeUppercase{#2}\par}%
+ \@endpart}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@spart}
+% \changes{v0.5}{2008/03/16}{Changed LaTeX default}
+% This is used for starred parts (probably not something we are
+% going to encounter\dots)
+% \begin{macrocode}
+\def\@spart[#1]#2{%
+ \addcontentsline{toc}{part}{\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{#1}}%
+ {\centering
+ \fontfamily{\dgdefault}\fontsize{16pt}{16pt}\fontseries{br}\selectfont
+ \MakeUppercase{#2}\par}%
+ \@endpart}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@endpart}
+% \changes{v0.5}{2008/03/16}{Changed LaTeX default}
+% When part is finished, we change the settings of the first paragraph:
+% \begin{macrocode}
+\def\@endpart{%
+ \@afterindentfalse
+ \vskip49\p@%
+ \@firstparatrue
+ \@afterheading}
+% \end{macrocode}
+%
+% \end{macro}
+%
+% \begin{macro}{\chapter}
+% \changes{v0.6}{2008/03/21}{Reverted to standard interface}
+% First, we suppress floats, set up empty page style and delete
+% indentation after the chapter. Then we check whether the chapter is
+% starred:
+% \begin{macrocode}
+\def\chapter{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \secdef\@chapter\@schapter}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\@chapter}
+% \changes{v0.2}{2008/03/04}{Moved up}
+% \changes{v0.6}{2008/03/21}{Reverted to standard interface}
+% The actual work is done by |\@chapter| macro.
+% \begin{macrocode}
+\def\@chapter[#1]#2{%
+ \vspace*{0.622in}
+ {\centering
+ \ifnum \c@secnumdepth > \m@ne
+ \refstepcounter{chapter}%
+ \markboth{\@chapapp~\thechapter}{#1}%
+ \typeout{\@chapapp\space\thechapter.}%
+ \addcontentsline{toc}{chapter}{\thechapter%
+ \protect\linebreak\penalty\@highpenalty
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{%
+ \chaptername~\thechapter:~#1}%
+ {\fontfamily{\sfdefault}\fontseries{bc}\fontsize{120pt}{120pt}
+ \selectfont
+ \thechapter\par\nobreak\vskip27pt}%
+ \else
+ \addcontentsline{toc}{chapter}{%
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{#1}%
+ \markboth{#1}{#1}%
+ \fi
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{#2}\par}}\nobreak\vskip25pt\relax%
+ \@firstparatrue
+ \@afterheading}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@schapter}
+% \changes{v0.6}{2008/03/21}{Reverted to standard interface}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% This is used when we have a starred chapter:
+% \begin{macrocode}
+\def\@schapter[#1]#2{%
+ \vspace*{2.747in}
+ {\centering
+ \addcontentsline{toc}{chapter}{%
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{#1}%
+ \markboth{#1}{#1}%
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{#2}\par}}\nobreak\vskip25pt\relax%
+ \@firstparatrue
+ \@afterheading}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@afterheading}
+% \changes{v0.3}{2008/03/12}{Moved the circle art}
+% \changes{v0.4}{2008/03/14}{Added special treatment for the case of
+% empty chapter art}
+% \changes{v0.7}{2008/04/04}{Changed dimensions}
+% We cannot use the standard |\@afterheading| since we want to put the
+% first paragraph in larger font and put there the artwork. So we
+% take |\@afterheading| code and patch it:
+% \begin{macrocode}
+\def\@afterheading{%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi
+ \if@firstpara
+% \end{macrocode}
+% The first paragraph has a special font and artwork in the beginning:
+% \begin{macrocode}
+ \rule{\z@}{49\p@}%
+ \ifx\@chapterart\@empty%
+ \else
+ \makebox[0pt][r]{\raisebox{-0.5in}[0pt][0pt]{%
+ \@chapterart\hspace{0.21in}}}%
+ \parshape=5
+ 0.963in 3.622in
+ 0.913in 3.672in
+ 0.813in 3.772in
+ 0.563in 4.022in
+ 0in \textwidth
+ \fi
+ \fontsize{14pt}{16.5pt}\selectfont%
+ \parskip=3pt
+ \else
+ \parskip=0pt
+ \normalsize\selectfont
+ \fi
+ \@firstparafalse}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\chapterart}
+% \changes{v0.6}{2008/03/21}{Introduced the command}
+% This creates the chapterart:
+% \begin{macrocode}
+\newcommand{\chapterart}[1]{\gdef\@chapterart{#1}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\chapterartfile}
+% \changes{v0.6}{2008/03/21}{Introduced the command}
+% The simplified version of |\chapterart|:
+% \begin{macrocode}
+\newcommand{\chapterartfile}[1]{\gdef\@chapterart{%
+ \includegraphics[width=1.264in]{#1}}}%
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{\section}
+% \changes{v0.3}{2008/03/09}{Changed indentation}
+% Sections correspond to |HeadA| in our specs. We use |\everypar{}|
+% in case section starts just after chapter start.
+% \begin{macrocode}
+\renewcommand{\section}{\everypar{}%
+ \@startsection{section}{1}{-0.75in}{16pt}{6pt}{%
+ \fontfamily{\sfdefault}\fontseries{b}\fontsize{12pt}{16pt}\selectfont}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\subsection}
+% Subsections correspond to |HeadB| in our specs:
+% \begin{macrocode}
+\renewcommand{\subsection}{\everypar{}%
+ \@startsection{subsection}{2}{0pt}{14pt}{4pt}{%
+ \fontfamily{\sfdefault}\fontshape{it}%
+ \fontseries{bc}\fontsize{12pt}{17pt}\selectfont}}%
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\subsubsection}
+% Subsubsections correspond to |HeadC| in our specs:
+% \begin{macrocode}
+\renewcommand{\subsubsection}{\everypar{}%
+ \@startsection{subsubsection}{3}{0pt}{10pt}{2pt}{%
+ \fontfamily{\sfdefault}\fontseries{bp}\fontsize{10pt}{14pt}%
+ \selectfont}}%
+% \end{macrocode}
+% \end{macro}
+%
+% We do not redefine levels below, leaving the options
+% from~\cite{classes} in place.
+%
+%
+%
+%\subsection{Lists}
+%\label{sec:lists}
+%
+% This follows design of~\cite{classes} with the values from our
+% specifications:
+% \begin{macro}{\leftmargin}
+% \begin{macro}{\leftmargini}
+% \begin{macro}{\leftmarginii}
+% \begin{macro}{\leftmarginiii}
+% \begin{macro}{\leftmarginiv}
+% The host of |\leftmargin| commands:
+% \begin{macrocode}
+\setlength{\leftmargin}{0.25in}
+\setlength{\leftmargini}{0.25in}
+\setlength{\leftmarginii}{0.25in}
+\setlength{\leftmarginiii}{0.25in}
+\setlength{\leftmarginiv}{0.25in}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\rightmargin}
+% Right margin is always zero:
+% \begin{macrocode}
+\setlength{\rightmargin}{0pt}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\@listi}
+% \begin{macro}{\@listI}
+% This is the default list on the first level
+% \begin{macrocode}
+\def\@listi{\leftmargin\leftmargini
+ \labelwidth\leftmargin\relax
+ \advance\labelwidth-\labelsep\relax
+ \parsep0\p@\relax
+ \topsep6\p@\relax
+ \itemsep4\p@\relax}
+\let\@listI\@listi
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\@listii}
+% \begin{macro}{\@listiii}
+% \begin{macro}{\@listiv}
+% \begin{macro}{\@listv}
+% \begin{macro}{\@listvi}
+% And the lists for the next levels:
+% \begin{macrocode}
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{itemize}
+% \changes{v0.2}{2008/03/03}{Flush left bullets}
+% We make bullets flushleft:
+% \begin{macrocode}
+\def\itemize{%
+ \ifnum \@itemdepth >\thr@@\@toodeep\else
+ \advance\@itemdepth\@ne
+ \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+ \expandafter
+ \list
+ \csname\@itemitem\endcsname
+ {\def\makelabel##1{##1}}%
+ \fi}
+% \end{macrocode}
+%
+% \end{macro}
+%
+% \begin{macro}{enumerate}
+% \changes{v0.2}{2008/03/03}{Flush left numbers}
+% We make numbering flushleft:
+% \begin{macrocode}
+\def\enumerate{%
+ \ifnum \@enumdepth >\thr@@\@toodeep\else
+ \advance\@enumdepth\@ne
+ \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+ \expandafter
+ \list
+ \csname label\@enumctr\endcsname
+ {\usecounter\@enumctr\def\makelabel##1{##1}}%
+ \fi}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{quotation}
+% In |quotation| environment the paragraphs are indented. We use
+% 9pt Roman for quotations:
+% \begin{macrocode}
+\renewenvironment{quotation}{%
+ \list{}{\listparindent\parindent\relax
+ \itemindent\listparindent\relax
+ \rightmargin0.5in\relax
+ \leftmargin0.5in\relax}%
+ \item\fontsize{9pt}{11pt}\selectfont}{\endlist}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{quote}
+% Quote is for short quotations without indentations:
+% \begin{macrocode}
+\renewenvironment{quote}{%
+ \list{}{\listparindent0pt\relax
+ \itemindent\listparindent\relax
+ \rightmargin0.5in\relax
+ \leftmargin0.5in\relax}%
+ \item\fontsize{9pt}{11pt}\selectfont}{\endlist}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{note}
+% Note is a special environment for asides. It is in italics with
+% the word ``NOTE'' on the margin:
+% \begin{macrocode}
+\newenvironment{note}{%
+ \list{\makebox[0pt][r]{\fontfamily{%
+ \dgdefault}\fontseries{b}\fontsize{9pt}{11pt}\selectfont
+ NOTE\hspace{2em}}}{\listparindent0pt\relax
+ \topsep9\p@\relax
+ \itemindent0\p@\relax
+ \rightmargin0\p@\relax
+ \leftmargin0\p@\relax
+ \labelwidth0\p@\relax
+ \labelsep0\p@}%
+ \item\itshape}{\vspace{-3pt}\endlist}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+%\subsection{Footnotes}
+%\label{sec:footnotes}
+%
+% \begin{macro}{\footnoterule}
+% \changes{v0.3}{2008/03/11}{Increased kern}
+% We want one inch by 0.25 footnote rule:
+% \begin{macrocode}
+\renewcommand\footnoterule{%
+ \kern6\p@
+ \hrule height 0.25pt depth 0pt width 1in
+ \kern0\p@}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@footnotetext}
+% \changes{v0.3}{2008/03/11}{Changed LaTeX default}
+% We want 4pt between footnotes. Unfortunately the standard
+% functions introduces |\@finalstrut|, which we do not need
+% here\dots
+% \begin{macrocode}
+\long\def\@footnotetext#1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@{13.5pt}\ignorespaces#1}%
+ \color@endgroup}}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\footins}
+% \changes{v0.3}{2008/03/11}{Changed LaTeX defaults}
+% We make some space between footnotes:
+% \begin{macrocode}
+\setlength{\skip\footins}{16\p@ \@plus 4\p@ \@minus 0\p@}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{\@makefntext}
+% We do not indent the footnotes:
+% \begin{macrocode}
+\renewcommand\@makefntext[1]{%
+ \parindent 0\p@%
+ \RaggedRightParindent0\p@%
+ \noindent
+ \@makefnmark#1}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Tables and Figures}
+%\label{sec:tbl_fig}
+%
+% \begin{macro}{\thefigure}
+% We want dash instead of dot between chapter number and figure
+% number:
+% \begin{macrocode}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter-\fi \@arabic\c@figure}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\thetable}
+% We want dash instead of dot between chapter number and table
+% number:
+% \begin{macrocode}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter-\fi \@arabic\c@table}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{nostarchfigfmt}
+% This is our captions format for figures
+% \changes{v0.3}{2008/03/11}{Added style}
+% \begin{macrocode}
+\DeclareCaptionFormat{nostarchfigfmt}{\fontfamily{\sfdefault}%
+ \fontshape{it}\fontsize{8.5pt}{9pt}\fontseries{k}\selectfont\unskip#1#2#3}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{nostarchtabfmt}
+% \changes{v0.3}{2008/03/11}{Added style}
+% This is our captions format for tables
+% \begin{macrocode}
+\DeclareCaptionFormat{nostarchtabfmt}{\fontfamily{\sfdefault}%
+ \fontshape{rm}\fontsize{8.5pt}{9pt}\fontseries{h}\selectfont\unskip#1#2%
+ \fontseries{k}\selectfont#3}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% The figure and table styles:
+% \begin{macrocode}
+\captionsetup[figure]{format=nostarchfigfmt,singlelinecheck=off,
+ aboveskip=8pt,belowskip=8pt}
+\captionsetup[table]{format=nostarchtabfmt,singlelinecheck=off,
+ aboveskip=0pt,belowskip=4pt}
+% \end{macrocode}
+%
+% \begin{macro}{\tbfont}
+% This is the font used for table body:
+% \begin{macrocode}
+\def\tbfont{%
+ \fontfamily{\sfdefault}\fontseries{k}\fontsize{8pt}{10pt}\selectfont}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\thfont}
+% Font for table headers:
+% \begin{macrocode}
+\def\thfont{%
+ \fontfamily{\sfdefault}\fontseries{h}\fontsize{8pt}{10pt}\selectfont}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\heawyrulewidth}
+% \begin{macro}{\lightrulewidth}
+% \begin{macro}{\cmidrulewidth}
+% Changing \progname{booktabs} defaults:
+% \begin{macrocode}
+\heavyrulewidth=3\p@
+\lightrulewidth=1.5\p@
+\cmidrulewidth=1.5\p@
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+%
+% \begin{macro}{\bottomrule}
+% Our |\bottomrule| is thin:
+% \begin{macrocode}
+\def\bottomrule{\noalign{\ifnum0=`}\fi
+ \@aboverulesep=\aboverulesep
+ \global\@belowrulesep=\belowbottomsep
+ \global\@thisruleclass=\@ne
+ \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\belowrulesep}
+% \begin{macro}{\belowbottomsep}
+% \begin{macro}{\abovetopsep}
+% Again redefining \progname{booktabs}:
+% \begin{macrocode}
+\belowrulesep=0.7ex
+\belowbottomsep=0.65pt
+\aboverulesep=0.7ex
+\abovetopsep=0.65pt
+% \end{macrocode}
+%
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+%
+%
+%\subsection{Verbatim Customization}
+%\label{sec:verbatim}
+%
+% \begin{macro}{Code}
+% This is for framed code:
+% \begin{macrocode}
+\DefineVerbatimEnvironment{Code}{Verbatim}{frame=lines,framerule=0.25pt}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\FV@ListParameterHook}
+% The skip before code is too large for us
+% \begin{macrocode}
+\FV@AddToHook\FV@ListParameterHook{\vspace{-6pt}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%\subsection{Bibliography}
+%\label{sec:biblio}
+%
+% \begin{macro}{\bibsection}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% We actually use chapter for bibliographic sections, but here we
+% try to be nice to \progname{natbib}:
+% \begin{macrocode}
+\AtBeginDocument{
+ \def\bibsection{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \@nschapterpreamble
+ \vspace*{0.622in}%
+ \addcontentsline{toc}{chapter}{\MakeUppercase{\bibname}}%
+ \addcontentsline{tbc}{bchapter}{\bibname}%
+ {\centering
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\bibname}\par}}\nobreak\vskip25pt\relax%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}}%
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{thebibliography}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% We want bibliography to be in the table of contents:
+% \begin{macrocode}
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%\subsection{Index}
+%\label{sec:index}
+% \begin{macro}{theindex}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% We want our index to be in the table of contents too:
+% \begin{macrocode}
+\renewenvironment{theindex}{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \if@twocolumn
+ \@restonecolfalse
+ \else
+ \@restonecoltrue
+ \fi
+ \twocolumn[%
+ \@nschapterpreamble
+ \vspace*{0.622in}%
+ \addcontentsline{toc}{chapter}{\MakeUppercase{\indexname}}%
+ \addcontentsline{tbc}{bchapter}{\indexname}%
+ {\centering
+ {\fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\indexname}\par}}%
+ \nobreak\vskip25pt\relax]%
+ \@mkboth{\MakeUppercase\indexname}%
+ {\MakeUppercase\indexname}%
+ \parindent\z@
+ \parskip\z@ \@plus .3\p@\relax
+ \columnseprule \z@
+ \columnsep 0.25in%
+ \let\item\@idxitem}
+{\if@restonecol\onecolumn\else\clearpage\fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@idxitem}
+% \changes{v0.6}{2008/03/22}{Changed default}
+% This is how we format level 1 index entries:
+% \begin{macrocode}
+\renewcommand\@idxitem{%
+ \par\hangindent0.45in\normalfont\fontsize{9.5\p@}{11.5\p@}\selectfont
+ \raggedright}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\subitem}
+% \changes{v0.6}{2008/03/22}{Changed default}
+% Level 2 entries:
+% \begin{macrocode}
+\renewcommand\subitem{\@idxitem \hspace*{0.15in}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\subsubitem}
+% \changes{v0.6}{2008/03/22}{Changed default}
+% Level 3 entries:
+% \begin{macrocode}
+\renewcommand\subsubitem{\@idxitem \hspace*{0.3in}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\indexspace}
+% \changes{v0.6}{2008/03/22}{Changed default}
+% The space between the groups
+% \begin{macrocode}
+\renewcommand\indexspace{\par \vskip 14\p@\relax}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\indexgroup}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% When an index starts a new letter, we call this macro:
+% \begin{macrocode}
+\newcommand\indexgroup[1]{{\fontfamily{\sfdefault}%
+ \fontseries{bc}\fontsize{11\p@}{13\p@}\selectfont#1}\par\vskip4\p@}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+%\subsection{Update Page and Colophon}
+%\label{sec:update_colophon}
+%
+% \begin{macro}{\updatesname}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% Just the name for updates:
+% \begin{macrocode}
+\def\updatesname{Updates}
+% \end{macrocode}
+%
+% \end{macro}
+%
+%
+% \begin{macro}{\updatespage}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% This is the command that start update page. It looks like
+% chapter, but it does not mark the pages or appear in the tables of
+% contents:
+% \begin{macrocode}
+\newcommand\updatespage{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \gdef\@chapterart{}%
+ \vspace*{1.875in}%
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\updatesname}\par\nobreak\vskip40\p@}%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\colophonname}
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% Just the name for colophon:
+% \begin{macrocode}
+\def\colophonname{Colophon}
+% \end{macrocode}%
+% \end{macro}
+%
+%
+% \begin{macro}{\colophon}
+% Colophon does not start a separate page:
+% \changes{v0.6}{2008/03/22}{Introduced the macro}
+% \begin{macrocode}
+\newcommand\colophon{%
+ \everypar{}%
+ \global\@topnum\z@
+ \gdef\@chapterart{}%
+ \vspace*{0.875in}%
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\colophonname}\par\nobreak\vskip40\p@}%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi}\par
+ The fonts used in \emph{\@title} are New Baskerville, Futura, The
+ Sans Mono Condensed and Dogma. The book was typeset with
+ \LaTeXe{} package
+ \texttt{nostarch} by Boris Veytsman
+ \emph{(\csname ver@nostarch.cls\endcsname).}\par}
+% \end{macrocode}
+% \end{macro}
+%
+%\subsection{End of Class}
+%\label{end}
+%
+%
+% \begin{macrocode}
+%</class>
+% \end{macrocode}
+%
+%\subsection{Dealing with \progname{hyperref}}
+%\label{sec:hyperref}
+%
+% \changes{v0.6}{2008/03/22}{Introduced package \progname{nshyper}}
+% First, we load \progname{hyperref} with right options. I do not
+% know why bookmarks do not work, but this is important to switch off:
+% \begin{macrocode}
+%<*nshyper>
+\RequirePackage[breaklinks,colorlinks,linkcolor=black,
+ citecolor=black,pagecolor=black,urlcolor=black,hyperindex,
+ bookmarks=false]{hyperref}
+% \end{macrocode}
+%
+% \progname{hyperref} expects the starred parts and chapters to have
+% only one argument---but we have two!
+% \begin{macrocode}
+\AtBeginDocument{%
+ \def\@schapter[#1]#2{%
+ \H@old@schapter[#1]{#2}%
+ \@nschapterpreamble}%
+ \def\@spart[#1]#2{%
+ \H@old@spart[#1]{#2}%
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \xdef\@currentHref{part*.\the\Hy@linkcounter}%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}}}%
+% \end{macrocode}
+% We change the preamble for bibliography and index:
+% \begin{macrocode}
+\def\@nschapterpreamble{%
+ \begingroup
+ \let\@mkboth\@gobbletwo
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
+ \endgroup}
+% \end{macrocode}
+%
+% We can add information about the file to the pdf metadata as well:
+% \begin{macrocode}
+\let\ns@old@maketitle\maketitle
+\def\maketitle{%
+ \hypersetup{pdfauthor=\@author, pdftitle=\@title}%
+ \ns@old@maketitle}
+%</nshyper>
+% \end{macrocode}
+%
+%
+%\subsection{\progname{MakeIndex} Style File}
+%\label{sec:makeindex}
+% \changes{v0.6}{2008/03/23}{Added \progname{MakeIndex} style}
+%
+% These lines will produce some warnings when
+% running Makeindex as they try to cover two different
+% versions of the program:
+% \begin{macrocode}
+%<*ist>
+lethead_prefix "\\indexgroup{"
+lethead_suffix "}\\nopagebreak\n"
+lethead_flag 1
+heading_prefix "\\indexgroup{"
+heading_suffix "}\\nopagebreak\n"
+headings_flag 1
+%</ist>
+% \end{macrocode}
+%
+%
+%\Finale
+%\clearpage
+%
+%\PrintChanges
+%\clearpage
+%\PrintIndex
+%
+\endinput
diff --git a/Master/texmf-dist/source/latex/nostarch/nostarch.ins b/Master/texmf-dist/source/latex/nostarch/nostarch.ins
new file mode 100644
index 00000000000..91f669c2e86
--- /dev/null
+++ b/Master/texmf-dist/source/latex/nostarch/nostarch.ins
@@ -0,0 +1,33 @@
+%
+% Doctrip file for nostarch
+% This file is in public domain
+% $Id: nostarch.ins,v 1.3 2008-03-23 21:48:10 boris Exp $
+%
+\def\batchfile{nostarch.ins}
+\input docstrip
+\keepsilent
+\showprogress
+
+
+\askforoverwritefalse
+
+\generate{%
+ \file{nostarch.cls}{\from{nostarch.dtx}{class}}
+ \file{nshyper.sty}{\from{nostarch.dtx}{nshyper}}
+ \file{nostarch.ist}{\from{nostarch.dtx}{ist}}}
+
+\obeyspaces
+\Msg{*****************************************************}%
+\Msg{* Congratulations! You successfully generated the *}%
+\Msg{* nostarch package. *}%
+\Msg{* *}%
+\Msg{* Please move the file nostarch.cls and nshyper.sty *}%
+\Msg{* to the place where the LaTeX files are stored on *}%
+\Msg{* your system. Move the file nostarch.ist to the *}%
+\Msg{* place where MakeIndex styles are storen on your *}%
+\Msg{* system. The manual is nostarch.pdf . *}%
+\Msg{* *}%
+\Msg{* The package is released under LPPL *}%
+\Msg{* *}%
+\Msg{* Happy TeXing! *}%
+\Msg{*****************************************************}% \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/nostarch/nostarch.cls b/Master/texmf-dist/tex/latex/nostarch/nostarch.cls
new file mode 100644
index 00000000000..93ba27d9b3f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nostarch/nostarch.cls
@@ -0,0 +1,719 @@
+%%
+%% This is file `nostarch.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nostarch.dtx (with options: `class')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from nostarch.cls.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file nostarch.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% \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
+%% Lower-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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{nostarch}
+[2008/04/07 v1.0 Typesetting books for No Starch Press]
+\newif\ifnostarch@cfonts
+\nostarch@cfontstrue
+\DeclareOption{cfonts}{\nostarch@cfontstrue}
+\DeclareOption{nocfonts}{\nostarch@cfontsfalse}
+\long\def\nostarch@size@warning#1{%
+ \ClassWarning{nostarch}{Size-changing option #1 will not be
+ honored}}%
+\DeclareOption{8pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{9pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{10pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{11pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption{12pt}{\nostarch@size@warning{\CurrentOption}}%
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
+\InputIfFileExists{nostarch.cfg}{%
+ \ClassInfo{nostarch}{%
+ Loading configuration file nostarch.cfg}}{%
+ \ClassInfo{nostarch}{%
+ Configuration file nostarch.cfg is not found}}
+\ProcessOptions\relax
+\LoadClass[10pt]{book}
+\RequirePackage{ifpdf, fancyhdr, fancyvrb, booktabs, graphicx,
+ caption, makeidx}
+\RequirePackage{ragged2e}
+\setlength\RaggedRightParindent{\parindent}
+\RaggedRight
+\def\@nschapterpreamble{}
+\ifnostarch@cfonts
+ \RequirePackage{nbaskerv}%
+ \RequirePackage{futurans}%
+ \RequirePackage[scaled=0.85]{thsmc}%
+ \RequirePackage{dogma}%
+ \newcommand{\dgdefault}{fdg}%
+\else
+ \newcommand{\dgdefault}{\sfdefault}%
+\fi
+\normalsize
+\setlength{\paperheight}{9.25in}
+\setlength{\paperwidth}{7in}
+\ifpdf\relax
+ \pdfpageheight=\paperheight
+ \pdfpagewidth=\paperwidth
+ \pdfvorigin=1in
+ \pdfhorigin=1in
+\fi
+\setlength\topmargin{0.625in}
+\addtolength\topmargin{-1in}
+\addtolength\topmargin{-12pt}
+\setlength\textheight{8in}
+\addtolength{\textheight}{-0.14in}
+\addtolength\textheight{\topskip}
+\setlength\evensidemargin{0.687in}
+\addtolength{\evensidemargin}{-1in}
+\addtolength{\evensidemargin}{0.833in}
+\addtolength{\evensidemargin}{0.167in}
+\setlength\oddsidemargin{\evensidemargin}
+\setlength\textwidth{5.625in}
+\addtolength\textwidth{-0.833in}
+\addtolength\textwidth{-0.167in}
+\setlength\parindent{0.25in}
+\setlength\headheight{12pt}
+\setlength\headsep{0pt}
+\setlength{\footskip}{9in}
+\addtolength{\footskip}{-\textheight}
+\addtolength{\footskip}{0.067in}
+\addtolength{\footskip}{\baselineskip}
+\addtolength{\footskip}{-1in}
+\widowpenalty=10000
+\clubpenalty=10000
+\raggedbottom
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0pt}
+\pagestyle{fancy}
+\lhead{}
+\rhead{}
+\chead{}
+\fancyhfoffset[L]{1in}
+\fancyfoot[RO]{\fontfamily{\sfdefault}\fontsize{6pt}{6pt}%
+ \fontseries{lq}\selectfont\rightmark%
+ \hspace{2em}\fontseries{bc}\fontsize{9pt}{6pt}\selectfont\thepage}
+\fancyfoot[LO]{}
+\fancyfoot[CO]{}
+\fancyfoot[LE]{\fontfamily{\sfdefault}\fontseries{bc}\fontsize{9pt}{6pt}%
+ \selectfont\thepage\hspace{2em}%
+ \fontseries{lq}\fontsize{6pt}{6pt}\selectfont%
+ \leftmark}
+\fancyfoot[RE]{}
+\fancyfoot[CE]{}
+\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
+\def\@subtitle{}
+\newcommand{\nostarchlogo}[1]{\gdef\@nostarchlogo{#1}}
+\def\@nostarchlogo{}
+\newcommand{\nostarchlocation}[1]{\gdef\@nostarchlocation{#1}}
+\def\@nostarchlocation{San Francisco}
+\def\makehalftitle{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \null\vskip1.025in%
+ \leavevmode\noindent\hspace{1.66in}%
+ \begin{minipage}[t]{2.5625in}%
+ \flushright
+ \fontfamily{\sfdefault}\fontseries{b}%
+ \fontsize{12\p@}{13\p@}\selectfont
+ \MakeUppercase{\@title}%
+ \end{minipage}}
+\def\maketitle{%
+ \bgroup
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \bgroup
+ \list{}{\leftmargin-1in\rightmargin\z@\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ \centering
+ \null\vskip0.855in%
+ {\fontfamily{\dgdefault}\fontseries{bk}\fontsize{36\p@}{37\p@}\selectfont
+ \MakeUppercase{\@title}\par}%
+ \if\@subtitle\@empty\relax\else
+ {\null\vskip25\p@%
+ \fontfamily{\dgdefault}\fontseries{bq}\fontsize{24\p@}{25\p@}\selectfont
+ \@subtitle\par}%
+ \fi
+ \vspace{1.7in}%
+ \vspace{-\baselineskip}%
+ {\fontfamily{\sfdefault}\fontseries{hq}\fontsize{18\p@}{22\p@}\selectfont
+ by \@author\par}%
+ \vspace{0.45in}%
+ \vspace{\baselineskip}%
+ \if\@nostarchlogo\@empty\relax\else
+ \includegraphics[height=1.08in]{\@nostarchlogo}\par
+ \fi
+ \vspace{12\p@}%
+ \normalfont\@nostarchlocation\par
+ \endlist
+ \egroup
+ \clearpage\egroup}
+\newenvironment{copyrightpage}{%
+ \clearpage
+ \bgroup
+ \list{}{\leftmargin-1in\rightmargin\z@\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep8\p@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ \thispagestyle{empty}%
+ \normalfont\fontsize{8\p@}{10\p@}\selectfont}{%
+ \endlist
+ \egroup
+ \clearpage}
+\newenvironment{cipblock}{%
+ \leavevmode\par\normalfont\fontsize{8\p@}{10\p@}\selectfont
+ \textit{Library of Congress Cataloging-in-Publication Data}\par%
+ \ttfamily\@vobeyspaces\obeylines
+ \parindent\z@\parfillskip\@flushglue\parskip\z@skip}{\par\vskip8pt\relax}
+\newenvironment{dedicationpage}{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \thispagestyle{empty}%
+ \null\vskip1.175in%
+ \centering\normalfont}{\clearpage}
+\def\briefcontentsname{Brief Contents}
+\def\contentsname{Contents in Detail}%
+\AtBeginDocument{\@ifpackageloaded{babel}{%
+ \addto\captionsenglish{%
+ \renewcommand{\contentsname}%
+ {Contents in Detail}}}{}}
+\newcommand\brieftableofcontents{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \bgroup
+ \thispagestyle{empty}%
+ \markboth{}{\briefcontentsname}%
+ \null\vskip0.925in%
+ \list{}{\leftmargin-1.0in\rightmargin0.4in\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{bs}\fontsize{16\p@}{18\p@}\selectfont
+ \MakeUppercase{\briefcontentsname}\par}\vskip40pt%
+ \@starttoc{tbc}%
+ \endlist
+ \egroup}
+\renewcommand\tableofcontents{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \bgroup
+ \thispagestyle{empty}%
+ \markboth{}{\contentsname}%
+ \null\vskip0.175in%
+ \list{}{\leftmargin-1.0in\rightmargin0.6in\labelwidth\z@%
+ \labelsep\z@\listparindent\z@\parsep\z@\itemsep\z@%
+ \topsep\z@\partopsep\z@}%
+ \item\relax
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{bs}\fontsize{16\p@}{18\p@}\selectfont
+ \MakeUppercase{\contentsname}\par}\vskip18pt%
+ \@starttoc{toc}%
+ \endlist
+ \egroup}
+\renewcommand\@dotsep{1.5}
+\renewcommand*\l@part[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{28\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \fontfamily{\sfdefault}\fontseries{bq}\fontsize{12\p@}{14\p@}\selectfont
+ #1}\par
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\renewcommand*\l@chapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \vskip 20\p@
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \fontfamily{\sfdefault}\fontseries{bq}\fontsize{10\p@}{12\p@}\selectfont
+ #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \vskip4\p@\penalty\@highpenalty
+ \endgroup
+ \fi}
+\renewcommand{\l@section}[2]{\@dottedtocline{1}{\z@}{0.25in}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#1}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#2}}
+\renewcommand{\l@subsection}[2]{\@dottedtocline{2}{0.5in}{0.25in}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#1}{%
+\fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{11\p@}\selectfont#2}}
+\newcommand*\l@bpart[2]{%
+ \ifnum \c@tocdepth >-2\relax
+ \addpenalty{-\@highpenalty}%
+ \addvspace{14\p@}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ {\leavevmode
+ \fontfamily{\sfdefault}\fontseries{h}\fontsize{9\p@}{14\p@}\selectfont
+ #1}\par\vskip7\p@%
+ \nobreak
+ \global\@nobreaktrue
+ \everypar{\global\@nobreakfalse\everypar{}}%
+ \endgroup
+ \fi}
+\newcommand*\l@bchapter[2]{%
+ \ifnum \c@tocdepth >\m@ne
+ \addpenalty{-\@highpenalty}%
+ \setlength\@tempdima{1.5em}%
+ \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \leavevmode
+ \fontfamily{\sfdefault}\fontseries{k}\fontsize{9\p@}{14\p@}\selectfont
+ #1\nobreak\leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty
+ \endgroup
+ \fi}
+\renewcommand\mainmatter{%
+ \clearpage
+ {\thispagestyle{empty}\cleardoublepage}%
+ \@mainmattertrue
+ \pagenumbering{arabic}}
+\renewcommand\backmatter{%
+ \clearpage
+ {\thispagestyle{empty}\cleardoublepage}%
+ \@mainmatterfalse}
+\setcounter{secnumdepth}{0}
+\def\sectionmark#1{}%
+\newif\if@firstpara
+\@firstparafalse
+\def\@chapterart{}
+\def\secdef#1#2{\@ifstar{\@dblarg{#2}}{\@dblarg{#1}}}
+\renewcommand\part{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \markboth{}{}%
+ \def\@chapterart{}%
+ \thispagestyle{empty}%
+ \null\vskip0.715in%
+ \secdef\@part\@spart}
+\def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\MakeUppercase{\partname}
+ \thepart\protect\linebreak\penalty\@highpenalty\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{\partname~\thepart: #1}}%
+ \else
+ \addcontentsline{toc}{part}{\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{#1}}%
+ \fi
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \fontfamily{\sfdefault}\fontsize{80pt}{80pt}\fontseries{bc}\selectfont
+ \MakeUppercase{\partname\nobreakspace\thepart}%
+ \par
+ \vskip 0.45in%
+ \fi
+ \fontfamily{\dgdefault}\fontsize{16pt}{16pt}\fontseries{br}\selectfont
+ \MakeUppercase{#2}\par}%
+ \@endpart}
+\def\@spart[#1]#2{%
+ \addcontentsline{toc}{part}{\MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bpart}{\MakeUppercase{#1}}%
+ {\centering
+ \fontfamily{\dgdefault}\fontsize{16pt}{16pt}\fontseries{br}\selectfont
+ \MakeUppercase{#2}\par}%
+ \@endpart}
+\def\@endpart{%
+ \@afterindentfalse
+ \vskip49\p@%
+ \@firstparatrue
+ \@afterheading}
+\def\chapter{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+ \vspace*{0.622in}
+ {\centering
+ \ifnum \c@secnumdepth > \m@ne
+ \refstepcounter{chapter}%
+ \markboth{\@chapapp~\thechapter}{#1}%
+ \typeout{\@chapapp\space\thechapter.}%
+ \addcontentsline{toc}{chapter}{\thechapter%
+ \protect\linebreak\penalty\@highpenalty
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{%
+ \chaptername~\thechapter:~#1}%
+ {\fontfamily{\sfdefault}\fontseries{bc}\fontsize{120pt}{120pt}
+ \selectfont
+ \thechapter\par\nobreak\vskip27pt}%
+ \else
+ \addcontentsline{toc}{chapter}{%
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{#1}%
+ \markboth{#1}{#1}%
+ \fi
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{#2}\par}}\nobreak\vskip25pt\relax%
+ \@firstparatrue
+ \@afterheading}%
+\def\@schapter[#1]#2{%
+ \vspace*{2.747in}
+ {\centering
+ \addcontentsline{toc}{chapter}{%
+ \MakeUppercase{#1}}%
+ \addcontentsline{tbc}{bchapter}{#1}%
+ \markboth{#1}{#1}%
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{#2}\par}}\nobreak\vskip25pt\relax%
+ \@firstparatrue
+ \@afterheading}%
+\def\@afterheading{%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi
+ \if@firstpara
+ \rule{\z@}{49\p@}%
+ \ifx\@chapterart\@empty%
+ \else
+ \makebox[0pt][r]{\raisebox{-0.5in}[0pt][0pt]{%
+ \@chapterart\hspace{0.21in}}}%
+ \parshape=5
+ 0.963in 3.622in
+ 0.913in 3.672in
+ 0.813in 3.772in
+ 0.563in 4.022in
+ 0in \textwidth
+ \fi
+ \fontsize{14pt}{16.5pt}\selectfont%
+ \parskip=3pt
+ \else
+ \parskip=0pt
+ \normalsize\selectfont
+ \fi
+ \@firstparafalse}}%
+\newcommand{\chapterart}[1]{\gdef\@chapterart{#1}}%
+\newcommand{\chapterartfile}[1]{\gdef\@chapterart{%
+ \includegraphics[width=1.264in]{#1}}}%
+\renewcommand{\section}{\everypar{}%
+ \@startsection{section}{1}{-0.75in}{16pt}{6pt}{%
+ \fontfamily{\sfdefault}\fontseries{b}\fontsize{12pt}{16pt}\selectfont}}%
+\renewcommand{\subsection}{\everypar{}%
+ \@startsection{subsection}{2}{0pt}{14pt}{4pt}{%
+ \fontfamily{\sfdefault}\fontshape{it}%
+ \fontseries{bc}\fontsize{12pt}{17pt}\selectfont}}%
+\renewcommand{\subsubsection}{\everypar{}%
+ \@startsection{subsubsection}{3}{0pt}{10pt}{2pt}{%
+ \fontfamily{\sfdefault}\fontseries{bp}\fontsize{10pt}{14pt}%
+ \selectfont}}%
+\setlength{\leftmargin}{0.25in}
+\setlength{\leftmargini}{0.25in}
+\setlength{\leftmarginii}{0.25in}
+\setlength{\leftmarginiii}{0.25in}
+\setlength{\leftmarginiv}{0.25in}
+\setlength{\rightmargin}{0pt}
+\def\@listi{\leftmargin\leftmargini
+ \labelwidth\leftmargin\relax
+ \advance\labelwidth-\labelsep\relax
+ \parsep0\p@\relax
+ \topsep6\p@\relax
+ \itemsep4\p@\relax}
+\let\@listI\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi
+ \advance\labelwidth-\labelsep
+ \parsep0\p@\relax
+ \topsep0\p@\relax
+ \itemsep0\p@\relax}
+\def\itemize{%
+ \ifnum \@itemdepth >\thr@@\@toodeep\else
+ \advance\@itemdepth\@ne
+ \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+ \expandafter
+ \list
+ \csname\@itemitem\endcsname
+ {\def\makelabel##1{##1}}%
+ \fi}
+\def\enumerate{%
+ \ifnum \@enumdepth >\thr@@\@toodeep\else
+ \advance\@enumdepth\@ne
+ \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+ \expandafter
+ \list
+ \csname label\@enumctr\endcsname
+ {\usecounter\@enumctr\def\makelabel##1{##1}}%
+ \fi}
+\renewenvironment{quotation}{%
+ \list{}{\listparindent\parindent\relax
+ \itemindent\listparindent\relax
+ \rightmargin0.5in\relax
+ \leftmargin0.5in\relax}%
+ \item\fontsize{9pt}{11pt}\selectfont}{\endlist}
+\renewenvironment{quote}{%
+ \list{}{\listparindent0pt\relax
+ \itemindent\listparindent\relax
+ \rightmargin0.5in\relax
+ \leftmargin0.5in\relax}%
+ \item\fontsize{9pt}{11pt}\selectfont}{\endlist}
+\newenvironment{note}{%
+ \list{\makebox[0pt][r]{\fontfamily{%
+ \dgdefault}\fontseries{b}\fontsize{9pt}{11pt}\selectfont
+ NOTE\hspace{2em}}}{\listparindent0pt\relax
+ \topsep9\p@\relax
+ \itemindent0\p@\relax
+ \rightmargin0\p@\relax
+ \leftmargin0\p@\relax
+ \labelwidth0\p@\relax
+ \labelsep0\p@}%
+ \item\itshape}{\vspace{-3pt}\endlist}
+\renewcommand\footnoterule{%
+ \kern6\p@
+ \hrule height 0.25pt depth 0pt width 1in
+ \kern0\p@}
+\long\def\@footnotetext#1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@{13.5pt}\ignorespaces#1}%
+ \color@endgroup}}%
+\setlength{\skip\footins}{16\p@ \@plus 4\p@ \@minus 0\p@}
+\renewcommand\@makefntext[1]{%
+ \parindent 0\p@%
+ \RaggedRightParindent0\p@%
+ \noindent
+ \@makefnmark#1}
+\renewcommand \thefigure
+ {\ifnum \c@chapter>\z@ \thechapter-\fi \@arabic\c@figure}
+\renewcommand \thetable
+ {\ifnum \c@chapter>\z@ \thechapter-\fi \@arabic\c@table}
+\DeclareCaptionFormat{nostarchfigfmt}{\fontfamily{\sfdefault}%
+ \fontshape{it}\fontsize{8.5pt}{9pt}\fontseries{k}\selectfont\unskip#1#2#3}
+\DeclareCaptionFormat{nostarchtabfmt}{\fontfamily{\sfdefault}%
+ \fontshape{rm}\fontsize{8.5pt}{9pt}\fontseries{h}\selectfont\unskip#1#2%
+ \fontseries{k}\selectfont#3}
+\captionsetup[figure]{format=nostarchfigfmt,singlelinecheck=off,
+ aboveskip=8pt,belowskip=8pt}
+\captionsetup[table]{format=nostarchtabfmt,singlelinecheck=off,
+ aboveskip=0pt,belowskip=4pt}
+\def\tbfont{%
+ \fontfamily{\sfdefault}\fontseries{k}\fontsize{8pt}{10pt}\selectfont}
+\def\thfont{%
+ \fontfamily{\sfdefault}\fontseries{h}\fontsize{8pt}{10pt}\selectfont}
+\heavyrulewidth=3\p@
+\lightrulewidth=1.5\p@
+\cmidrulewidth=1.5\p@
+\def\bottomrule{\noalign{\ifnum0=`}\fi
+ \@aboverulesep=\aboverulesep
+ \global\@belowrulesep=\belowbottomsep
+ \global\@thisruleclass=\@ne
+ \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
+\belowrulesep=0.7ex
+\belowbottomsep=0.65pt
+\aboverulesep=0.7ex
+\abovetopsep=0.65pt
+\DefineVerbatimEnvironment{Code}{Verbatim}{frame=lines,framerule=0.25pt}
+\FV@AddToHook\FV@ListParameterHook{\vspace{-6pt}}
+\AtBeginDocument{
+ \def\bibsection{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \@nschapterpreamble
+ \vspace*{0.622in}%
+ \addcontentsline{toc}{chapter}{\MakeUppercase{\bibname}}%
+ \addcontentsline{tbc}{bchapter}{\bibname}%
+ {\centering
+ {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\bibname}\par}}\nobreak\vskip25pt\relax%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}}%
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+\renewenvironment{theindex}{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \@afterindentfalse
+ \gdef\@chapterart{}%
+ \if@twocolumn
+ \@restonecolfalse
+ \else
+ \@restonecoltrue
+ \fi
+ \twocolumn[%
+ \@nschapterpreamble
+ \vspace*{0.622in}%
+ \addcontentsline{toc}{chapter}{\MakeUppercase{\indexname}}%
+ \addcontentsline{tbc}{bchapter}{\indexname}%
+ {\centering
+ {\fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\indexname}\par}}%
+ \nobreak\vskip25pt\relax]%
+ \@mkboth{\MakeUppercase\indexname}%
+ {\MakeUppercase\indexname}%
+ \parindent\z@
+ \parskip\z@ \@plus .3\p@\relax
+ \columnseprule \z@
+ \columnsep 0.25in%
+ \let\item\@idxitem}
+{\if@restonecol\onecolumn\else\clearpage\fi}
+\renewcommand\@idxitem{%
+ \par\hangindent0.45in\normalfont\fontsize{9.5\p@}{11.5\p@}\selectfont
+ \raggedright}
+\renewcommand\subitem{\@idxitem \hspace*{0.15in}}
+\renewcommand\subsubitem{\@idxitem \hspace*{0.3in}}
+\renewcommand\indexspace{\par \vskip 14\p@\relax}
+\newcommand\indexgroup[1]{{\fontfamily{\sfdefault}%
+ \fontseries{bc}\fontsize{11\p@}{13\p@}\selectfont#1}\par\vskip4\p@}
+\def\updatesname{Updates}
+\newcommand\updatespage{%
+ \clearpage
+ {\pagestyle{empty}\cleardoublepage}%
+ \everypar{}%
+ \thispagestyle{empty}%
+ \global\@topnum\z@
+ \gdef\@chapterart{}%
+ \vspace*{1.875in}%
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\updatesname}\par\nobreak\vskip40\p@}%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi}}
+\def\colophonname{Colophon}
+\newcommand\colophon{%
+ \everypar{}%
+ \global\@topnum\z@
+ \gdef\@chapterart{}%
+ \vspace*{0.875in}%
+ {\centering
+ \fontfamily{\dgdefault}\fontseries{br}%
+ \fontsize{16pt}{20pt}\selectfont
+ \MakeUppercase{\colophonname}\par\nobreak\vskip40\p@}%
+ \@nobreaktrue
+ \everypar{%
+ \if@nobreak
+ \@nobreakfalse
+ \clubpenalty \@M
+ \setbox\z@\lastbox
+ \else
+ \clubpenalty \@clubpenalty
+ \everypar{}%
+ \fi}\par
+ The fonts used in \emph{\@title} are New Baskerville, Futura, The
+ Sans Mono Condensed and Dogma. The book was typeset with
+ \LaTeXe{} package
+ \texttt{nostarch} by Boris Veytsman
+ \emph{(\csname ver@nostarch.cls\endcsname).}\par}
+\endinput
+%%
+%% End of file `nostarch.cls'.
diff --git a/Master/texmf-dist/tex/latex/nostarch/nshyper.sty b/Master/texmf-dist/tex/latex/nostarch/nshyper.sty
new file mode 100644
index 00000000000..05170592637
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nostarch/nshyper.sty
@@ -0,0 +1,65 @@
+%%
+%% This is file `nshyper.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nostarch.dtx (with options: `nshyper')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from nshyper.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file nostarch.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% \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
+%% Lower-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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\ProvidesPackage{nshyper}
+[2008/04/07 v1.0 Typesetting books for No Starch Press]
+\RequirePackage[breaklinks,colorlinks,linkcolor=black,
+ citecolor=black,pagecolor=black,urlcolor=black,hyperindex,
+ bookmarks=false]{hyperref}
+\AtBeginDocument{%
+ \def\@schapter[#1]#2{%
+ \H@old@schapter[#1]{#2}%
+ \@nschapterpreamble}%
+ \def\@spart[#1]#2{%
+ \H@old@spart[#1]{#2}%
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \xdef\@currentHref{part*.\the\Hy@linkcounter}%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}}}%
+\def\@nschapterpreamble{%
+ \begingroup
+ \let\@mkboth\@gobbletwo
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
+ \endgroup}
+\let\ns@old@maketitle\maketitle
+\def\maketitle{%
+ \hypersetup{pdfauthor=\@author, pdftitle=\@title}%
+ \ns@old@maketitle}
+\endinput
+%%
+%% End of file `nshyper.sty'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 7ca4d96e18c..25dc289bf31 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -124,7 +124,7 @@ my @WorkingTLP = qw(
moderncv mongolian-babel moreverb movie15 mp3d ms msg multicap
multido munich muthesis mwcls mwrite
nag namespc natbib nath nature ncclatex ncctools newlfm nih noitcrul
- nomencl nomentbl notes2bib
+ nomencl nomentbl nostarch notes2bib
ntgclass ntheorem-vn numline numname numprint
oberdiek ocr-latex octavo ofs ogham oldstyle onlyamsmath opcit
ordinalpt
diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
index 34e4dd03cc7..e85e8a70d84 100644
--- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
@@ -39,6 +39,7 @@ depend muthesis
depend nature
depend nddiss
depend nih
+depend nostarch
depend nrc
depend philosophersimprint
depend pracjourn
diff --git a/Master/tlpkg/tlpsrc/nostarch.tlpsrc b/Master/tlpkg/tlpsrc/nostarch.tlpsrc
new file mode 100644
index 00000000000..6e7df471078
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/nostarch.tlpsrc
@@ -0,0 +1,2 @@
+name nostarch
+category Package