summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/nostarch/nssample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/nostarch/nssample.tex')
-rw-r--r--Master/texmf-dist/doc/latex/nostarch/nssample.tex108
1 files changed, 83 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/latex/nostarch/nssample.tex b/Master/texmf-dist/doc/latex/nostarch/nssample.tex
index ff4cadaeb99..5fbd1c5f8e3 100644
--- a/Master/texmf-dist/doc/latex/nostarch/nssample.tex
+++ b/Master/texmf-dist/doc/latex/nostarch/nssample.tex
@@ -11,11 +11,11 @@
\frontmatter
-\author{A.~U.~Thor, C.~O.~R.~Respondent and W.~R.~Iter}
+\author{Boris Veytsman}
-\title{Pellentesque habitant morbi}
+\title{\emph{No Starch Press} example file}
-\subtitle{Cum sociis natoque penatibus}
+\subtitle{A short demonstration}
\nostarchlogo{vitruvian.jpg}
@@ -25,9 +25,8 @@
\begin{copyrightpage}
- \textbf{\sffamily\MakeUppercase{Pellentesque habitant morbi.}}
- Copyright \textcopyright{} 2008 by A.~U.~Thor, C.~O.~R.~Respondent
- and W.~R.~Iter
+ \textbf{\sffamily\MakeUppercase{\emph{No Start Press} example file}}
+ Copyright \textcopyright{} 2023 by Boris Veytsman
No rights reserved. Any part of this work may be reproduced or
transmitted in any form or by any means, electronic or mechanical,
@@ -116,7 +115,14 @@ Or was I a worm---too low crawling for death?\\
\chapter*[Foreword by R.~E.~Viewer]{Foreword}
-\lipsum[48-60]
+This is a foreword. Note that the chapter\index{chapter} has two
+arguments: the title of the chapter and the title for the table of
+contents\index{table of contents!adding to}. The first paragraph
+is automatically typeset in a larger font.
+
+Now a couple of paragraphs of filler text to make some pages.
+
+\lipsum[1-3]
\bigskip
@@ -128,22 +134,32 @@ December 2007
\end{raggedright}
\mainmatter
-\part{Mi aliquam dictum}
+\part{The first part}
+
+The main part of the book starts with the command, well,
+\path{\mainmatter}\index{main matter}.
+
+Again some filler.
\lipsum[77-78]
-\chapter[Morbi ac orci]{Morbi ac orci et nisl hendrerit
- mollis}
+\chapter[The first chapter]{The first chapter (the long title)}
\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}.
+The first chapter again has two versions of the title. There is a
+special command \path{\chapterartfile}. It adds the art vignette to
+the start of the chapter. Now again some filler---but here we show
+how to add index entries to the text. 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}
+Some additional filler\ldots
+
+
\lipsum[1]
Nam dui ligula\index{ligula}, \emph{fringilla a}, euismod sodales,
@@ -167,6 +183,8 @@ Pellentesque cursus luctus mauris\footnote{\lipsum[3]}.
\section{Nunc\index{nunc} non magna sit amet mi aliquam dictum}
+The index can be even in the section head.
+
\lipsum[32-33]
\subsection{Nam sed augue}
@@ -177,15 +195,17 @@ Pellentesque cursus luctus mauris\footnote{\lipsum[3]}.
\lipsum[36-38]
-\chapter{Proin vel urna}
+\chapter{Footnotes, figures and tables}
\label{chap:proin}
\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.
+
+Some examples of footnotes. 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}.
@@ -228,13 +248,15 @@ sit amet augue tristique gravida.\index{ante}
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}
+ \caption{Vitruvian man. Note that the caption is typeset in a box
+ with the width automatically calculated from the image.}
\label{fig:one}
\end{figure}
@@ -333,11 +355,10 @@ nunc\index{nunc}, venenatis elementum tortor lorem eu erat.
\begin{table}[tp]
\caption[Sed blandit, tortor a auctor]{Sed blandit, tortor a auctor
- imperdiet, wisi nibh\\ ornare leo,
+ imperdiet, wisi nibh ornare leo,
ac dictum nibh enim eu orci}
- \tbfont
- \begin{tabular}{@{}lll}
- \toprule\let\normalfont=\bfseries%
+ \begin{tabular}{lll}
+ \toprule
\thfont Phasellus & \thfont At Dui & \thfont Donec Commodo \\
\midrule
Augue At Nunc & Nunc In sapien & Et magna mollis \\
@@ -365,9 +386,46 @@ 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]
+\lipsum[123-125]
+
+\begin{longtable}{lll}
+ \caption{This is a longtable with a very long caption. It will be
+ typeset in several lines}\label{tab:longtable}\\
+ \toprule
+ \thfont First column & \thfont Second column\\
+ \midrule
+ \endfirsthead
+ \caption[]{This is a longtable with a very long caption. It will be
+ typeset in several lines---continued\ldots}\\
+ \toprule
+ \thfont First column & \thfont Second column\\
+ \midrule
+ \endhead
+ \bottomrule
+ \endfoot
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+ a & b\\
+ ab & bc\\
+ $\alpha$ & $\beta$\\
+\end{longtable}
+
\part{Curabitur vitae}\index{vita|(}
\label{part:Curabitur}