Blame isl-0.14/doc/chicago.sty

Packit fb9d21
% -*- LaTeX -*-
Packit fb9d21
%%% ====================================================================
Packit fb9d21
%%%  @LaTeX-style-file{
Packit fb9d21
%%%     author          = "Glenn Paulley",
Packit fb9d21
%%%     version         = "4",
Packit fb9d21
%%%     date            = "31 August 1992",
Packit fb9d21
%%%     time            = "09:42:44 199",
Packit fb9d21
%%%     filename        = "chicago.sty",
Packit fb9d21
%%%     address         = "Data Structuring Group
Packit fb9d21
%%%                        Department of Computer Science
Packit fb9d21
%%%                        University of Waterloo
Packit fb9d21
%%%                        Waterloo, Ontario, Canada
Packit fb9d21
%%%                        N2L 3G1",
Packit fb9d21
%%%     telephone       = "(519) 885-1211",
Packit fb9d21
%%%     FAX             = "(519) 885-1208",
Packit fb9d21
%%%     checksum        = "44674 264 1050 10394",
Packit fb9d21
%%%     email           = "gnpaulle@bluebox.uwaterloo.ca",
Packit fb9d21
%%%     codetable       = "ISO/ASCII",
Packit fb9d21
%%%     keywords        = "",
Packit fb9d21
%%%     supported       = "yes",
Packit fb9d21
%%%     abstract        = "Contains the LaTeX style command definitions
Packit fb9d21
%%%                        for the Chicago BibTeX styles chicago.bst and
Packit fb9d21
%%%                        chicagoa.bst. For details, see below.",
Packit fb9d21
%%%     docstring       = "The checksum field above contains a CRC-16
Packit fb9d21
%%%                        checksum as the first value, followed by the
Packit fb9d21
%%%                        equivalent of the standard UNIX wc (word
Packit fb9d21
%%%                        count) utility output of lines, words, and
Packit fb9d21
%%%                        characters.  This is produced by Robert
Packit fb9d21
%%%                        Solovay's checksum utility.",
Packit fb9d21
%%%  }
Packit fb9d21
%%% ====================================================================
Packit fb9d21
%
Packit fb9d21
% chicago.sty: Style file for use with bibtex style chicago.bst, for
Packit fb9d21
% bibliographies formatted according to the 13th Edition of the Chicago
Packit fb9d21
% Manual of Style.
Packit fb9d21
%
Packit fb9d21
% 'newapa.bst' was made from 'plain.bst', 'named.bst', and 'apalike.bst',
Packit fb9d21
% with lots of tweaking to make it look like APA style, along with tips
Packit fb9d21
% from Young Ryu and Brian Reiser's modifications of 'apalike.bst'.
Packit fb9d21
% newapa.sty formed the basis of this style, chicago.sty. Author-date
Packit fb9d21
% references in newapa.bst formed the basis for chicago.bst. Chicagoa.bst
Packit fb9d21
% supports annotations.
Packit fb9d21
%
Packit fb9d21
% Version 4 (August, 1992):
Packit fb9d21
% - fixed chicago.bst and chicagoa.bst to handle long author lists in
Packit fb9d21
%   sorting
Packit fb9d21
% - fixed chicago.bst and chicagoa.bst so that missing page numbers in
Packit fb9d21
%   ``article'' entries are handled correctly
Packit fb9d21
% - modified chicago.sty to format entries with 2nd and subsequent lines
Packit fb9d21
%   indented.
Packit fb9d21
%
Packit fb9d21
%   Citation format: (author-last-name year)
Packit fb9d21
%             (author-last-name and author-last-name year)
Packit fb9d21
%             (author-last-name et al. year)
Packit fb9d21
%             (author-last-name)
Packit fb9d21
%             author-last-name
Packit fb9d21
%             author-last-name (year)
Packit fb9d21
%             (author-last-name and author-last-name)
Packit fb9d21
%             (author-last-name et al.)
Packit fb9d21
%             (year) or (year,year)
Packit fb9d21
%             year or year,year
Packit fb9d21
%
Packit fb9d21
%   Reference list ordering: alphabetical by author or whatever passes
Packit fb9d21
%    for author in the absence of one.
Packit fb9d21
%
Packit fb9d21
% This BibTeX style has support for abbreviated author lists and for
Packit fb9d21
%    year-only citations.  This is done by having the citations
Packit fb9d21
%    actually look like
Packit fb9d21
%
Packit fb9d21
%    \citeauthoryear{full-author-info}{abbrev-author-info}{year}
Packit fb9d21
%
Packit fb9d21
% The LaTeX style has to have the following (or similar)
Packit fb9d21
%
Packit fb9d21
%     \let\@internalcite\cite
Packit fb9d21
%     \def\fullcite{\def\citeauthoryear##1##2##3{##1, ##3}\@internalcite}
Packit fb9d21
%     \def\fullciteA{\def\citeauthoryear##1##2##3{##1}\@internalcite}
Packit fb9d21
%     \def\shortcite{\def\citeauthoryear##1##2##3{##2, ##3}\@internalcite}
Packit fb9d21
%     \def\shortciteA{\def\citeauthoryear##1##2##3{##2}\@internalcite}
Packit fb9d21
%     \def\citeyear{\def\citeauthoryear##1##2##3{##3}\@internalcite}
Packit fb9d21
%
Packit fb9d21
% -------------------------------------------------------------------------
Packit fb9d21
% This file implements citations for the ``chicago'' bibliography style.
Packit fb9d21
%  Place it in a file called chicago.sty in the TeX search path.
Packit fb9d21
%(Placing it in the same directory as the LaTeX document should also work.)
Packit fb9d21
%
Packit fb9d21
%    This file is a modification of the ``newapa'' LaTeX style,
Packit fb9d21
%    originally adapted by Steven Spencer from the ``apalike'' LaTeX style.
Packit fb9d21
%    It was originally modified by Stephen N. Spencer, with further
Packit fb9d21
%    modifications by Young U. Ryu.
Packit fb9d21
%
Packit fb9d21
% The ``chicago'' BibTeX bibliography style creates citations with labels:
Packit fb9d21
%       \citeauthoryear{author-info}{abbrev. author-info}{year}
Packit fb9d21
%
Packit fb9d21
% These labels are processed by the following LaTeX commands:
Packit fb9d21
%
Packit fb9d21
%  \cite{key}
Packit fb9d21
%    which produces citations with full author list and year.
Packit fb9d21
%    eg. (Brown 1978; Jarke, Turner, Stohl, et al. 1985)
Packit fb9d21
%  \citeNP{key}
Packit fb9d21
%    which produces citations with full author list and year, but without
Packit fb9d21
%    enclosing parentheses:
Packit fb9d21
%    eg. Brown 1978; Jarke, Turner and Stohl 1985
Packit fb9d21
%  \citeA{key}
Packit fb9d21
%    which produces citations with only the full author list.
Packit fb9d21
%    eg. (Brown; Jarke, Turner and Stohl)
Packit fb9d21
%  \citeANP{key}
Packit fb9d21
%    which produces citations with only the full author list, without
Packit fb9d21
%    parentheses eg. Brown; Jarke, Turner and Stohl
Packit fb9d21
%  \citeN{key}
Packit fb9d21
%    which produces citations with the full author list and year, but
Packit fb9d21
%    can be used as nouns in a sentence; no parentheses appear around
Packit fb9d21
%    the author names, but only around the year.
Packit fb9d21
%      eg. Shneiderman (1978) states that......
Packit fb9d21
%    \citeN should only be used for a single citation.
Packit fb9d21
%  \shortcite{key}
Packit fb9d21
%    which produces citations with abbreviated author list and year.
Packit fb9d21
%  \shortciteNP{key}
Packit fb9d21
%    which produces citations with abbreviated author list and year.
Packit fb9d21
%  \shortciteA{key}
Packit fb9d21
%    which produces only the abbreviated author list.
Packit fb9d21
%  \shortciteANP{key}
Packit fb9d21
%    which produces only the abbreviated author list.
Packit fb9d21
%  \shortciteN{key}
Packit fb9d21
%    which produces the abbreviated author list and year, with only the
Packit fb9d21
%    year in parentheses. Use with only one citation.
Packit fb9d21
%  \citeyear{key}
Packit fb9d21
%    which produces the year information only, within parentheses.
Packit fb9d21
%  \citeyearNP{key}
Packit fb9d21
%    which produces the year information only.
Packit fb9d21
%
Packit fb9d21
% Abbreviated author lists use the ``et al.'' construct.
Packit fb9d21
%
Packit fb9d21
% `NP' means `no parentheses'.
Packit fb9d21
%
Packit fb9d21
% This LaTeX style file must be used with the ``chicago'' or ``chicagoa''
Packit fb9d21
% (annotated chicago style) BibTeX styles.
Packit fb9d21
%
Packit fb9d21
\typeout{Using Chicago Manual of Style bibliography: 31 August 1992}
Packit fb9d21
%
Packit fb9d21
% -------------------------------------------------------------------------
Packit fb9d21
%
Packit fb9d21
% Citation macros.
Packit fb9d21
%
Packit fb9d21
\def\chicagoand/{ and }
Packit fb9d21
\def\chicagoetal/{ et~al.}
Packit fb9d21
%
Packit fb9d21
\let\@internalcite\cite
Packit fb9d21
%
Packit fb9d21
\def\cite{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{(##1\if@tempswa , ##2\fi)}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##1\ ##4}\@internalcite}
Packit fb9d21
\def\citeNP{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##1\ ##4}\@internalcite}
Packit fb9d21
\def\citetitleN{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2)\else{)}\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##3\ (##1; ##4}\@citedata}
Packit fb9d21
\def\citeN{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2)\else{)}\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##1\ (##4}\@citedata}
Packit fb9d21
\def\citeA{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{(##1\if@tempswa , ##2\fi)}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##1}\@internalcite}
Packit fb9d21
\def\citeANP{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##1}\@internalcite}
Packit fb9d21
%
Packit fb9d21
\def\shortcite{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{(##1\if@tempswa , ##2\fi)}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##2\ ##4}\@internalcite}
Packit fb9d21
\def\shortciteNP{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##2\ ##4}\@internalcite}
Packit fb9d21
\def\shortciteN{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2)\else{)}\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##2\ (##4}\@citedata}
Packit fb9d21
\def\shortciteA{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{(##1\if@tempswa , ##2\fi)}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##2}\@internalcite}
Packit fb9d21
\def\shortciteANP{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##2}\@internalcite}
Packit fb9d21
%
Packit fb9d21
\def\citeyear{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{(##1\if@tempswa , ##2\fi)}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##4}\@citedata}
Packit fb9d21
\def\citeyearNP{\def\@citeseppen{-1000}%
Packit fb9d21
    \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
Packit fb9d21
    \def\citeauthortitleyear##1##2##3##4{##4}\@citedata}
Packit fb9d21
Packit fb9d21
%
Packit fb9d21
% \@citedata and \@citedatax:
Packit fb9d21
%
Packit fb9d21
% Place commas in-between citations in the same \citeyear, \citeyearNP,
Packit fb9d21
% \citeN, or \shortciteN command.
Packit fb9d21
% Use something like \citeN{ref1,ref2,ref3} and \citeN{ref4} for a list.
Packit fb9d21
%
Packit fb9d21
\def\@citedata{%
Packit fb9d21
	\@ifnextchar [{\@tempswatrue\@citedatax}%
Packit fb9d21
				  {\@tempswafalse\@citedatax[]}%
Packit fb9d21
}
Packit fb9d21
Packit fb9d21
\def\@citedatax[#1]#2{%
Packit fb9d21
\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
Packit fb9d21
  \def\@citea{}\@cite{\@for\@citeb:=#2\do%
Packit fb9d21
    {\@citea\def\@citea{), }\@ifundefined% by Young
Packit fb9d21
       {b@\@citeb}{{\bf ?}%
Packit fb9d21
       \@warning{Citation `\@citeb' on page \thepage \space undefined}}%
Packit fb9d21
{\csname b@\@citeb\endcsname}}}{#1}}%
Packit fb9d21
Packit fb9d21
\@ifpackageloaded{hyperref}{%
Packit fb9d21
  \let\BRorg@citedatax\@citedatax 
Packit fb9d21
  \def\@citedatax[#1]#2{%
Packit fb9d21
    \BRorg@citedatax[#1]{#2}%
Packit fb9d21
    \Hy@backout{#2}%
Packit fb9d21
  }%
Packit fb9d21
}{}
Packit fb9d21
\@ifpackageloaded{hyperref}{%
Packit fb9d21
\def\hyperemph#1{{\em\hyperpage{#1}}}%
Packit fb9d21
\def\bold#1{{\bf\hyperpage{#1}}}%
Packit fb9d21
}{%
Packit fb9d21
\def\hyperemph#1{{\em #1}}%
Packit fb9d21
\def\bold#1{{\bf #1}}%
Packit fb9d21
}
Packit fb9d21
Packit fb9d21
\def\BR@@lbibitem[#1]#2#3\par{%
Packit fb9d21
  \BRorg@bibitem[#1]{#2}#3\hfill\penalty100\hbox{}
Packit fb9d21
  \newblock
Packit fb9d21
  \backref\hfill[{\csname br@#2\endcsname}%
Packit fb9d21
  ]\parskip=-10pt\penalty-10000\hbox{}\nobreak\par
Packit fb9d21
}%
Packit fb9d21
\def\BR@@bibitem#1#2\par{%
Packit fb9d21
  \BRorg@bibitem{#1}#2
Packit fb9d21
  \newblock
Packit fb9d21
  \backref\penalty-100\hbox{}\nobreak\hfill[\hbox{\csname br@#2\endcsname}%
Packit fb9d21
  ]\par
Packit fb9d21
}
Packit fb9d21
\def\thepageorcolor{\thepage}
Packit fb9d21
\def\Hy@backout#1{%
Packit fb9d21
  \@bsphack
Packit fb9d21
  \ifx\@empty\@currentlabel
Packit fb9d21
    \protected@write\@auxout{}{%
Packit fb9d21
      \string\@writefile{brf}{%
Packit fb9d21
        \string\backcite{#1}{{\thepageorcolor}{(document)}{Doc-Start}}%
Packit fb9d21
      }%
Packit fb9d21
    }%
Packit fb9d21
  \else
Packit fb9d21
   \protected@write\@auxout{}{%
Packit fb9d21
     \string\@writefile{brf}{%
Packit fb9d21
       \string\backcite{#1}{{\thepageorcolor}{\@currentlabel}{\@currentHref}}%
Packit fb9d21
     }%
Packit fb9d21
   }%
Packit fb9d21
  \fi
Packit fb9d21
  \@esphack
Packit fb9d21
}
Packit fb9d21
Packit fb9d21
% don't box citations, separate with ; and a space
Packit fb9d21
% also, make the penalty between citations negative: a good place to break.
Packit fb9d21
%
Packit fb9d21
\def\@citex[#1]#2{%
Packit fb9d21
\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
Packit fb9d21
  \def\@citea{}\@cite{\@for\@citeb:=#2\do%
Packit fb9d21
    {\@citea\def\@citea{; }\@ifundefined% by Young
Packit fb9d21
       {b@\@citeb}{{\bf ?}%
Packit fb9d21
       \@warning{Citation `\@citeb' on page \thepage \space undefined}}%
Packit fb9d21
{\csname b@\@citeb\endcsname}}}{#1}}%
Packit fb9d21
Packit fb9d21
% (from apalike.sty)
Packit fb9d21
% No labels in the bibliography.
Packit fb9d21
%
Packit fb9d21
\def\@biblabel#1{}
Packit fb9d21
Packit fb9d21
% (from apalike.sty)
Packit fb9d21
% Set length of hanging indentation for bibliography entries.
Packit fb9d21
%
Packit fb9d21
\newlength{\bibhang}
Packit fb9d21
\setlength{\bibhang}{2em}
Packit fb9d21
Packit fb9d21
% Indent second and subsequent lines of bibliographic entries. Stolen
Packit fb9d21
% from openbib.sty: \newblock is set to {}.
Packit fb9d21
Packit fb9d21
\newdimen\bibindent
Packit fb9d21
\bibindent=1.5em
Packit fb9d21
\@ifundefined{refname}%
Packit fb9d21
   {\@ifundefined{chapter}%
Packit fb9d21
     {\newcommand{\refname}{References}}%
Packit fb9d21
     {\newcommand{\refname}{Bibliography}}%
Packit fb9d21
   }%
Packit fb9d21
   {}%
Packit fb9d21
\@ifundefined{chapter}%
Packit fb9d21
 {\def\thebibliography#1{\section*{\refname\@mkboth
Packit fb9d21
   {\uppercase{\refname}}{\uppercase{\refname}}}
Packit fb9d21
   \addcontentsline{toc}{section}{References}
Packit fb9d21
   \list
Packit fb9d21
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
Packit fb9d21
   \leftmargin\labelwidth
Packit fb9d21
   \advance\leftmargin\labelsep
Packit fb9d21
   \advance\leftmargin\bibindent
Packit fb9d21
   \itemindent -\bibindent
Packit fb9d21
   \listparindent \itemindent
Packit fb9d21
   \parsep \z@
Packit fb9d21
   \usecounter{enumi}}
Packit fb9d21
   \def\newblock{}
Packit fb9d21
   \sloppy
Packit fb9d21
   \sfcode`\.=1000\relax}}
Packit fb9d21
 {\def\thebibliography#1{\chapter*{\refname\@mkboth
Packit fb9d21
   {\refname}{\refname}}
Packit fb9d21
   \addcontentsline{toc}{chapter}{References}
Packit fb9d21
   \list
Packit fb9d21
   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
Packit fb9d21
   \leftmargin\labelwidth
Packit fb9d21
   \advance\leftmargin\labelsep
Packit fb9d21
   \advance\leftmargin\bibindent
Packit fb9d21
   \itemindent -\bibindent
Packit fb9d21
   \listparindent \itemindent
Packit fb9d21
   \parsep \z@
Packit fb9d21
   \usecounter{enumi}}
Packit fb9d21
   \def\newblock{}
Packit fb9d21
   \sloppy
Packit fb9d21
   \sfcode`\.=1000\relax}}