summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/camel
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/camel
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff)
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/camel')
-rw-r--r--Master/texmf-dist/doc/latex/camel/sample.tex128
-rw-r--r--Master/texmf-dist/doc/latex/camel/test.tex144
2 files changed, 272 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/camel/sample.tex b/Master/texmf-dist/doc/latex/camel/sample.tex
new file mode 100644
index 00000000000..80157131e94
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/camel/sample.tex
@@ -0,0 +1,128 @@
+%%
+%% This is file `sample.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% index.dtx (with options: `sample')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% You are *not* allowed to modify this file.
+%%
+%% You are *not* allowed to distribute this file.
+%% For distribution of the original source see the terms
+%% for copying and modification in the file index.dtx.
+%%
+%% \CheckSum{755}
+%% \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 \~}
+%% latex sample.tex
+%% makeindex sample
+%% makeindex -o sample.and sample.adx
+%% makeindex -o sample.nnd sample.ndx
+%% makeindex -o sample.lnd sample.ldx
+%% latex sample.tex
+
+\documentclass{book}
+\usepackage{index}
+
+\listfiles
+
+\makeindex
+\newindex{aut}{adx}{and}{Name Index}
+\newindex{not}{ndx}{nnd}{List of Notation}
+
+\newindex[theenumi]{list}{ldx}{lnd}{Items}
+
+\shortindexingon
+
+\proofmodetrue
+
+\def\aindex{\index*[aut]}
+
+\begin{document}
+
+\tableofcontents
+
+\newpage
+
+\chapter{Here is a ^[aut]{chapter} title}
+
+\section{Section header\index[aut]{section}}
+
+Here is some text.\index{subject}
+
+Here is \index[not]{notation}some more \index[not]{sin@$\sin$}
+text.
+
+\newpage
+
+Here is some ^{more} _[not]{notation} text.
+
+Here is yet more \aindex{text}.
+
+\section{Another Section header _[aut]{section2}}
+
+And here is some math: $x^1_b$.
+
+Here is an ^[aut]{index} entry \fbox{inside an
+\index[not]{min@$\min$}fbox}
+
+\fbox{Here is an ^[aut]{entry} in a box.}
+
+\section{An indexed list environment}
+
+\begin{enumerate}
+
+\item
+First item
+
+\item
+Second item\index[list]{second item}
+
+\item
+Third item
+
+\newpage
+
+\item
+Fourth item
+
+\item
+Fifth item\index[list]{fifth item}
+
+\item
+Sixth item
+
+\end{enumerate}
+
+\printindex[not]
+
+\printindex[aut][Here is a prologue for the author index.
+Note that it is set in a single column at the top of the
+first page of the index.]
+
+\printindex[list]
+
+\printindex
+
+\end{document}
+\endinput
+%%
+%% End of file `sample.tex'.
diff --git a/Master/texmf-dist/doc/latex/camel/test.tex b/Master/texmf-dist/doc/latex/camel/test.tex
new file mode 100644
index 00000000000..a0e99effbed
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/camel/test.tex
@@ -0,0 +1,144 @@
+%%
+%% This is file `test.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% camel.dtx (with options: `testtex')
+%%
+%% This file is part of the Camel package.
+%% ---------------------------------------
+%% This is a generated file.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% You are not allowed to change this file. You may however copy
+%% this file to a file with a different name and then change the
+%% copy if (a) you do not charge for the modified code, (b) you
+%% acknowledge Camel and its author(s) in the new file, if it
+%% is distributed to others, and (c) you attach these same
+%% conditions to the new file.
+%%
+%% The above conditions do not apply to the demonstration
+%% file test.tex.
+%%
+%% You are not allowed to distribute this file alone. You are not
+%% allowed to take money for the distribution or use of this file
+%% (or a changed version) except for a nominal charge for copying
+%% etc.
+%%
+%% You are allowed to distribute this file under the condition that
+%% it is distributed with all of its contents, intact.
+%%
+%% For error reports, or offers to help make Camel a more powerful,
+%% friendlier, and better package, please contact me on
+%% `fb' at soas.ac.uk
+%%
+\documentclass{article}
+\usepackage{camel}
+
+%\citationsubject[o=sta,i=stb]{statutes}{Statutory Materials}
+%\citationsubject[o=sec,i=seb]{second}{Secondary Literature}
+%\citationsubject[o=cas,i=cab]{case}{Cases}
+
+\begin{document}
+\citationstyle{law}
+\citationdata{camel}
+
+\section*{{\sc Camel} tests and examples\footnotemark{}{} }
+\footnotetext{Note that, in addition to admiring the examples in
+ this document, you can tinker with it to produce different
+ kinds of bibliographies. See the comments in the file for
+ suggestions.}
+
+We currently have support for articles (including newspaper
+articles), items in collections of
+essays, books, sections of books, ephemeral booklets, masters theses,
+Commonwealth, US and Japanese cases, and statutes from a few
+jurisdictions. An example of each is given below, first without,
+then with a pinpoint. This does not give a complete picture of
+the `formatting tree', it''s just a sample.
+
+\begin{itemize}
+\item Ordinary articles
+ \begin{itemize}
+ \item \source[s=second]{macauley}
+ \item \source[f,s=second]{macauley}[56]
+ \end{itemize}
+\item Newspaper articles
+ \begin{itemize}
+ \item \source[s=second]{appleyard-heed}
+ \item \source[f,s=second]{appleyard-heed}[21] (A silly example,
+ since there's only one page to the piece!)
+ \end{itemize}
+\item Articles in collections of essays
+ \begin{itemize}
+ \item \source[s=second]{haley-land-lease}
+ \item \source[f,s=second]{haley-land-lease}[152]
+ \end{itemize}
+\item Books
+ \begin{itemize}
+ \item \source[f,s=second]{latex-companion}
+ \item \source[f,s=second]{latex-companion}[371]
+ \end{itemize}
+\item Sections of books
+ \begin{itemize}
+ \item \source[f,s=second]{companion-bibs}
+ \item \source[f,s=second]{companion-bibs}[374-75] (The BibTeX{}
+ processing flow shown here is simplified for {\sc Camel} users)
+ \end{itemize}
+\item Ephemeral booklets
+ \begin{itemize}
+ \item \source[f,s=second]{sansom-constitution}
+ \item \source[f,s=second]{sansom-constitution}[2]
+ \end{itemize}
+\item Masters theses
+ \begin{itemize}
+ \item \source[f,s=second]{homma-derivative}
+ \item \source[f,s=second]{homma-derivative}[23]
+ \end{itemize}
+\item Commonwealth law cases
+ \begin{itemize}
+ \item \source[f,s=case]{heap}
+ \item \source[f,s=case]{heap}[578]\footnote{Notice how the
+ pinpointed citation gives only as many parallel as are
+ specified in the pinpoint. Compare this with the next example.}
+ \end{itemize}
+\item US law cases
+ \begin{itemize}
+ \item \source[f,s=case]{bradshaw-v-us}
+ \item \source[f,s=case]{bradshaw-v-us}[145=366]
+ \end{itemize}
+\end{itemize}
+Titles that end in a numeral are a special treat. {\sc Camel}
+is not tricked by them.
+\begin{itemize}
+ \item \source[s=statutes]{maki-constitution}[23]
+ \item \source[f,s=statutes]{maki-constitution}
+\end{itemize}
+Selective suppression of author, title, or the entire citation is
+supported.
+\begin{itemize}
+ \item \source[a,f,s=second]{homma-derivative}
+ \item \source[t,f,s=second]{homma-derivative}
+ \item \source[n,s=second]{homma-derivative} (invisible)
+\end{itemize}
+
+% If you uncomment the \citationsubject lines above,
+% you can comment out the `all' entry below, run
+% makeindex in the appropriate way over the output
+% files, uncomment the three special bibliography
+% declarations below, and print a whole different sort
+% of document. There are a few bugs in the way
+% bibliographies are set up. Sorting them out will
+% best be done once BibTeX 1.0 is available, since
+% integrating with the new BibTeX will affect the same
+% portions of the code.
+\printbibliography[labels=false]{all}
+%\printbibliography{statutes}
+%\printbibliography{case}
+%\printbibliography{second}
+\end{document}
+\endinput
+%%
+%% End of file `test.tex'.