File: fullname.sty

package info (click to toggle)
frog 0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,884 kB
  • sloc: cpp: 12,644; sh: 117; makefile: 58; python: 43; ansic: 39
file content (60 lines) | stat: -rw-r--r-- 2,222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%%% fullname.sty
%%%
%%% Stuart M. Shieber
%%% Mon Mar 30 17:23:36 EST 1992

%%% Modifications to the citation macros intended to be used with the
%%% fullname.bst style.

%%% Some material taken from Peter Patel-Schneider's AAAI style for
%%% use in conjunction with AAAI-named bibliography style.
%%%
%%% Citation forms:
%%%
%%% Macro	Output format
%%% -----------	-----------------------------------------
%%% \cite:	(Dewey, 1988)
%%% 		(Dewey, 1988, page 15)
%%% 		(Dewey, 1988; Cheatham, 1987; Howe, 1903)
%%% \shortcite:	(1988)
%%%		(1988, page 15)
%%% \namecite:	Dewey (1988)
%%%		Dewey (1988, page 15)

% don't box citations, add space between multiple citations, separate with ;
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{; }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
% Allow short (name-less) citations, when used in
% conjunction with a bibliography style that creates labels like
%	\citename{<names>, }<year>
\let\@internalcite\cite
\def\cite{\def\citename##1{##1, }(\@internalcite}
\def\shortcite{\def\citename##1{}(\@internalcite}
\def\namecite{\def\citename##1{##1 (}\@internalcite}
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}

%%% More changes made by SMS (originals in latex.tex)
% Use parentheses instead of square brackets in the text.
\def\@cite#1#2{{#1\if@tempswa , #2\fi})}

% Don't put a label in the bibliography at all.  Just use the unlabeled format
% instead.
\def\thebibliography#1{\section*{References\@mkboth
 {References}{References}}\list
 {}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
 \setlength{\itemindent}{-\parindent}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

\def\@lbibitem[#1]#2{\item[]\if@filesw 
      { \def\protect##1{\string ##1\space}\immediate
        \write\@auxout{\string\bibcite{#2}{#1}}\fi\ignorespaces}}

\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
       {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces}