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