summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/revtex/aip.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-18 23:53:14 +0000
committerKarl Berry <karl@freefriends.org>2010-03-18 23:53:14 +0000
commitaeb40e4eddc0e83dfd8f55c18ffd3b94540c0f47 (patch)
treeae4269d5a89406c04493af63b04c8fabc71fb754 /Master/texmf-dist/source/latex/revtex/aip.dtx
parent481fc83998309f749f51e74a5e711829a5a3c80b (diff)
revtex 4.1p (17mar10)
git-svn-id: svn://tug.org/texlive/trunk@17498 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/revtex/aip.dtx')
-rw-r--r--Master/texmf-dist/source/latex/revtex/aip.dtx75
1 files changed, 51 insertions, 24 deletions
diff --git a/Master/texmf-dist/source/latex/revtex/aip.dtx b/Master/texmf-dist/source/latex/revtex/aip.dtx
index 1059874638d..04a47c748dc 100644
--- a/Master/texmf-dist/source/latex/revtex/aip.dtx
+++ b/Master/texmf-dist/source/latex/revtex/aip.dtx
@@ -124,9 +124,9 @@ License
%<*package>
%%% @LaTeX-file{
%%% filename = "aip.dtx",
-%%% version = "4.1h",
-%%% date = "2009/10/09",
-%%% time = "11:23:00 GMT+8",
+%%% version = "4.1p",
+%%% date = "2010/03/12",
+%%% time = "16:23:00 GMT-8",
%%% checksum = "1163",
%%% author = "Arthur Ogawa (mailto:arthur_ogawa at sbcglobal.net),
%%% commissioned by the American Institute of Physics.
@@ -231,7 +231,8 @@ License
% typeset documentation.
% \begin{macrocode}
%<*driver|package>
- [2009/10/09 4.1h AIP substyle for REVTeX]% \fileversion
+%<version>
+ [2010/03/12 4.1p AIP substyle for REVTeX]% \fileversion
%</driver|package>
% \end{macrocode}
%
@@ -527,6 +528,45 @@ generate the needed \file{.bst} files and install them in
\@booleanfalse\authornum@sw
% \end{macrocode}
%
+% \begin{macro}{\@bibdataout@init}
+% \begin{macro}{\@bibdataout@aip}
+% \changes{4.1o}{2010/02/12}{(AO, 580) Control .bst at run time.}%
+% Procedure \cmd\@bibdataout@aip\ has the job of writing the control record into the
+% job's \cmd\jobname\filename{.bib} file, where it will adjust the options to \filename{.bst} processing.
+% It is installed into the initialization procedure \cmd\@bibdataout@init, and its meaning
+% is set by the society (AIP) and journal.
+%
+% \begin{macrocode}
+\appdef\@bibdataout@init{\@bibdataout@aip}%
+\def\@bibdataout@aip{%
+ \immediate\write\@bibdataout{%
+% \end{macrocode}
+% An entry that controls processing of the \filename{.bst} file has entry type \texttt{@CONTROL}.
+% \begin{macrocode}
+ @CONTROL{%
+ aip41Control%
+% \end{macrocode}
+% Say whether we want long bibliography style (the default), or the abbreviated style.
+% \begin{macrocode}
+ \longbibliography@sw{\true@sw}{\aip@jtitx@sw{\false@sw}{\true@sw}}%
+ {%
+ ,pages="1",title="0"%
+ }{%
+ ,pages="0",title="-1"%
+ }%
+ }%
+ }%
+% \end{macrocode}
+% Place a \cmd\citation\ into the auxiliary file corresponding to this entry.
+% \begin{macrocode}
+ \if@filesw
+ \immediate\write\@auxout{\string\citation{aip41Control}}%
+ \fi
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
% For AIP, the preprint style \classoption{preprint} is the default.
% \begin{macrocode}
\@booleantrue\preprintsty@sw
@@ -1467,22 +1507,19 @@ generate the needed \file{.bst} files and install them in
%\endbatchfile
% \end{verbatim}
%
-% Between the two files \file{aipnum.dbj} and \file{aipnum.dbj},
+% Between the two files \file{aipnum.dbj} and \file{aipauth.dbj},
% the differences are limited:
% \file{aipnum.dbj} has two lines lacking in \file{aipauth.dbj}:
% \begin{verbatim}
-% ,seq-no%: Citation order (unsorted, like unsrt.bst)
-% ,nm-init,ed-au%: Initials + surname (J. F. Smith)
+% seq-no,%: Citation order (unsorted, like unsrt.bst)
+% nm-init,ed-au,%: Initials + surname (J. F. Smith)
% \end{verbatim}
% thus, the ``numbered citation'' bibliography is sorted by citation order, and
% the names are give first inital, then last name.
%
-% Likewise, \file{aipauth.dbj} has two lines lacking in \file{aipnum.dbj}:
+% Likewise, \file{aipauth.dbj} has one line lacking in \file{aipnum.dbj}:
% \begin{verbatim}
-% ,ay%: Author-year with some non-standard interface
-% ,nat%: Natbib for use with natbib v5.3 or later
-% ,blkyear%: Missing date left blank
-% ,nm-rev%: Surname + initials (Smith, J. F.)
+% nm-rev,%: Surname + comma + initials (Smith, J. F.)
% \end{verbatim}
% Thus, the ``author-year'' bibliography is sorted by author name, and
% names are given last name first, followed by initials.
@@ -1493,21 +1530,11 @@ generate the needed \file{.bst} files and install them in
% Remove \texttt{jtit-x}, \texttt{jpg-1}. This means article titles and full page range.
% \item
% Add \texttt{article-title-o}: article title is not required.
-% \item
-% Remove \texttt{nm-init}. This means full names.
-% \item
-% The file to be \cmd\generate d is \filename{aipnum4-1long.bst} instead of \filename{aipnum4-1.bst}.
% \end{itemize}
%
% The differences between \file{aipauthlong.dbj} and \file{aipauth.dbj}
% are exactly the same as between \file{aipnumlong.dbj} and \file{aipnum.dbj}
%
-% To get a banner in the \file{.blg} file, patch by hand into \file{apsrev.bst}:
-% \begin{verbatim}
-% FUNCTION {banner.log} {"REVTeX-compatible apsrev.bst 9812" warning$}
-% \end{verbatim}
-% and invoke \texttt{banner.log} from within \texttt{begin.bib}
-%
% We ensure that the journal substyle has the first word
% in the matter by installing the (default) AIP code
% later on (see Section~\ref{sec:aip-defaults}).
@@ -1969,7 +1996,7 @@ generate the needed \file{.bst} files and install them in
\aip@jtitx@sw{%
\def\@bibstyle{aipauth\substyle@post}%
}{%
- \def\@bibstyle{aipauth\substyle@post long}%
+ \def\@bibstyle{aipauth\substyle@post}%
}%
\authornum@sw{%
\bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
@@ -1990,7 +2017,7 @@ generate the needed \file{.bst} files and install them in
\aip@jtitx@sw{%
\def\@bibstyle{aipnum\substyle@post}%
}{%
- \def\@bibstyle{aipnum\substyle@post long}%
+ \def\@bibstyle{aipnum\substyle@post}%
}%
\bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
\let\onlinecite\rev@citealpnum