summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/bibtex/apacite
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-08 21:59:50 +0000
committerKarl Berry <karl@freefriends.org>2013-07-08 21:59:50 +0000
commit4550b1cb3cc63b73ebca0d72cafc0e7b8c6f9397 (patch)
treebd988c6cc4f5dd56173db354af36fc2f655879de /Master/texmf-dist/source/bibtex/apacite
parent4fa56fbb23e2c4f58ec892731a6acb431846c5da (diff)
apacite (8jul13)
git-svn-id: svn://tug.org/texlive/trunk@31135 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/bibtex/apacite')
-rw-r--r--Master/texmf-dist/source/bibtex/apacite/apacite.drv8
-rw-r--r--Master/texmf-dist/source/bibtex/apacite/apacite.dtx315
-rw-r--r--Master/texmf-dist/source/bibtex/apacite/apacite.ins18
3 files changed, 219 insertions, 122 deletions
diff --git a/Master/texmf-dist/source/bibtex/apacite/apacite.drv b/Master/texmf-dist/source/bibtex/apacite/apacite.drv
index 1379e1c0c04..5ebef50f0df 100644
--- a/Master/texmf-dist/source/bibtex/apacite/apacite.drv
+++ b/Master/texmf-dist/source/bibtex/apacite/apacite.drv
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 1994-8888 Erik Meijer and any individual authors listed
+%% Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
%% elsewhere in this file.
%%
%% This file is part of the `apacite' package.
@@ -48,13 +48,13 @@
%% do not change apacite.dtx for this purpose.
%%
\ProvidesFile{apacite.drv}
- [2012/02/25 v6.01 apacite documentation driver file]
+ [2013/07/04 v6.02 apacite documentation driver file]
\documentclass{ltxdoc}
%\documentclass[twoside]{ltxdoc}
%\documentclass[a4paper]{ltxdoc}
%\documentclass[twoside,a4paper]{ltxdoc}
%%
-\usepackage{apacdoc}[2012/02/25 v6.01]
+\usepackage{apacdoc}[2013/07/04 v6.02]
%% The |\providecommand|s make sure we don't get an error during
%% installation.
%% Define document-specific macros that are not interesting for
@@ -86,7 +86,7 @@
%% \usepackage{german}
%%
%% Loading apacite with author index option.
-\usepackage[ltxemindex,bibnewpage]{apacite}[2012/02/25 v6.01]
+\usepackage[ltxemindex,bibnewpage]{apacite}[2013/07/04 v6.02]
%%
\raggedbottom
%%
diff --git a/Master/texmf-dist/source/bibtex/apacite/apacite.dtx b/Master/texmf-dist/source/bibtex/apacite/apacite.dtx
index 92232a40317..bdfe93f0eea 100644
--- a/Master/texmf-dist/source/bibtex/apacite/apacite.dtx
+++ b/Master/texmf-dist/source/bibtex/apacite/apacite.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 1994-2012 Erik Meijer and any individual authors listed
+% Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
% elsewhere in this file.
%
% This file is part of the `apacite' package.
@@ -56,7 +56,7 @@
% \iffalse
%<*dtx>
\ProvidesFile{apacite.dtx}
- [2012/02/25 v6.01 apacite dtx file]
+ [2013/07/04 v6.02 apacite dtx file]
%</dtx>
%<driver>\ProvidesFile{apacite.drv}
%<package|docpkg>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
@@ -82,27 +82,27 @@
%^^A command such that the value of the command is written to the file instead
%^^A of the name.
%^^A
-%<driver> [2012/02/25 v6.01 apacite documentation driver file]
-%<package> [2012/02/25 v6.01 APA citation]
-%<docpkg> [2012/02/25 v6.01 apacite documentation style]
-%<english> [2012/02/25 v6.01 apacite language file]
-%<dutch> [2012/02/25 v6.01 apacite language file]
-%<finnish> [2012/02/25 v6.01 apacite language file]
-%<german> [2012/02/25 v6.01 apacite language file]
-%<ngerman> [2012/02/25 v6.01 apacite language file]
-%<greek> [2012/02/25 v6.01 apacite language file]
-%<norsk> [2012/02/25 v6.01 apacite language file]
-%<spanish> [2012/02/25 v6.01 apacite language file]
-%<swedish> [2012/02/25 v6.01 apacite language file]
-%<xmpl>%% [2012/02/25 v6.01 LaTeX file for examples]
-%<bibdb>%% [2012/02/25 v6.01 bibliography database for examples]
-%<bibstyle&!annotated>%% [2012/02/25 v6.01 APA bibliography style]
+%<driver> [2013/07/04 v6.02 apacite documentation driver file]
+%<package> [2013/07/04 v6.02 APA citation]
+%<docpkg> [2013/07/04 v6.02 apacite documentation style]
+%<english> [2013/07/04 v6.02 apacite language file]
+%<dutch> [2013/07/04 v6.02 apacite language file]
+%<finnish> [2013/07/04 v6.02 apacite language file]
+%<german> [2013/07/04 v6.02 apacite language file]
+%<ngerman> [2013/07/04 v6.02 apacite language file]
+%<greek> [2013/07/04 v6.02 apacite language file]
+%<norsk> [2013/07/04 v6.02 apacite language file]
+%<spanish> [2013/07/04 v6.02 apacite language file]
+%<swedish> [2013/07/04 v6.02 apacite language file]
+%<xmpl>%% [2013/07/04 v6.02 LaTeX file for examples]
+%<bibdb>%% [2013/07/04 v6.02 bibliography database for examples]
+%<bibstyle&!annotated>%% [2013/07/04 v6.02 APA bibliography style]
%<*xbibstyle&!annotated>
-%% [2012/02/25 v6.01 APA bibl. style with author index info]
+%% [2013/07/04 v6.02 APA bibl. style with author index info]
%</xbibstyle&!annotated>
-%<bibstyle&annotated>%% [2012/02/25 v6.01 APA annotated bibliography style]
+%<bibstyle&annotated>%% [2013/07/04 v6.02 APA annotated bibliography style]
%<*xbibstyle&annotated>
-%% [2012/02/25 v6.01 APA annotated bibl. style with author index info]
+%% [2013/07/04 v6.02 APA annotated bibl. style with author index info]
%</xbibstyle&annotated>
%
%<*install>
@@ -116,7 +116,7 @@
%% This file will generate fast loadable files and documentation
%% driver files from apacite.dtx when run through LaTeX.
%%
-%% Copyright (C) 1994-2012 Erik Meijer and any individual authors listed
+%% Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
%% elsewhere in this file.
%%
%% This file is part of the `apacite' package.
@@ -157,7 +157,7 @@
This is a generated file.
-Copyright (C) 1994-2012 Erik Meijer and any individual authors listed
+Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
elsewhere in this file.
This file is part of the `apacite' package.
@@ -197,7 +197,7 @@ the generated files.
This is a generated file.
-Copyright (C) 1994-2012 Erik Meijer and any individual authors listed
+Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
elsewhere in this file.
This file is part of the `apacite' package.
@@ -430,7 +430,7 @@ do not change apacite.dtx for this purpose.
%<driver>%\documentclass[a4paper]{ltxdoc}
%<driver>%\documentclass[twoside,a4paper]{ltxdoc}
%%
-\usepackage{apacdoc}[2012/02/25 v6.01]
+\usepackage{apacdoc}[2013/07/04 v6.02]
%% The |\providecommand|s make sure we don't get an error during
%% installation.
%% Define document-specific macros that are not interesting for
@@ -462,7 +462,7 @@ do not change apacite.dtx for this purpose.
%% \usepackage{german}
%%
%% Loading apacite with author index option.
-\usepackage[ltxemindex,bibnewpage]{apacite}[2012/02/25 v6.01]
+\usepackage[ltxemindex,bibnewpage]{apacite}[2013/07/04 v6.02]
%%
\raggedbottom
%%
@@ -523,9 +523,11 @@ do not change apacite.dtx for this purpose.
% and extended language support; more extensive customizability.}
% \changes{v4.05}{2009/03/01}{Some bug fixes; extended language support;
% annotated bibliographies.}
-% \changes{v6.00}{2012/02/25}{First step towards compliance with v6 of
+% \changes{v6.00}{2012/02/14}{First step towards compliance with v6 of
% the APA manual; version number now indicates which version of the APA
% manual is implemented.}
+% \changes{v6.01}{2012/02/25}{Bug fix}
+% \changes{v6.02}{2013/07/04}{Bug fixes}
%
% \GetFileInfo{apacite.sty}
%
@@ -647,11 +649,13 @@ will be inconvenient to other users, then I will not pursue it.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection*{New in this version}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-The current version \fileversion{} \APACversiondate{2012/02/25} fixes a
-small but annoying bug in version v6.00 \APACversiondate{2012/02/14},
-which only affected documents compiled with the \pkgoption{natbibapa}
-option. In the rest of this document, ``the previous version'' should be
-interpreted as ``the \APACversiondate{2009/03/01} version''.
+
+The current version \fileversion{} \APACversiondate{2013/07/04} and
+the previous one (v6.01, \APACversiondate{2012/02/25}) fix a few bugs
+in version v6.00 \APACversiondate{2012/02/14}, which affected
+documents compiled with the \pkgoption{natbibapa} option. In the rest
+of this document, ``the previous version'' should be interpreted as
+``the \APACversiondate{2009/03/01} version''.
The \APACversiondate{2009/03/01} version of \pkg{apacite}
implemented the rules in the 5th edition of the APA manual. The current
@@ -6002,6 +6006,7 @@ short form, of the examples.
% The next options determine whether the bibliography should be a section or
% a chapter.
% \begin{macro}{\if@sectionbib}
+% \begin{macro}{\if@sectionbibdefault}
% With the \pkgoption{sectionbib} option, the bibliography is a section. This
% is typically used with the \pkg{chapterbib} package; then each chapter has a
% bibliography section. The \pkgoption{nosectionbib} option makes the
@@ -6009,18 +6014,27 @@ short form, of the examples.
% are requested, \pkg{apacite} tries to guess the most logical choice. The
% bibliography is a section if chapters are not defined or if we are in the
% ``mainmatter'' of a document. Otherwise, i.e., in the ``backmatter'' of a
-% document that has chapters, it is a chapter.
+% document that has chapters, it is a chapter. |\if@sectionbibdefault|
+% registers whether the default should be used (neither
+% \pkgoption{sectionbib} nor \pkgoption{nosectionbib} chosen) and if
+% the default is not used, |\if@sectionbib| registers which option was
+% chosen.
% \begin{macrocode}
+\newif\if@sectionbib
+\newif\if@sectionbibdefault
+\@sectionbibfalse
+\@sectionbibdefaulttrue
\DeclareOption{sectionbib}{%
- \@ifundefined{@sectionbibtrue}{\newif\if@sectionbib}{}%
+ \@sectionbibdefaultfalse
\@sectionbibtrue
}
\DeclareOption{nosectionbib}{%
- \@ifundefined{@sectionbibfalse}{\newif\if@sectionbib}{}%
+ \@sectionbibdefaultfalse
\@sectionbibfalse
}
% \end{macrocode}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\if@tocbib}
% These options determine whether the bibliography should be in the table of
@@ -7653,8 +7667,14 @@ short form, of the examples.
\fi
}
\if@APAC@natbib@apa
-\AtEndOfPackage{%
-\RequirePackage[longnamesfirst,sort]{natbib}
+ \AtEndOfPackage{%
+ \if@sectionbibdefault
+ \RequirePackage[longnamesfirst,sort]{natbib}
+ \else\if@sectionbib
+ \RequirePackage[longnamesfirst,sort,sectionbib]{natbib}
+ \else
+ \RequirePackage[longnamesfirst,sort]{natbib}
+ \fi\fi
% \end{macrocode}
%
% \begin{macro}{\NAT@parse@date}
@@ -7732,7 +7752,9 @@ short form, of the examples.
% \end{macrocode}
% \pkg{natbib} is inconsistent with adding space.
% \begin{macrocode}
- \renewcommand{\BBAY}{,\ignorespaces }%
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBC}{;}%
+ \renewcommand{\BBYY}{,}%
\bibpunct[\BBN ]{\BBOP }{\BBCP }{\BBC }{a}{\BBAY }{\BBYY }%
\setlength{\bibhang}{2.5em}%
\setlength{\bibsep}{0pt}%
@@ -8136,7 +8158,7 @@ short form, of the examples.
% Else, chapter is defined. Check first whether an explicit option has been
% chosen.
% \begin{macrocode}
- {\@ifundefined{@sectionbibtrue}%
+ {\if@sectionbibdefault
% \end{macrocode}
% No explicit option chosen, so we have to speculate. If \cmd{\mainmatter}
% is not defined (typically a report), assume that the bibliography is
@@ -8157,12 +8179,13 @@ short form, of the examples.
% \end{macrocode}
% If an explicit option has been chosen, simply use this.
% \begin{macrocode}
- {\if@sectionbib
+ \else
+ \if@sectionbib
\st@rtbibsection
\else
\st@rtbibchapter
\fi
- }%
+ \fi
}%
% \end{macrocode}
% Insert some code between the chapter or section heading and the reference
@@ -11493,6 +11516,12 @@ short form, of the examples.
\renewcommand{\BCBT}{,}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{,}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting
\renewcommand{\APACmonth}[1]{\ifcase #1\or January\or February\or March\or
@@ -11855,6 +11884,12 @@ short form, of the examples.
\renewcommand{\BCBT}{}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting
\renewcommand{\APACmonth}[1]{\ifcase #1\or januari\or februari\or maart\or
@@ -12108,6 +12143,12 @@ short form, of the examples.
\renewcommand{\BCBT}{,}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{,}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting, adapted from babel's finnish.dtx
\renewcommand{\APACmonth}[1]{\ifcase #1\or
@@ -12290,6 +12331,12 @@ short form, of the examples.
\renewcommand{\BCBT}{,}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{,}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{~;}%
+\fi
%%
%% Date formatting
\renewcommand{\APACmonth}[1]{\ifcase #1\or janvier\or f\'evrier\or mars\or
@@ -12548,6 +12595,12 @@ short form, of the examples.
\renewcommand{\BBN}{, }% Zwischen Zitat und Postfix (default ", ")
\renewcommand{\BCBT}{}% Zwischen 2 Autoren (zus. zu "&", default ",")
\renewcommand{\BCBL}{}% Zwischen 3 o. mehr Autoren (zus. zu "&", default ",")
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting, adapted from babel's germanb.dtx
\renewcommand{\APACmonth}[1]{\ifcase #1\or
@@ -12855,6 +12908,12 @@ short form, of the examples.
\renewcommand{\BCBT}{,}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{,}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting. Adapted from babel's greek.dtx
\renewcommand{\APACmonth}[1]{\textgreek{\ifcase #1\or
@@ -13042,6 +13101,12 @@ short form, of the examples.
\renewcommand{\BCBT}{}% no comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{}% no comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting; adapted from babel's norsk.dtx
\renewcommand{\APACmonth}[1]{\ifcase #1\or
@@ -13262,6 +13327,12 @@ short form, of the examples.
\renewcommand{\BCBT}{,}% comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{,}% comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting; adapted from babel's spanish.dtx
\renewcommand{\APACmonth}[1]{\ifcase #1\or enero\or febrero\or
@@ -13507,6 +13578,12 @@ short form, of the examples.
\renewcommand{\BCBT}{}% no comma between authors in ref. list when no. of
%% authors = 2
\renewcommand{\BCBL}{}% no comma before last author when no. of authors > 2
+%% Remove excess space with the natbibapa option
+\if@APAC@natbib@apa
+ \renewcommand{\BBAY}{,}%
+ \renewcommand{\BBYY}{,}%
+ \renewcommand{\BBC}{;}%
+\fi
%%
%% Date formatting; adapted from babel's swedish.dtx
\renewcommand{\APACmonth}[1]{\ifcase #1\or
@@ -15535,12 +15612,12 @@ short form, of the examples.
\author{Erik Meijer\\
\textsf{apacite at gmail.com}
}
-\date{2012/02/25}
+\date{2013/07/04}
\begin{document}
\maketitle
\begin{abstract}
-This document tests \textsf{apacite} [2012/02/25 v6.01]. See the
+This document tests \textsf{apacite} [2013/07/04 v6.02]. See the
\textsf{apacite} documentation for more information.
\end{abstract}
@@ -16732,15 +16809,15 @@ FUNCTION {identify.apacite.version}
%<*!annotated>
%<bibstyle> "apacite.bst"
%<xbibstyle> "apacitex.bst"
-%<bibstyle> " [2012/02/25 v6.01 APA bibliography style]"
-%<xbibstyle> " [2012/02/25 v6.01 APA bibl. style with author index info]"
+%<bibstyle> " [2013/07/04 v6.02 APA bibliography style]"
+%<xbibstyle> " [2013/07/04 v6.02 APA bibl. style with author index info]"
%</!annotated>
%<*annotated>
%<bibstyle> "apacann.bst"
%<xbibstyle> "apacannx.bst"
-%<bibstyle> " [2012/02/25 v6.01 APA annotated bibliography style]"
+%<bibstyle> " [2013/07/04 v6.02 APA annotated bibliography style]"
%<*xbibstyle>
-" [2012/02/25 v6.01 APA annotated bibl. style with author index info]"
+" [2013/07/04 v6.02 APA annotated bibl. style with author index info]"
%</xbibstyle>
%</annotated>
%<*bibstyle|xbibstyle>
@@ -16769,6 +16846,7 @@ ENTRY
key
lastchecked
month
+ nihms
note
number
organization
@@ -16783,6 +16861,7 @@ ENTRY
originalvolume
originalyear
pages
+ pmcid
publisher
school
series
@@ -16796,7 +16875,8 @@ ENTRY
volume
year
}
- { title.number %% for sorting titles
+ { cite.order %% order of first citation
+ title.number %% for sorting titles
cite.initials %% dummy (0-1) indicating whether or not
%% initials of the 1st author must
%% be used for citing
@@ -16811,6 +16891,7 @@ ENTRY
%% should be cited and whether a, b, etc.
%% after year is necessary
title.sort.label %% for sorting titles
+ citeorder.sort.label %% for sorting by citation order
type.2 %% Replacement for type with misc entries and
%% entries that revert to misc.
}
@@ -16847,6 +16928,11 @@ FUNCTION {test} { #0 }
%<xbibstyle>FUNCTION {make.index} { #1 }
%<*bibstyle|xbibstyle>
% \end{macrocode}
+% A small function that indicates whether the reference list must be
+% sorted.
+% \begin{macrocode}
+FUNCTION {unsorted} { #0 }
+% \end{macrocode}
% Month macros. We use numbers, along with a \LaTeX{} function, which
% translates them into words. This allows language-specific deviations.
% \begin{macrocode}
@@ -18878,62 +18964,55 @@ FUNCTION {make.definitive.author.sort.label}
{ author make.definitive.name.sort.label }
if$
}
-
-
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Make final sort key .
-
+% \end{macrocode}
+% Make the final sort key. The general strategy is the following. The
+% ordinary situation is that an author or editor-acting-as-author
+% is available. In this case, make an author-with-initials label (L1)
+% of one of the forms
+% \begin{verbatim}
+% "Last1 F1 Last2 F2 ... LastN FN"
+% "Last1 F1 Last2 F2 ... Last6 F6 zzzz"
+% \end{verbatim}
+% where $N \leq 6$ is the total number of authors, and ``|zzzz|''
+% represents et al.\ if there are more than 6 authors. If there is
+% no author, editor, and key, define the title or its substitute as a
+% sort key. Note that there are two spaces between last name and first
+% name and three spaces between authors.
+%
+% Next format a year label (L2) that is equal to the \fieldname{year}
+% field, unless that is missing or an explicit ``no date'', in which
+% case it is |0000| (and thus comes first) or if it is an explicit
+% in press (|\BIP|), in which case the year label is |9999| (and thus
+% it comes last). We don't use the \fieldname{originalyear} field here
+% yet. We add |/|\fieldname{month}|/|\fieldname{day} to the year label
+% when available.
+%
+% From earlier sorting of titles, we have the sorted title number. This
+% is converted to a string, which gives title label (L3).
+%
+% Then the final sorting label (|author.year.sort.label|) is a
+% concatenation of L1, L2, and L3, with four spaces between them. This
+% can then be sorted.
+%
+% If the reference type is 1, then possibly the editor acts as author;
+% if it is 2, then editor does not act as author; if it is 3, then the
+% \fieldname{key} field should have been used; if it is 0, this is an
+% unknown reference type.
+% \begin{macrocode}
FUNCTION {make.final.sort.key}
-{ %
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % General strategy:
- %
- % Ordinary situation: author or editor-acting-as-author
- % available.
- % => Make author-with-initials label (L1) of one of the forms
- % "Last1 F1 Last2 F2 ... LastN FN"
- % "Last1 F1 Last2 F2 ... Last6 F6 zzzz"
- % (where N <= 6 is the total number of authors, and
- % "zzzz" represents et al. if there are more than 6 authors)
- % No author, editor, and key: define title or substitute as sort key.
- %
- % Then format year label (L2) of one of the forms:
- % "0000" (missing year or explicit `no date')
- % "9999" (`in press')
- % year (otherwise; don't use originalyear here yet)
- % Add "/"month"/"day to the latter when available.
- %
- % From earlier sorting of titles, we have title number. Convert
- % to string, which gives title label (L3) .
- %
- % Then final sorting label (author.year.sort.label) is a
- % concatenation of
- % L1
- % " "
- % L2
- % " "
- % L3
- %
- % This can then be sorted.
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %
- %
- % Find out which field
- % to use as author.
- %
- % Check reference type:
- % if result is 1 then possibly editor acts as author
- % 2 then editor does not act as author
- % 3 then key should have been used
- % 0 then unknown reference type
- ref.type #2 =
+{ ref.type #2 =
{ make.definitive.author.sort.label }
{ make.definitive.author.editor.sort.label }
if$
- %
- author.year.sort.label 'sort.key$ :=
+% \end{macrocode}
+% With the \pkgoption{unsorted} option, the reference listed is sorted
+% in the order in which \BibTeX{} reads the references, that is, in
+% order of first citation.
+% \begin{macrocode}
+ unsorted
+ { citeorder.sort.label 'sort.key$ := }
+ { author.year.sort.label 'sort.key$ := }
+ if$
}
@@ -19030,18 +19109,21 @@ FUNCTION {make.sort.title}
'title.sort.label :=
title.sort.label 'sort.key$ :=
}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Make title number: rank number of sorted title .
-
+% \end{macrocode}
+% Make title number: rank number of sorted title.
+% \begin{macrocode}
FUNCTION {make.title.number}
{ title.sort.label old.label =
- { %
- % A tie: old and new label are the same .
+ {
+% \end{macrocode}
+% A tie: old and new label are the same.
+% \begin{macrocode}
old.number 'title.number :=
}
- { %
- % The usual situation: titles are different.
+ {
+% \end{macrocode}
+% The usual situation: titles are different.
+% \begin{macrocode}
old.number #1 + 'title.number :=
title.number 'old.number :=
title.sort.label 'old.label :=
@@ -19049,6 +19131,14 @@ FUNCTION {make.title.number}
if$
}
% \end{macrocode}
+% Order in which reference was first cited (integer and conversion to string).
+% \begin{macrocode}
+FUNCTION {make.citeorder.number}
+{ old.number #1 + 'cite.order :=
+ cite.order 'old.number :=
+ cite.order conv.int.to.str citeorder.sort.label :=
+}
+% \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \subsection{Name formatting}
@@ -22525,8 +22615,8 @@ FUNCTION {initialize}
{ %
% Maximum number of names to be formatted .
#6 'name.max :=
-% #250 'entry.max$ :=
-% #5000 'global.max$ :=
+%% #250 'entry.max$ :=
+%% #5000 'global.max$ :=
}
FUNCTION {init.old.number}
@@ -22619,6 +22709,13 @@ EXECUTE { identify.apacite.version }
EXECUTE { initialize }
+% Store the citation order in an integer variable, and a corresponding
+% string variable that can be used for sorting.
+
+EXECUTE { init.old.number }
+
+ITERATE { make.citeorder.number }
+
% Sort items by title in order to replace each title by
% its number in later sorting .
diff --git a/Master/texmf-dist/source/bibtex/apacite/apacite.ins b/Master/texmf-dist/source/bibtex/apacite/apacite.ins
index 0ecec8fc23a..1328acc3a9b 100644
--- a/Master/texmf-dist/source/bibtex/apacite/apacite.ins
+++ b/Master/texmf-dist/source/bibtex/apacite/apacite.ins
@@ -2,7 +2,7 @@
%% This file will generate fast loadable files and documentation
%% driver files from apacite.dtx when run through LaTeX.
%%
-%% Copyright (C) 1994-8888 Erik Meijer and any individual authors listed
+%% Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
%% elsewhere in this file.
%%
%% This file is part of the `apacite' package.
@@ -23,8 +23,8 @@
%% apacite.sty, apacdoc.sty, apacite.drv,
%% apacite.bst, apacitex.bst, apacann.bst, apacannx.bst,
%% apa5ex.bib, apacxmpl.tex,
-%% english.apc, dutch.apc, finnish.apc, french.apc,
-%% german.apc, ngerman.apc, greek.apc, norsk.apc,
+%% english.apc, dutch.apc, finnish.apc, french.apc,
+%% german.apc, ngerman.apc, greek.apc, norsk.apc,
%% spanish.apc, swedish.apc.
%%
%% This work has the LPPL maintenance status `maintained'
@@ -43,7 +43,7 @@
This is a generated file.
-Copyright (C) 1994-8888 Erik Meijer and any individual authors listed
+Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
elsewhere in this file.
This file is part of the `apacite' package.
@@ -64,8 +64,8 @@ apacite.ins, and the following generated files:
apacite.sty, apacdoc.sty, apacite.drv,
apacite.bst, apacitex.bst, apacann.bst, apacannx.bst,
apa5ex.bib, apacxmpl.tex,
-english.apc, dutch.apc, finnish.apc, french.apc,
-german.apc, ngerman.apc, greek.apc, norsk.apc,
+english.apc, dutch.apc, finnish.apc, french.apc,
+german.apc, ngerman.apc, greek.apc, norsk.apc,
spanish.apc, swedish.apc.
This work has the LPPL maintenance status `maintained'
@@ -83,7 +83,7 @@ the generated files.
This is a generated file.
-Copyright (C) 1994-8888 Erik Meijer and any individual authors listed
+Copyright (C) 1994-2013 Erik Meijer and any individual authors listed
elsewhere in this file.
This file is part of the `apacite' package.
@@ -104,8 +104,8 @@ apacite.ins, and the following generated files:
apacite.sty, apacdoc.sty, apacite.drv,
apacite.bst, apacitex.bst, apacann.bst, apacannx.bst,
apa5ex.bib, apacxmpl.tex,
-english.apc, dutch.apc, finnish.apc, french.apc,
-german.apc, ngerman.apc, greek.apc, norsk.apc,
+english.apc, dutch.apc, finnish.apc, french.apc,
+german.apc, ngerman.apc, greek.apc, norsk.apc,
spanish.apc, swedish.apc.
This work has the LPPL maintenance status `maintained'