| 1 |
\documentclass[DIV=9, parskip=half, pagesize=auto]{scrartcl} |
| 2 |
|
| 3 |
\usepackage{fixltx2e} |
| 4 |
\usepackage{etex} |
| 5 |
\usepackage{xspace} |
| 6 |
\usepackage{lmodern} |
| 7 |
\usepackage[T1]{fontenc} |
| 8 |
\usepackage{textcomp} |
| 9 |
\usepackage{microtype} |
| 10 |
\usepackage[unicode=true]{hyperref} |
| 11 |
|
| 12 |
\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} |
| 13 |
\newcommand*{\pkg}[1]{\textsf{#1}} |
| 14 |
\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} |
| 15 |
\makeatletter |
| 16 |
\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} |
| 17 |
\makeatother |
| 18 |
\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle} |
| 19 |
\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} |
| 20 |
\newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}} |
| 21 |
\newcommand*{\parg}[1]{\texttt{(}\meta{#1}\texttt{)}} |
| 22 |
\newcommand*{\BibTeX}{Bib\kern-0.08em\TeX\@\xspace} |
| 23 |
|
| 24 |
\pdfstringdefDisableCommands{% |
| 25 |
\def\BibTeX{BibTeX\xspace}% |
| 26 |
} |
| 27 |
|
| 28 |
\addtokomafont{title}{\rmfamily} |
| 29 |
|
| 30 |
\title{The \pkg{mslapa} package\thanks{This manual documents the \BibTeX style \pkg{mslapa.bst} and the accompanying package \pkg{mslapa.sty}.}} |
| 31 |
\author{Michael S. Landy\thanks{\mail{[email protected]}}\and Clea F. Rees\and Nelson H. F. Beebe\thanks{\mail{[email protected]}}} |
| 32 |
\date{5/1/95} |
| 33 |
|
| 34 |
|
| 35 |
\begin{document} |
| 36 |
|
| 37 |
\maketitle |
| 38 |
|
| 39 |
\noindent |
| 40 |
This software is based on previous APA formats as explained below. The |
| 41 |
changes made to produce the \pkg{mslapa} format were originally made by Michael S. |
| 42 |
Landy in 1994 and are public domain. The copyright and licensing of the file |
| 43 |
as a whole also depends on the copyright and licensing of the original code. |
| 44 |
Further details may be found below.\\ |
| 45 |
This statement added 2008/11/25 by Clea F. Rees in an attempt to make the |
| 46 |
situation a little clearer following communication with Michael S. Landy. |
| 47 |
|
| 48 |
This pair of files automates most (although not all) of the bibliographic |
| 49 |
and citation formatting of APA (American Psychological Association) style. |
| 50 |
The various citations formats that you want are things like: |
| 51 |
% |
| 52 |
\begin{enumerate} |
| 53 |
\item \label{item:1} `in the work of Landy (1985, 1989a,b)' |
| 54 |
\item \label{item:2} `in the work of Landy, Dosher and Sperling (1989)' |
| 55 |
\item \label{item:3} `in the work of Landy and colleagues (1989)' |
| 56 |
\item \label{item:4} `it has been shown (Landy, 1989) that \ldots' |
| 57 |
\item \label{item:5} `it has been shown (Landy, 1989a, 1990; Sperling, 1991) that \ldots' |
| 58 |
\item \label{item:6} `it has been shown (Landy, Dosher \& Sperling, 1989a) that \ldots' |
| 59 |
\item \label{item:7} `it has been shown (Landy et al.,\ 1989a) that \ldots' |
| 60 |
\item \label{item:8} `it has been shown (e.g.,\ Landy et al.,\ 1989a) that \ldots' |
| 61 |
\item \label{item:9} `it has been shown (see, e.g.,\ Landy et al.,\ 1989a, for discussion) \ldots' |
| 62 |
\end{enumerate} |
| 63 |
|
| 64 |
\pagebreak[2] |
| 65 |
|
| 66 |
These are achieved by a number of citation macros: |
| 67 |
% |
| 68 |
\begin{itemize} |
| 69 |
\item \cmd{\cite}\parg{PRENOTE}\oarg{NOTE}\verb+{+\meta{KEY1}\verb+,+\meta{KEY2}\verb+}+ -- for cases \ref{item:4}, \ref{item:5} and~\ref{item:6} |
| 70 |
\item \cmd{\shortcite}\parg{PRENOTE}\oarg{NOTE}\verb+{+\meta{KEY1}\verb+,+\meta{KEY2}\verb+}+ -- for case \ref{item:7}, \ref{item:8} and~\ref{item:9} |
| 71 |
\item \cmd{\citeyear}\parg{PRENOTE}\oarg{NOTE}\verb+{+\meta{KEY1}\verb+,+\meta{KEY2}\verb+}+ -- for cases \ref{item:1}, \ref{item:2} and~\ref{item:3} |
| 72 |
\end{itemize} |
| 73 |
% |
| 74 |
Note that \meta{PRENOTE} will be put in the parentheses preceding the citations |
| 75 |
(and followed by a blank), and \meta{NOTE} will follow the citations (preceded by |
| 76 |
a comma). Both \meta{PRENOTE} and \meta{NOTE} are (independently) optional arguments. |
| 77 |
Thus, number~\ref{item:8} above was produced by |
| 78 |
\verb+\shortcite(e.g.,){LANDYETAL89A}+, |
| 79 |
and number~\ref{item:9} was produced by |
| 80 |
\verb+\shortcite(see, e.g.,)[for discussion]{LANDYETAL89A}+. |
| 81 |
|
| 82 |
\cmd{\shortcite} will use `et al.'\ for all citations of 3 or more authors. If |
| 83 |
you have a string of citations with more than one citation of 3 or more |
| 84 |
authors, and you want some of those to have et al. and others to be spelled |
| 85 |
out, then you will have to use \cmd{\nocite}\verb+{+\meta{KEY1}\verb+,+\meta{KEY2}\verb+}+ and format the citation |
| 86 |
yourself by hand: |
| 87 |
% |
| 88 |
\begin{flushleft} |
| 89 |
`\texttt{% |
| 90 |
it has been shown (Landy, Dosher \cmd{\&} Sperling, 1989a; Sperling et al., |
| 91 |
1990\cmd{\nocite}\{LANDETAL89A,SPERETAL90\}) that \ldots% |
| 92 |
}' |
| 93 |
\end{flushleft} |
| 94 |
|
| 95 |
There are also macros which insert only the author text without the year |
| 96 |
(\cmd{\fullciteA} and \cmd{\shortciteA}), although it's not clear to me where one would |
| 97 |
want to use that. If you want to format things in any other way, you are |
| 98 |
stuck formatting the citation yourself, e.\,g.: |
| 99 |
% |
| 100 |
\begin{verbatim} |
| 101 |
In 1989, Landy and colleagues\nocite{LANDETAL89} discovered... |
| 102 |
\end{verbatim} |
| 103 |
|
| 104 |
The style macros for \texttt{cite}/\texttt{shortcite}/\texttt{citeyear} will lay things out as |
| 105 |
described above, so that if two citations in a row have the same authors, |
| 106 |
the authors are listed once, and if the same year as well, only the letter |
| 107 |
names are added (as in \texttt{1989a,b})\@. The algorithm recognizes that the form |
| 108 |
`Landy et al.'\ can refer to any articles with 3 or more authors beginning |
| 109 |
with \textsl{Landy}, and hence all such cited articles require letters after the year |
| 110 |
(just in case you happen to cite them using `et al.')\@. The letters are |
| 111 |
added in such a way that the citation letters for a given \texttt{shortauthor}/\texttt{year} |
| 112 |
combination appear in order in the references section. Also, in the reference |
| 113 |
section, and author such as `\verb+von Helmholtz+' will be alphabetized under \textsl{H} |
| 114 |
and printed as `von Helmholtz, H. (1866).\ \ldots'\@. If you prefer to |
| 115 |
alphabetize this under \textsl{V} you can either put the name in braces \verb+{von Helmholtz}+ |
| 116 |
in your bibliography file (to make it look like a last name), or you can |
| 117 |
alter the function `\texttt{sort.format.names}' below as indicated in the comment to |
| 118 |
be found there. |
| 119 |
|
| 120 |
\pagebreak[2] |
| 121 |
|
| 122 |
Things this style won't do for you: |
| 123 |
% |
| 124 |
\begin{itemize} |
| 125 |
\item Citations come out in the order you put them in the argument |
| 126 |
to \texttt{cite}\slash\texttt{shortcite}\slash\texttt{citeyear}\@. So, if you want them sorted a |
| 127 |
particular way (alphabetically within year or vice versa), you have |
| 128 |
to do that yourself. |
| 129 |
\item APA specifies that full author order should be used the first time |
| 130 |
a reference is cited, and \textit{et al.}\ (for 3 or more authors) thereafter. |
| 131 |
You have to do this yourself by using \cmd{\cite} or \cmd{\citeyear} the first |
| 132 |
time and \cmd{\shortcite} thereafter. |
| 133 |
\end{itemize} |
| 134 |
|
| 135 |
\end{document} |