-
Notifications
You must be signed in to change notification settings - Fork 1
/
theapa.sty
1231 lines (1139 loc) · 42.8 KB
/
theapa.sty
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%theapa.sty%%%%%%%%
%$$$ theapa.sty $$$ --- Version 2.5 .1(May 1992)
% by Young U. Ryu ([email protected])
% `theapa' --- `the' `a'`p'`a'.
% APA (American Psychology Association) Reference Citation for (AmS)LaTeX
%
% - Supported by `theapa.bst' Version 2.5
% - For Plain TeX, use `theapa.tex'.
% - They are available from:
% pub/young
% Based on the {\it Publication Manual of the American Psychology Association},
% Third Edition, Fifth Printing, February 1988.
% copyright (C) 1991, 1992.
% Young U. Ryu
% newapa.sty 2.0 - 1991.
% Young U. Ryu
% newapa.sty - copyright (C) 1989, 1990.
% Stephen N. Spencer
% apalike.sty - copyright (C) 1986, 1988.
% Susan King and Oren Patashnik
% ulem.sty - copyright (C) 1989.
% Donald Arseneau
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PLEASE, PLEASE, PLEASE READ ALL THE FOLLOWING UPDATE & TUTORIAL NOTES %
% ^^^^^^ ^^^^^^ ^^^^^^ ^^^ BEFORE YOU REQUEST IMPROVEMENTS.%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% List of User Commands
%
% Citation (Auto Switch: Full -> Short)
% - \cite, \citeA, \citeauthor, \citeyear
% Enforce Full Citation
% - \fullcite, \fullciteA, \fullciteauthor
% Enforce Short Citation
% - \shortcite, \shortciteA, \shortciteauthor
% Change Citation Functuations
% including Quotation Marks around Article Titles
% - \citepunct
% Change Citation Labels
% - \citelabels
% Underline instead of Italic
% - \UnderlinedBemOnly, \UnderlinedEm
% Reference and Bibliography Names
% - \refname, \bibname
% Do not Place Comma before \& in Ref. Sec. When no. of Authors = 2
% - \NoCommaBetweenTwoAuthors
% IF YOU ARE A NEW USER, IT'S NOT NECESSARY TO READ UPDATE NOTES;
% INSTEAD, READ THE TUTORIAL NOTES.
% Version 2.5.1 Update Notes (May 1992)
%
% - A bug in \nocite#1 is fixed.
% - A bug in theapa.bst 2.5 is fixed.
% Version 2.5 Update Notes (April 1992)
%
% - Citation macros are rewritten and simplified.
% \cite, \citeA, \citeauthor
% \fullcite, \fullciteA, \fullciteauthor
% \shortcite, \shortciteA, \shortciteauthor
% \citeyear
%
% \citeB, \citeC, \fullciteB, \fullciteC, \shortciteB, and
% \shortciteC are dropped. But, to maintain compatibility
% with Version 2.4:
%
% \citeB = \citeA (also full and short versions)
% \citeC = \citeauthor (also full and short versions)
%
% - \BUcase is dropped. It means that BibTeX always
% changes cases of article titles.
% Thus, \NoTitleCaseChange is dropped.
% If you don't want to change cases of article titles,
% see Version 2.5 Update Notes in `theapa.bst'.
%
% - APA section heading macros are re-written.
% \theapasectioning is dropped.
% Refer to the Tutorial Notes [5].
%
% - Three types of seriations are provided:
% seriate env.
% APAenumerate env.
% APAitemize env.
% Refer to the Tutorial Notes [6].
% Version 2.4 Update Notes (April 1992)
%
% - In Ref. Sec. (not in citations):
% ^^^^^^^^^
% Bond, J., & Chen, S. (1983). blah blah blah
% ^
% comma is placed before \BBA (i.e. usually \&) even if
% no. of authors = 2. (a req. of APA)
% If you don't want such commas, use command \NoCommaBetweenTwoAuthors.
% - \cite<optional predix note>[optional postfix note]{keys}
% is implemented.
% The above is same as \fullcite and \shortcite.
% - \nocite{aaa,bbb} makes following \cite{aaa}, \cite{bbb}, etc. short.
% But, \nocite{*} does not make following \cite{...} short.
% Version 2.3 Update Notes (March 1992)
%
% - theapa.bst 2.3 == theapa.bst 2.2
% - A few mistakes in notes and comments are corrected.
% - The following is updated:
% \citeA{...}, \citeB{...}, and \citeC{...} (together with
% full and short versions) result in:
%
% author1, author2, and author3 (year)
% ^^^
% while \cite{...} (together with full and short versions) results in:
%
% (author1, author2, & author3, year)
% ^
% The above is a requirement of the APA style.
%
% - Thus, \citepunct changed. See note [3].
% With \citepunct, one may change the default `&' and `and' to others.
% Version 2.2 Update Notes (March 1992)
%
% - theapa.sty 2.2 == theapa.sty 2.1
% But, theapa.bst is improved.
% See update notes in `theapa.bst'.
% Version 2.1 Update Notes
%
% \thebibliography and chapter
% - \thebibliography generates a chapter heading
% when chapter is defined (e.g., report, book, etc),
% but \theapasectioning is not used.
% - Note: \def\refname{Reference}
% `Reference' is the section title
% \def\bibname{Bibliography}
% `Bibliography' is the chapter title
%
% Other Updates
% - \notitlecasechange (of Version 2.0) is changed
% to \NoTitleCaseChange for the purpose of readability.
%
% Some Bugs Fixed
% - \thebibliography is fixed.
% No more `TeX capacity exceeded' error when
% \theapasectioning is used
% Version 2.0 Update Notes (Nov. 1991)
%
% `ulem.sty' (1989) by Donald Arseneau is included
% - Underlined book titles, etc. are optionally allowed.
% - The general replacement of emphasized texts by
% underlined texts is optionally allowed.
% - See note [7] B.
%
% Same author, different years
% - \cite{Apt,MinA,MinB,Bond}
% ===> (Apt, 1989; Minsky, 1967, 1983; Bond, 1991)
% - \citeB{Apt,MinA,MinB,Bond}
% ===> Apt (1989), Minsky (1967, 1983), Bond (1991)
% - \citeC{Apt,MinA,MinB,Bond} or \citeauthor{Apt,MinA,MinB,Bond}
% ===> Apt, Minsky, Bond
%
% Automatic switch from full cites to short cites
% - According to the APA manual, the very first citation of
% a reference item requires the full list of authors; but
% following citations of the same reference item require
% the short list of authors.
% - \cite, \citeA, \citeB, \citeC (or \citeauthor)
% ===> switches from full to short cites automatically
% - \fullcite, \fullciteA, etc.
% ===> enforces full citations
% - \shortcite, \shortciteA, etc.
% ===> enforces short citations
% - note: \citeyear ===> (year, year, ...)
% There are no full or short versions of \citeyear
%
% Case changing option for article titles.
% - See note [7] A.
%
% Quotation marks around article titles
% - Though the APA manual does not suggest to place
% double quotation marks around article titles,
% some people like it.
% - In that case, a comma (or period) following article
% titles must be placed inside quotation marks.
% - It can be done by `\citepunct'.
% See note [3].
%
% Some Bugs Fixed
% - \theapasectioning replaces for \newapasectioning
% - \paragraph replaces for \a@paragraph
% - \subparagraph replaces for \a@subparagraph
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SEE THE FOLLOWING TUTORIAL NOTES.
% 1 - theapa.bst and \bibitem entry
% 2 - citation formats
% 3 - changing citation functions (if you want)
% 4 - changing citation labels (if you want)
% 5 - enforcing APA style section heading (if you want)
% 6 - APA style seriations
% 7 - notes (including things not implemented and to be implemented)
%
%%%%%
% [0] Three Parts
%
% This file consists of three parts:
% Part I - APA Style Citation
% Part II - Optional APA Style Section Heading and Seriation
% Part III - Underline Stuff
%
% - Part I and Part II are completely independent.
% - If one does not declare \UnderlinedBemOnly or \UnderlinedEm,
% Part I and Part III are independent.
% - If one replaces \ULine in Part II with \underbar (or \underline)
% Part II and Part III are independent.
%
% - You may remove independent parts without affecting others.
%
%%%%%
% [1] theapa.bst and \bibitem entry
%
% The ``theapa.bst'' BibTeX bibliography style creates references with labels:
% \protect\BCAY{full author list}{abbrev. author list}{year}
%
%%%%%
% [2] Citation Formats
%
% The citations are enclosed within parentheses ``( ... )''
% as default. But one may change them using \citepunct.
% Short author lists use the ``et al.'' construct.
% These labels are processed by the following LaTeX commands:
%
%%%
% \cite<optional prefix note>[optional notes]{Key(s)}
% -> (prefix note Authors, Year, optional notes)
% For example: \cite<e.g.\ see>[p.~32]{Apt88}
% => (e.g. see Apt, 1988, p. 32)
% -> automatically switches from \fullcite to \shortcite
% \citeA[optional notes]{keys}
% -> automatically switches from \fullciteA to \shortciteA
% \citeB[optional notes>{keys}
% = \citeA
% \citeauthor{key}
% -> automatically switches from \fullciteauthor to \shortciteauthor
% \citeC{keys}
% = \citeauthor{keys}
% \citeyear[optional notes]{key(s)} -> (Year1, Year2, ...)
%
%%%
% \nocite{aaa,bbb} makes following \cite{aaa}, \cite{bbb}, etc.
% short citations.
% \nocite{*} does not make following \cite{...}, etc. short citations.
% ^^^
%%%
% \fullcite<optional prefix note>[optional notes]{Key(s)}
% -> (prefix note Authors1, Year1; Authors2, Year2; ..., optional notes)
% \fullciteA[optional notes]{keys}
% -> Authors1 (Year1), ..., AuthorsN (YearN, optional notes)
% \fullciteB[optional notes]{keys}
% = \fullciteA[optional notes]{keys}
% \fullciteauthor{keys}
% -> Authors1, Authors2, ...
% \fullciteC{keys}
% = \fullciteauthor
%
%%%
% The difference between `\shortciteXXX' and `\fullciteXXX':
% is that `\shortciteXXX' gives `First author et al.'
% if no. authors >= 3.
%
% \shortcite<optional prefix note>[optional notes]{Key(s)}
% -> (prefix note Short Authors1, Year1; ..., optional notes)
% \shortciteA[optional notes]{keys}
% -> Short Authors1 (Year1), ..., Short AuthorsN (YearN, optional notes)
% \shortciteB[optional notes]{keys}
% = \shortciteA[optional notes]{keys}
% \shortciteauthor{keys}
% -> Short Authors1, Short Authors2, ...
% \shortciteC{keys}
% = \shortciteauthor
%
%%%%%
% [3] Changing Citation Punctuations
%
% \citepunct{open paren}%
% {between authors in parenthesis and ref. sec}%
% {between authors in text}%
% {between author(s) and year}%
% {between citations}%
% {before notes}%
% {closing paren}%
% {open quote for article titles}%
% {closing quote for article titles}
%
% For example,
% \citepunct{[}{and}{\&}{ }{, }{: }{]}{``}{,''}
% - use square brackets
% `and' between authors in parenthesis and ref. sec.
% '&' between authors in text
% space between author and year
% comma between citations
% comma before notes
% e.g. [Apt and van Emden 1986, Lloyd 1985: Notes]
% e.g. Apt & van Emden [1986]
% - ``article title,'' (in double quote marks and comma in them)
%
% The default is:
% \citepunct{(}{\&}{and}{, }{; }{, }{)}{}{.}
%
% Notice spaces around punctuations in \citepunct!!!
%
% In Ref. Sec, a comma is placed before \&, even if no. of authors = 2.
% \NoCommaBetweenTwoAuthors
% removes such commas in Ref. Sec.
% But, a comma will be still placed before \& if no. of authors >= 3.
%
%%%%%
% [4] Changing Citation Labels
%
% \citelabels{editor label}%
% {editors label}%
% {volume label}%
% {number label}%
% {edition label}%
% {page label}%
% {pages label}%
% {chapter label}%
% {tech. rep. label}
%
% For example,
% \citelabels{, editor}{, editors}{Volume}{Number}{edition}%
% {page}{pages}{chapter}{Technical report}
%
% The default is:
% \citelabels{ (Ed.)}{ (Eds.)}{Vol.}{No.}{edition}%
% {p.}{pp.}{chap.}{Tech.\ rep.}
%
% Notice spaces around lables in \citelabels!!!
%
%%%%%
% [5] Enforcing APA Style Section Heading
%
% A. Place one of the following between \documentstyle[...]{...}
% and \begin{document}:
%
% \OneLevelHeading \TwoLevelHeading \TwoLevelHeadingA
% \ThreeLevelHeading \FourLevelHeading \FiveLevelHeading
%
% to enforce APA style section heading.
%
% Read the following notes to understand what they do.
%
% B. The follow 5 levels of APA section headings are defined
% \levelone{...}
% ^^^ Normalsize, Centered, Uppercase, Boldface
% \leveltwo{...}
% ^^^ Normalsize, Centered, Boldfaced
% \levelthree{...}
% ^^^^^ Normalsize, Centered, Underlined
% \levelfour{...}
% ^^^^ Normalsize, Flushleft, Unindented, Underlined
% \levelfive{...}
% ^^^^ Normalsize, Flushleft, Indented, Underlined
% followed by texts in the same line
%
% However, you will *not* use \levelone{...}, \leveltwo{...}, etc.
% in your document. Instead, you will use \section*[...]{...},
% \subsection*[...]{...}, etc. Read the following notes.
%
% Note: According to the APA manual (p. 66), Level One & Two
% Headings are NOT boldfaced. To strictly enforce
% APA requirements, remove \bf in \levelone and \leveltwo
% macros.
%
% C. If you don't like spaces before and after section headings,
% modify \b@level@one@skip, \e@level@one@skip,
% \b@level@two@skip, \e@level@two@skip, etc.
% See comments around their definitions.
%
% D. Level 3, 4, and 5 underlines are placed by \ULine{...}
% of ulem.sty ((C) Donald Arseneau) that is attached in the
% end of this file. This is because \ULine allows line
% breaks, while \underbar{...} and \underline{...} do not,
% when the heading is longer than the \textwidth (minus 8em).
% If you don't like the way \ULine places underlines,
% (1) replace \ULine in \levelthree, \levelfour, and \levelfive macros
% with \underbar or \underline. In that case, however, if the heading
% is long, LaTeX will complain about overfull \hbox; alternatively
% (2) modify and improve `ulem.sty' and send me a copy (thanks).
%
% E. The APA manual suggests 6 ways of using heading levels:
% \OneLevelHeading: \section = \leveltwo (toc)
% \TwoLevelHeading: \section = \leveltwo (toc)
% \subsection = \levelfour (toc)
% \TwoLevelHeadingA: \section = \leveltwo (toc)
% \subsection = \levelfive
% \ThreeLevelHeading: \section = \leveltwo (toc)
% \subsection = \levelfour (toc)
% \subsubsection = \levelfive
% \FourLevelHeading: \section = \leveltwo (toc)
% \subsection = \levelthree (toc)
% \subsubsection = \levelfour (toc)
% \paragraph = \levelfive
% \FiveLevelHeading: \section = \levelone (toc)
% \subsection = \leveltwo (toc)
% \subsubsection = \levelthree (toc)
% \paragraph = \levelfour
% \subparagraph = \levelfive
%
% F. \section{AAA}: AAA = heading, page head, table of contents
% \section*{AAA}: AAA = heading
% \section[BBB]{AAA}: AAA = heading; BBB = page head, table of contents
%
% \subsection{AAA}: AAA = heading, table of contents
% \subsection*{AAA}: AAA = heading
% \subsection[BBB]{AAA}: AAA = heading; BBB = table of contents
%
% (Exception: When \TwoLevelHeadingA is used -
% \subsection{AAA}: AAA = heading
% \subsection*{AAA} - not allowed
% \subsection[BBB]{AAA} - not allowed)
%
% \subsubsection{AAA}: AAA = heading, table of contents
% \subsubsection*{AAA}: AAA = heading
% \subsubsection[BBB]{AAA}: AAA = heading; BBB = table of contents
%
% (Exception: When \ThreeLevelHeading is used -
% \subsubsection{AAA}: AAA = heading
% \subsubsection*{AAA} - not allowed
% \subsubsection[BBB]{AAA} - not allowed)
%
% \paragraph{AAA}: AAA = heading
%
% \subparagraph{AAA}: AAA = heading
%
%%%%%
% [6] APA Seriations
%
% A. seriate environment:
% For example, the following:
%
% Blah blah blah
% \begin{seriate}
% \item first item,
% \item second item.
% \end{seriate}
% Blah blah blah
%
% results in:
%
% Blah blah blah (a) first item, (b) second item. Blah blah blah
%
% B. APAenumerate environment
% For example, the following:
%
% Blah blah blah
% \begin{APAenumerate}
% \item first item ... ... ... continue continue
% \item second item ... ... ... continue continue
% \end{APAenumerate}
% Blah blah blah
%
% results in:
%
% Blah blah blah
% 1. first item ... ... ...
% continue continue
% 2. second item ... ... ...
% continue continue
% Blah blah blah
%
% C. APAitemize environment
% For example, the following:
%
% Blah blah blah
% \begin{APAitemize}
% \item first item ... ... ... continue continue
% \item second item ... ... ... continue continue
% \end{APAitemize}
% Blah blah blah
%
% results in:
%
% Blah blah blah
% o first item ... ... ...
% continue continue
% o second item ... ... ...
% continue continue
% Blah blah blah
%
%%%%%
% [7] Others
%
% A. If you use a language other than English,
% You probably want to change reference and bibliography names.
% Defaults are English names:
%
% e.g. \def\refname{Reference}
% e.g. \def\bibname{Bibliography}
%
% Place those definitions on the top of your document or
% before \bibliography or \begin{thebibliography}.
%
% B. As default, BibTeX changes cases of article titles.
%
% e.g. Your Entry in xxx.bib: Formal Representation of ZZZ
% Your will get: Formal representation of zzz
% e.g. Your Entry in xxx.bib: Formal Representation of {ZZZ}
% Your will get: Formal representation of ZZZ
%
% If you don't want to change cases of article title, see
% Version 2.5 Update Notes in `theapa.bst'.
%
% C. `mastersreport', `dbathesis', `eddthesis' added in theapa.bst.
% Why? - Some schools also allow master's report as well as
% master's thesis.
% - DBA (Doctor of Business Administration) and
% Ed.D. (Doctor of Education) are also popluar
% doctoral degrees.
%
% D. Underlined (not italic) book titles, etc.
% - A few journal publication editors and schools,
% who do not appreciate new electronic typesetting and
% desktop publishing technologies, require underlined
% book titles, etc.
% - To do this, I included `ulem.sty' (C) 1989 by Donald Arseneau.
% - `\UnderlinedBemOnly' underlines book titles, etc. in Reference.
% `\UnderlinedEm' replaces emphasized texts by underlined texts
% both in the body and references of your document.
%
% E. Not implemented yet (!): to be implemented soon
% - None
%
% F. Not implemented: I don't know if I can do in the near future !!! ;-)
% - Same last name but different people
%
% (C. Lewis, 1958; D. Lewis, 1973)
% ^ ^
% G. NO GUARANTEE, absolutely (You know what I mean.)
%
% H. Bug and/or suggestion reports
% - Your bug and/or suggestion report(s) is (are) welcome(d).
% - E-mail me:
%
% [email protected] (Internet)
% ^^^^^
% youngr@utxvm (Bitnet)
% ^
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\typeout{APA Citation (& Optional APA Heading) Style - Version 2.5.1 (5/92)}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PART I: APA CITATION %%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%
% cite punctuations %
%%%%%%%%%%%%%%%%%%%%%
\def\BBOP{(} % open parenthesis
\def\BBAA{\&} % between authors in parenthesis and ref. sec.
\def\BBAB{and} % between authors in text
\def\BBAY{, } % between author(s) and year
\def\BBC{; } % between cites
\def\BBN{, } % before note
\def\BBCP{)} % closing parenthesis
\def\BBOQ{} % open quote for article title
\def\BBCQ{.} % closing quote for article title
%
\def\BBA{\BBAA}
%
\def\citepunct#1#2#3#4#5#6#7#8#9{%
\def\BBOP{#1}
\def\BBAA{#2}
\def\BBAB{#3}
\def\BBAY{#4}
\def\BBC{#5}
\def\BBN{#6}
\def\BBCP{#7}
\def\BBOQ{#8}
\def\BBCQ{#9}
\def\BBA{\BBAA}}
%
\def\BBACOMMA{,} % comma between authors in ref. sec
% when no. of authors = 2
\def\NoCommaBetweenTwoAuthors{\def\BBACOMMA{}}
%
\let\Bem\em
%%%%%%%%%%%%%%%
% cite labels %
%%%%%%%%%%%%%%%
\def\BED{ (Ed.)} % editor
\def\BEDS{ (Eds.)} % editors
\def\BVOL{Vol.} % volume name
\def\BNUM{No.} % number name
\def\BEd{edition} % edition
\def\BPG{p.} % page
\def\BPGS{pp.} % pages
\def\BCH{chap.} % chapter
\def\BTR{Tech.\ rep.} % (default) technical report type name
\def\citelabels#1#2#3#4#5#6#7#8#9{%
\def\BED{#1} % editor
\def\BEDS{#2}
\def\BVOL{#3}
\def\BNUM{#4}
\def\BEd{#5} % edition
\def\BPG{#6}
\def\BPGS{#7}
\def\BCH{#8}
\def\BTR{#9}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Upper or Lowercase article titles %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \BUcase is dropped in theapa.bst Version 2.5.
% The following three lines are not required in Version 2.5.
% They are here temporally to maintain some compatibility with
% Version 2.4; but will be removed in the next revision.
\def\@Ucase#1{\uppercase{#1}}
\def\BUcase#1{\lowercase{\@Ucase #1}}
\def\NoTitleCaseChange{\def\BUcase##1{##1}}
%%%%%%%%%%%%%
% citations %
%%%%%%%%%%%%%
\def\@lbibitem[#1]#2{\def\BBA{\BBAA}\item[\@biblabel{#1}]\if@filesw
{ \def\BBA{\string\BBA}%
\def\protect##1{\string ##1\space}\immediate
\write\@auxout{\string\bibcite{#2}{#1}}%
\def\BBA{\BBAA}}\fi\ignorespaces}
% Year is separately handled by \Y<citation key>
\def\bibcite#1#2{\global\expandafter\def\csname b@#1\endcsname{#2}% names
\global\expandafter\def\csname Y@#1\endcsname{\@year@#2}}% year
\def\@year@\BCAY#1#2#3{#3}
% first author of a multi-author reference?
\newif\if@F@cite\@F@citetrue
%
% \cite<prefix>[postfix]{keys}
% \fullcite<prefix>[postfix]{keys}
% \shortcite<prefix>[postfix]{keys}
% writes \citation{keys} on .aux
% produces (prefix Authors1, Year1; Authors2, Year2; ..., postfix)
%
\def\cite{\def\BCAY##1##2##3{\BCA{##1}{##2}}%
\@ifnextchar<{\@cite}{\@cite<>}}
\def\fullcite{\def\BCAY##1##2##3{\BCA{##1}{##1}}%
\@ifnextchar<{\@cite}{\@cite<>}}
\def\shortcite{\def\BCAY##1##2##3{\BCA{##2}{##2}}%
\@ifnextchar<{\@cite}{\@cite<>}}
\def\@cite<#1>{\@ifnextchar[{\def\@BBN{\BBN}\@@cite<#1>}%
{\def\@BBN{\ignorespaces}\@@cite<#1>[]}}
\def\@@cite<#1>[#2]#3{%
\if@filesw\immediate\write\@auxout{\string\citation{#3}}\fi%
\edef\@citeP{}%
\BBOP{\ignorespaces#1\space}%
\@for\@citeb:=#3\do{%
\@ifundefined{b@\@citeb}%
{\expandafter\def\csname b@\@citeb\endcsname{?}%
\expandafter\def\csname Y@\@citeb\endcsname{?}%
\@warning{Citation `\@citeb' on page \thepage\space undefined}%
}%
{\@ifundefined{flag@\@citeb}%
{\global\expandafter\def\csname flag@\@citeb\endcsname{DUMMY}%
\def\BCA##1##2{##1}}%
{\def\BCA##1##2{##2}}%
}%
\edef\B@my@dummy{\csname b@\@citeb\endcsname}%
\ifx\@citeP\B@my@dummy%
\if@F@cite\@F@citefalse\else{,\ }\fi%
\csname Y@\@citeb\endcsname%
\else%
\if@F@cite\@F@citefalse\else{\BBC}\fi%
\edef\@cite@undefined{?}%
\ifx\@cite@undefined\B@my@dummy%
\csname Y@\@citeb\endcsname%
\else%
\def\BBA{\BBAA}%
\csname b@\@citeb\endcsname\BBAY\csname Y@\@citeb\endcsname%
\fi%
\fi%
\edef\@citeP{\csname b@\@citeb\endcsname}%
}{\@BBN #2}\BBCP%
\@F@citetrue}
%
% \citeA[postfix]{keys}
% \fullciteA[postfix]{keys}
% \shortciteA[postfix]{keys}
% writes \citation{keys} on .aux
% produces Authors1 (Year1), ..., AuthorN (YearN, postfix)
%
\def\citeA{\def\BCAY##1##2##3{\BCA{##1}{##2}}%
\@ifnextchar[{\def\@BBN{\BBN}\@citeA}%
{\def\@BBN{\ignorespaces}\@citeA[]}}
\def\fullciteA{\def\BCAY##1##2##3{\BCA{##1}{##1}}%
\@ifnextchar[{\def\@BBN{\BBN}\@citeA}%
{\def\@BBN{\ignorespaces}\@citeA[]}}
\def\shortciteA{\def\BCAY##1##2##3{\BCA{##2}{##2}}%
\@ifnextchar[{\def\@BBN{\BBN}\@citeA}%
{\def\@BBN{\ignorespaces}\@citeA[]}}
\def\@citeA[#1]#2{%
\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
\edef\@citeP{}%
\@for\@citeb:=#2\do{%
\@ifundefined{b@\@citeb}%
{\expandafter\def\csname b@\@citeb\endcsname{?}%
\expandafter\def\csname Y@\@citeb\endcsname{?}%
\@warning{Citation `\@citeb' on page \thepage\space undefined}%
}%
{\@ifundefined{flag@\@citeb}%
{\global\expandafter\def\csname flag@\@citeb\endcsname{DUMMY}%
\def\BCA##1##2{##1}}%
{\def\BCA##1##2{##2}}%
}%
\edef\B@my@dummy{\csname b@\@citeb\endcsname}%
\ifx\@citeP\B@my@dummy%
\if@F@cite\@F@citefalse\else{,\ }\fi%
\csname Y@\@citeb\endcsname%
\else%
\if@F@cite\@F@citefalse\else{\BBCP,\ }\fi%
\def\BBA{\BBAB}%
\csname b@\@citeb\endcsname\ \BBOP\csname Y@\@citeb\endcsname%
\fi%
\edef\@citeP{\csname b@\@citeb\endcsname}%
}{\@BBN #1}\BBCP%
\@F@citetrue}
%
% \citeauthor{keys}
% \fullciteauthor{keys}
% \shortciteauthor{keys}
% writes \citation{keys} on .aux
% produces Authors1, ..., AuthorN
%
\def\citeauthor{\def\BCAY##1##2##3{\BCA{##1}{##2}}\@citeauthor}
\def\fullciteauthor{\def\BCAY##1##2##3{\BCA{##1}{##1}}\@citeauthor}
\def\shortciteauthor{\def\BCAY##1##2##3{\BCA{##2}{##2}}\@citeauthor}
\def\@citeauthor#1{%
\if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi%
\edef\@citeP{}%
\@for\@citeb:=#1\do{%
\@ifundefined{b@\@citeb}%
{\expandafter\def\csname b@\@citeb\endcsname{?}%
\expandafter\def\csname Y@\@citeb\endcsname{?}%
\@warning{Citation `\@citeb' on page \thepage\space undefined}%
}%
{\@ifundefined{flag@\@citeb}%
{\global\expandafter\def\csname flag@\@citeb\endcsname{DUMMY}%
\def\BCA##1##2{##1}}%
{\def\BCA##1##2{##2}}%
}%
\edef\B@my@dummy{\csname b@\@citeb\endcsname}%
\ifx\@citeP\B@my@dummy%
\else%
\if@F@cite\@F@citefalse\else{,\ }\fi%
\def\BBA{\BBAB}%
\csname b@\@citeb\endcsname%\ \BBOP\csname Y@\@citeb\endcsname%
\fi%
\edef\@citeP{\csname b@\@citeb\endcsname}%
}%
\@F@citetrue}
%
% \citeyear[postfix]{keys}
% writes \citation{keys} on .aux
% produces (Year1, ..., YearN, postfix)
%
\def\citeyear{\def\BCAY##1##2##3{}%
\@ifnextchar[{\def\@BBN{\BBN}\@citeyear}%
{\def\@BBN{\ignorespaces}\@citeyear[]}}
\def\@citeyear[#1]#2{%
\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
\edef\@citeP{}%
\BBOP\@for\@citeb:=#2\do{%
\@ifundefined{b@\@citeb}%
{\expandafter\def\csname b@\@citeb\endcsname{?}%
\expandafter\def\csname Y@\@citeb\endcsname{?}%
\@warning{Citation `\@citeb' on page \thepage\space undefined}%
}%
{\@ifundefined{flag@\@citeb}%
{\global\expandafter\def\csname flag@\@citeb\endcsname{DUMMY}}%
{}%
}%
\edef\B@my@dummy{\csname b@\@citeb\endcsname}%
\if@F@cite\@F@citefalse\else{,\ }\fi%
\csname Y@\@citeb\endcsname%
\edef\@citeP{\csname b@\@citeb\endcsname}%
}{\@BBN #1}\BBCP%
\@F@citetrue}
\def\nocite#1{\@bsphack%
\if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi%
\@for\@citeb:=#1\do{%
\@ifundefined{b@\@citeb}%
{\edef\B@my@dummy{*}%
\ifx\@citeb\B@my@dummy\else
\@warning{Citation `\@citeb' on page \thepage\space undefined}\fi}%
{\global\expandafter\def\csname flag@\@citeb\endcsname{DUMMY}}}%
\@esphack}
%
% To maintain compatibility with Version 2.4
% \citeB = \citeA
% \fullciteB = \fullciteA
% \shortciteB = \shortciteA
% \citeC = \citeauthor
% \fullciteC = \fullciteauthor
% \shortciteC = \shortciteauthor
\let\citeB=\citeA
\let\fullciteB=\fullciteA
\let\shortciteB=\shortciteA
\let\citeC=\citeauthor
\let\fullciteC=\fullciteauthor
\let\shortciteC=\shortciteauthor
%
% No labels in the bibliography.
\def\@biblabel#1{}
\newskip{\bibleftmargin}
\bibleftmargin=2.5em
%
%\def\refname{Reference} %<------------------------------------
%\def\bibname{Bibliography}
%
\def\thebibliography#1{%
\@ifundefined{chapter}%
{\section*{\refname}%
\@mkboth{\uppercase{\refname}}{\uppercase{\refname}}
\addcontentsline{toc}{section}{\refname}}%
{\chapter*{\bibname}%
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}
\addcontentsline{toc}{chapter}{\bibname}}
\list
{\relax}{\labelsep=0em
\leftmargin=\bibleftmargin
\itemindent=-\bibleftmargin}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PART II: APA SECTION HEADING & SERIATION %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \apa@startsection{Heading Indent}{Beforeskip}{Afterskip}{Heading}
%
\def\apa@startsection#1#2#3{\@startsection{}{}{#1}{#2}{#3}{\relax}*}
%
% \b@level@LEVEL-NO@skip
% Skip before heading: If >= 0, the following par is NOT indented.
% If < 0, it is indented.
% \b@level@LEVEL-NO@skip = vertical skip
%
% \e@level@LEVEL-NO@skip
% Skip after heading: If > 0, the following par starts in a new line;
% \e@level@LEVEL-NO@skip = vertical skip
% If <= 0, it starts just after the heading;
% \e@level@LEVEL-NO@skip = horizontal skip
%
\newskip\b@level@one@skip \b@level@one@skip=2.5ex plus 1ex minus .2ex
\newskip\e@level@one@skip \e@level@one@skip=1.5ex plus .6ex minus .1ex
\newskip\b@level@two@skip \b@level@two@skip=2.5ex plus 1ex minus .2ex
\newskip\e@level@two@skip \e@level@two@skip=1.5ex plus .6ex minus .1ex
\newskip\b@level@three@skip \b@level@three@skip=2.0ex plus .8ex minus .2ex
\newskip\e@level@three@skip \e@level@three@skip=1.5ex plus .6ex minus .1ex
\newskip\b@level@four@skip \b@level@four@skip=1.8ex plus .8ex minus .2ex
\newskip\e@level@four@skip \e@level@four@skip=1.5ex plus .6ex minus .1ex
\newskip\b@level@five@skip \b@level@five@skip=1.8ex plus .8ex minus .2ex
\newskip\e@level@five@skip \e@level@five@skip=0ex
%
% (APA, p. 66)
% Level One: Centered Boldface Uppercase Heading
% Level Two: Centered Boldface Heading
% Level Three: Centered Underlined Heading
% Level Four: Flushleft Underlined Heading occuping a whole line
% Level Five: Intended Underlined Heading followed by texts in the same line
%
% NOTE: According to the APA manual, Level One & Two headings are
% NOT boldfaced. If you want to follow the manual strictly,
% remove \bf in \levelone and \leveltwo macros.
%
\def\levelone#1{\apa@startsection%
{\z@}{\b@level@one@skip}{\e@level@one@skip}%
{\leftskip4em plus 1fill\rightskip\leftskip\parindent\z@\relax%
\bf\uppercase\expandafter{#1}}} % <- \bf
\def\leveltwo#1{\apa@startsection%
{\z@}{\b@level@two@skip}{\e@level@two@skip}%
{\leftskip4em plus 1fill\rightskip\leftskip\parindent\z@\relax%
\bf #1}} % <- \bf
\def\levelthree#1{\apa@startsection%
{\z@}{\b@level@three@skip}{\e@level@three@skip}%
{\leftskip4em plus 1fill\rightskip\leftskip\parindent\z@\relax%
\ULine{#1}}}
\def\levelfour#1{\apa@startsection%
{\z@}{\b@level@four@skip}{\e@level@four@skip}{\ULine{#1}}}
\def\levelfive#1{\apa@startsection%
{\parindent}{\b@level@five@skip}{\e@level@five@skip}{\ULine{#1}.}}
%
% Selecting the Levels of Headings (APA, pp. 66-67)
%
% One Level
\def\OneLevelHeading{%
\def\section{\@ifnextchar*{\@sections}%
{\@ifnextchar[{\@sectionb}{\@section}}}%
\def\@sections*##1{\leveltwo{##1}}%
\def\@sectionb[##1]##2{\leveltwo{##2}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
\def\@section##1{\leveltwo{##1}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
}
% Two Levels
\def\TwoLevelHeading{%
\def\section{\@ifnextchar*{\@sections}%
{\@ifnextchar[{\@sectionb}{\@section}}}%
\def\@sections*##1{\leveltwo{##1}}%
\def\@sectionb[##1]##2{\leveltwo{##2}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
\def\@section##1{\leveltwo{##1}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
%
\def\subsection{\@ifnextchar*{\@subsections}%
{\@ifnextchar[{\@subsectionb}{\@subsection}}}%
\def\@subsections*##1{\levelfour{##1}}%
\def\@subsectionb[##1]##2{\levelfour{##2}%
\addcontentsline{toc}{subsection}{##1}}%
\def\@subsection##1{\levelfour{##1}%
\addcontentsline{toc}{subsection}{##1}}%
}
% Two Levels - Variation
\def\TwoLevelHeadingA{%
\def\section{\@ifnextchar*{\@sections}%
{\@ifnextchar[{\@sectionb}{\@section}}}%
\def\@sections*##1{\leveltwo{##1}}%
\def\@sectionb[##1]##2{\leveltwo{##2}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
\def\@section##1{\leveltwo{##1}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%
%
\let\subsection=\levelfive%
}
% Three Levels
\def\ThreeLevelHeading{%
\def\section{\@ifnextchar*{\@sections}%
{\@ifnextchar[{\@sectionb}{\@section}}}%
\def\@sections*##1{\leveltwo{##1}}%
\def\@sectionb[##1]##2{\leveltwo{##2}%
\@mkboth{\uppercase{##1}}{\uppercase{##1}}%
\addcontentsline{toc}{section}{##1}}%