summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/apacite/apacdoc.sty
blob: 3fd465e12e340a3c3faf7b49f25b52a7e8c7d7ef (plain)
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
%%
%% This is file `apacdoc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% apacite.dtx  (with options: `docpkg')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 1994-2009 Erik Meijer and any individual authors listed
%% elsewhere in this file.
%% 
%% This file is part of the `apacite' package.
%% -------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
%% version.  The latest version of this license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% The `apacite' package consists of the files apacite.dtx and
%% apacite.ins, and the following generated files:
%% apacite.sty, apacite.bst, apacitex.bst, apa5ex.bib,
%% apacite.drv, apacdoc.sty, apacann.bst,  apacannx.bst,
%% 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'
%% 
%% The Current Maintainer of this work is Erik Meijer
%% 
%% This file may only be distributed together with a copy of the
%% source files of the apacite package, i.e., apacite.dtx and
%% apacite.ins. You may however distribute the apacite package without
%% the generated files.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{apacdoc}
   [2009/03/01 v4.05 apacite documentation style]
%%
%% apacdoc.sty : Style package that is used for the apacite documentation.
%% Written by Erik Meijer

\newif\if@APACdoc@AX
\DeclareOption{makeAX}{\@APACdoc@AXtrue}%
\@APACdoc@AXfalse
\ProcessOptions

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% DOCUMENT-SPECIFIC DEFINITIONS THAT MAY BE USEFUL FOR WIDER USE.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\DeclareRobustCommand{\bibliteral}[1]{\string\bibliteral{#1}}
%%\newcommand{\bibliteral}[1]{#1}
%%\newcommand{\bibliteral}[1]{\string\bibliteral{#1}}
%% This is the result of lots of trial and error. If I change something
%% in another part, I typically have to change something here as well.
%% The \space is necessary because in the current setup, an additional
%% space is inserted in the bibliography, and MakeIndex is space-sensitive.
\newcommand{\bibliteral}[1]{\string\bibliteral\space{#1}}
\DeclareRobustCommand{\bibinitial}[1]{\string#1}

\newcommand{\bibnodot}[1]{}

\newcommand{\BOn}{On}

\newcommand{\SwapArgs}[2]{#2#1}

\newcommand{\bibreftext}[2]{#2}

\newcommand{\Dutchvon}[2]{#2}

\DeclareRobustCommand{\bibeditortype}[1]{\relax }%
\def\renewbibeditortype{%
  \def\oldBED{}%
  \def\oldBEDS{}%
  \DeclareRobustCommand{\bibeditortype}[1]{%
    \global\let\oldBED\BED
    \global\let\oldBEDS\BEDS
    \global\def\BED{##1\global\let\BED\oldBED  \global\let\BEDS\oldBEDS}%
    \global\def\BEDS{##1\global\let\BED\oldBED \global\let\BEDS\oldBEDS}%
  }%
}

\newcommand{\bibInstring}[1]{%
  \global\let\oldBIn\BIn
  \global\def\BIn{#1\global\let\BIn\oldBIn}%
}

\global\def\BAbstractRetrieved#1{Abstract retrieved {#1}, from\ }%
\DeclareRobustCommand{\BmakeAbstractRetrieved}{%
  \global\def\oldBRetrieved{}%
  \global\let\oldBRetrieved\BRetrieved
  \global\def\BRetrieved##1{%
     \BAbstractRetrieved{##1}%
     \global\let\BRetrieved\oldBRetrieved%
  }%
}

\DeclareRobustCommand{\noedition}{%
  \global\def\oldBEd{}%
  \global\let\oldBEd\BEd
  \global\def\BEd{%
     \unskip
     \global\let\BEd\oldBEd
  }%
}

\def\swallownext#1{\relax}
\def\swallowdot{%
    \@ifnextchar.%
      {\swallownext}%
      {\relax}%
}

\def\bibskipbracenodot{\noexpand\bibskipbracenodot}
\def\indexskipbracenodot{\noexpand\indexskipbracenodot}

\newcommand{\APACmanBeforeBib}{%
    % Redefine commands that should be different in the bibliography.
    \renewcommand{\bibreftext}[2]{##1}%
    \renewcommand{\Dutchvon}[2]{##1}%
    \renewbibeditortype
    \global\let\oldbibskipbracenodot\bibskipbracenodot
    \global\def\bibskipbracenodot{\aftergroup\swallowdot}%
    \global\let\oldbibliteral\bibliteral
    \renewcommand{\bibliteral}[1]{##1}%
    \global\let\oldbibinitial\bibinitial
    \renewcommand{\bibinitial}[1]{##1}%
}

\def\APACbibstyle{%
  \if@APAC@index
    apacitex% with index option
  \else
    apacite% without index option
  \fi
}

\newcommand{\APACmanBeforeIndex}{%
    \clearpage
    % Redefine commands that should be different in the author index.
    \renewcommand{\bibeditortype}[1]{}%
    \renewcommand{\bibliteral}[1]{\unskip}%
    \global\let\indexskipbracenodot\bibskipbracenodot
}

\newcommand{\APACmanAfterIndex}{%
    % Revert to old definitions of commands.
    \global\let\bibskipbracenodot\oldbibskipbracenodot
    \global\def\indexskipbracenodot{\noexpand\indexskipbracenodot}%
    \APACdocindex
}


\@ifundefined{IndexPrologue}{}{%
  \IndexPrologue{\clearpage\section*{{Code Index}}%
                 \addcontentsline{toc}{section}{Code Index}%
                 \markboth{{Code Index}}{{Code Index}}%
                 Numbers written in italic refer to the page
                 where the corresponding entry is described;
                 numbers underlined refer to the
                 \ifcodeline@index
                   code line of the
                 \fi
                 definition; numbers in roman refer to the
                 \ifcodeline@index
                   code lines
                 \else
                   pages
                 \fi
                 where the entry is used.
                }%
}
\@ifundefined{GlossaryPrologue}{}{%
  \GlossaryPrologue{\section{{Change History}}%
                    \markboth{{Change History}}{{Change History}}%
                   }%
}

\def\APACdocindex{%
    \ifhave@multicol
      \renewenvironment{theindex}
        {\begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]%
          \IndexParms \let\item\@idxitem \ignorespaces}%
        {\end{multicols}}
    \else
      \typeout{Can't find multicol.sty -- will use normal index layout if
         necessary.}
      \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
        \columnseprule \z@  \columnsep 35\p@
        \twocolumn[\index@prologue]%
        \IndexParms \let\item\@idxitem \ignorespaces}
      \def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
    \fi
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% CITATIONS TO THE BIBLE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% To define which Bible version you used.
\def\bibleversion#1{\gdef\@bibleversion{#1}}
\def\@bibleversion{Revised Standard Version}

\def\bibleciteA#1{%
   % If this is the first citation, add bible version.
   {\@ifundefined{flag@bible}%
      {\fullbibleciteA{#1}}%
      {\shortbibleciteA{#1}}%
   }%
}

\def\fullbibleciteA#1{%
   % Insert relevant chapter and verse.
   {#1}%
   { \BBOP\@bibleversion\BBCP}%
   % Flag that bible has been cited.
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

\def\shortbibleciteA#1{%
   % Insert relevant chapter and verse.
   {#1}%
   % Flag that bible has been cited (is this appropriate?).
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

\def\biblecite#1{%
   % If this is the first citation, add bible version.
   {\@ifundefined{flag@bible}%
      {\fullbiblecite{#1}}%
      {\shortbiblecite{#1}}%
   }%
}

\def\fullbiblecite#1{%
   % Open parenthesis.
   {\BBOP}%
   % Insert relevant chapter and verse.
   {#1}%
   % Add bible version.
   {\BBAY{} \@bibleversion}%
   % Close parenthesis.
   {\BBCP}%
   % Flag that bible has been cited.
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

\def\shortbiblecite#1{%
   % Open parenthesis.
   {\BBOP}%
   % Insert relevant chapter and verse.
   {#1}%
   % Close parenthesis.
   {\BBCP}%
   % Flag that bible has been cited (is this appropriate?).
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

\def\bibleciteNP#1{%
   % If this is the first citation, add bible version.
   {\@ifundefined{flag@bible}%
      {\fullbibleciteNP{#1}}%
      {\shortbibleciteNP{#1}}%
   }%
}

\def\fullbibleciteNP#1{%
   % Insert relevant chapter and verse.
   {#1}%
   % Add bible version.
   {\BBAY{} \@bibleversion}%
   % Flag that bible has been cited.
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

\def\shortbibleciteNP#1{%
   % Insert relevant chapter and verse.
   {#1}%
   % Flag that bible has been cited (is this appropriate?).
   {\global\expandafter\def\csname flag@bible\endcsname{DUMMY}}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% COMMANDS TO CITE SONGS.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\bibsong}[4]{}

\newcommand{\citeAsong}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3} {\BBOP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \citeauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\fullciteAsong}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3} {\BBOP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \fullciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\shortciteAsong}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3} {\BBOP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \shortciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\citesong}[1]{%
  \def\bibsong##1##2##3##4{%
    {\BBOP}\APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \citeauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\fullcitesong}[1]{%
  \def\bibsong##1##2##3##4{%
    {\BBOP}\APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \fullciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\shortcitesong}[1]{%
  \def\bibsong##1##2##3##4{%
    {\BBOP}\APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}{\BBCP}%
  }%
  \shortciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\citesongNP}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}%
  }%
  \citeauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\fullcitesongNP}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}%
  }%
  \fullciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

\newcommand{\shortcitesongNP}[1]{%
  \def\bibsong##1##2##3##4{%
    \APACciteatitle{##3},{\BAP}{##1}{\BBAY}{##2}{\BBN}{##4}%
  }%
  \shortciteauthor{#1}%
  \def\bibsong##1##2##3##4{}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% COMMANDS TO CITE DSM.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareRobustCommand{\bibDSM}[4]{#1}
\def\origbibDSM{}
\let\origbibDSM\bibDSM

\newcommand{\DSMauthor}[1]{%
  \def\bibDSM##1##2##3##4{##1}%
  \citeauthor{#1}%
  \let\bibDSM\origbibDSM
}

\newcommand{\DSMfulltitle}[1]{%
  \def\bibDSM##1##2##3##4{##2}%
  \citeauthor{#1}%
  \let\bibDSM\origbibDSM
}

\newcommand{\DSMshorttitle}[1]{%
  \def\bibDSM##1##2##3##4{##4}%
  \citeauthor{#1}%
  \let\bibDSM\origbibDSM
}

\newcommand{\DSMedition}[1]{%
  \def\bibDSM##1##2##3##4{##3}%
  \citeauthor{#1}%
  \let\bibDSM\origbibDSM
}

\newcommand{\DSMciteA}[1]{%
    \@for\@citeb:=#1\do{%
        % Removes a possible space before the citation key
      \edef\@citeb{\expandafter\@firstofone\@citeb}%
        % Is this the first citation?
      \@ifundefined{flag@\@citeb\APAC@extra@b@citeb}%
         {\DSMfullciteA{#1}}%
         {\DSMshortciteA{#1}}%
    }%
}

\newcommand{\DSMfullciteA}[1]{%
  % \emph{Full Title} (edition; \emph{Short Title}; author, year)
  \APACcitebtitle{\DSMfulltitle{#1}}
  \BBOP
  \DSMedition{#1};
  \APACcitebtitle{\DSMshorttitle{#1}};
  \citeNP{#1}%
  \BBCP
}

\newcommand{\DSMshortciteA}[1]{%
  % \emph{Short Title}
  \APACcitebtitle{\DSMshorttitle{#1}}%
}

\newcommand{\DSMcite}[1]{%
    \@for\@citeb:=#1\do{%
        % Removes a possible space before the citation key
      \edef\@citeb{\expandafter\@firstofone\@citeb}%
        % Is this the first citation?
      \@ifundefined{flag@\@citeb\APAC@extra@b@citeb}%
         {\DSMfullcite{#1}}%
         {\DSMshortcite{#1}}%
    }%
}

\newcommand{\DSMfullcite}[1]{%
  % (\emph{Full Title}, edition; \emph{Short Title}; author, year)
  \BBOP
  \APACcitebtitle{\DSMfulltitle{#1}},
  \DSMedition{#1};
  \APACcitebtitle{\DSMshorttitle{#1}};
  \citeNP{#1}%
  \BBCP
}

\newcommand{\DSMshortcite}[1]{%
  % (\emph{Short Title})
  \BBOP\APACcitebtitle{\DSMshorttitle{#1}}\BBCP
}

\newcommand{\DSMciteNP}[1]{%
    \@for\@citeb:=#1\do{%
        % Removes a possible space before the citation key
      \edef\@citeb{\expandafter\@firstofone\@citeb}%
        % Is this the first citation?
      \@ifundefined{flag@\@citeb\APAC@extra@b@citeb}%
         {\DSMfullciteNP{#1}}%
         {\DSMshortciteNP{#1}}%
    }%
}

\newcommand{\DSMfullciteNP}[1]{%
  % (\emph{Full Title}, edition; \emph{Short Title}; author, year)
  \APACcitebtitle{\DSMfulltitle{#1}},
  \DSMedition{#1};
  \APACcitebtitle{\DSMshorttitle{#1}};
  \citeNP{#1}%
}

\newcommand{\DSMshortciteNP}[1]{%
  % (\emph{Short Title})
  \APACcitebtitle{\DSMshorttitle{#1}}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% DOCUMENT-SPECIFIC DEFINITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\@ifundefined{BibTeX}{%
  \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
      T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}% copied from bibtex.web
}{}
\newcommand{\MakeIndex}{\textit{MakeIndex}}
\newcommand{\latextohtml}{\textup{\LaTeX2\texttt{HTML}}}% from html.sty
\newcommand{\LaTeXrtf}{\textup{\LaTeX2RTF}}%
\newcommand{\TeXht}{\textup{\TeX4ht}}%
\newcommand{\Perl}{\textsl{Perl}}%

\newcommand{\EM}{\ensuremath{\triangleright\quad}}

\newcommand{\APACversiondate}[1]{\relax [#1]}

\newcommand{\LC}{\mbox{${}^{\dag}$}}% \LaTeX{} Companion
\newcommand{\X}{\ensuremath{\times}}% for one table
\newcommand{\Y}{\ensuremath{c}}% for one table
\newcommand{\A}{\ensuremath{a}}% for one table

\newcommand{\pkg}[1]{\textsf{#1}}% package name
\newcommand{\fname}[1]{\texttt{#1}}% file name
\newcommand{\fieldname}[1]{\texttt{#1}}% field name
\newcommand{\entryname}[1]{\texttt{#1}}% entry type name
\newcommand{\pkgoption}[1]{\texttt{#1}}% package option
\newcommand{\envirname}[1]{\texttt{#1}}% environment name

\AtBeginDocument{%
  \@ifundefined{cmd}{%
    \newcommand{\cmd}[1]{\texttt{\string#1}}% command, incl. `\'
  }{}%
}

\newcommand{\bs}{{\ttfamily \@backslashchar}}% backslash
\newcommand{\opt}[1]{$\langle${\itshape #1}$\rangle$}% generic text

\newcommand{\cmdtwo}[2]{{\mdseries\bs\texttt{#1\{}\opt{#2}%
                        \texttt{\}}}}%
\newcommand{\cmdthree}[3]{{\mdseries\bs\texttt{#1[}\opt{#2}%
                        \texttt{]\{}\opt{#3}%
                        \texttt{\}}}}%
\newcommand{\cmdthreepre}[3]{{\mdseries\bs\texttt{#1<}\opt{#2}%
                        \texttt{>\{}\opt{#3}%
                        \texttt{\}}}}%
\newcommand{\cmdthreealt}[3]{{\mdseries\bs\texttt{#1[}\opt{#2}%
                        \texttt{]\{#3\}}}}%
\newcommand{\cmdfour}[4]{{\mdseries\bs\texttt{#1<}\opt{#2}%
                        \texttt{>[}\opt{#3}%
                        \texttt{]\{}\opt{#4}%
                        \texttt{\}}}}%

\AtBeginDocument{%
  \@ifundefined{flqq}{%
    \newcommand{\flqq}{%
      {\fontencoding{T1}\fontfamily{cmr}\selectfont\symbol{19}}}%
    \newcommand{\frqq}{%
      {\fontencoding{T1}\fontfamily{cmr}\selectfont\symbol{20}}}%
  }{}%
}%
\newcommand{\simpleguillemots}{%
  \renewcommand{\flqq}{\raisebox{2.5pt}{\tiny{\ensuremath{\mathord{<\!\!<}}}}}%
  \renewcommand{\frqq}{\raisebox{2.5pt}{\tiny{\ensuremath{\mathord{>\!\!>}}}}}%
}%

\newcommand{\APACdocPageLayout}{%
    \normalsize
    \let\oldhoffset\hoffset
    \let\oldvoffset\voffset
    \let\oldoddsidemargin\oddsidemargin
    \let\oldevensidemargin\evensidemargin
    \let\oldtopmargin\topmargin
    \let\oldheadheight\headheight
    \let\oldheadsep\headsep
    \let\oldtextheight\textheight
    \let\oldfootskip\footskip
    \let\oldtextwidth\textwidth
    \let\oldlinewidth\linewidth
    \let\oldmarginparsep\marginparsep
    \let\oldmarginparwidth\marginparwidth
    \let\oldmarginparpush\marginparpush
    \setlength{\hoffset}{-1in} % top-left reference point is
    \setlength{\voffset}{-1in} % the top-left corner of the page
    \setlength{\oddsidemargin}{1.3in}
    \setlength{\evensidemargin}{1.3in}
    \setlength{\topmargin}{1.35in}
    %\setlength{\headheight}{\baselineskip}
    \setlength{\headheight}{0.12in}
    \setlength{\headsep}{0.24in}
    \setlength{\textheight}{7.9in}
    \setlength{\footskip}{30pt}
    \setlength{\textwidth}{5.9in}
    \setlength{\linewidth}{\textwidth}
    \setlength{\marginparsep}{0pt}
    \setlength{\marginparwidth}{0pt}
    \setlength{\marginparpush}{0pt}
}

\newcommand{\APACcodePageLayout}{%
    \let\hoffset\oldhoffset
    \let\oddsidemargin\oldoddsidemargin
    \let\evensidemargin\oldevensidemargin
    \let\textwidth\oldtextwidth
    \let\linewidth\oldlinewidth
    \let\marginparsep\oldmarginparsep
    \let\marginparwidth\oldmarginparwidth
    \let\marginparpush\oldmarginparpush
}

\APACdocPageLayout
%%
\endinput
%%
%% End of file `apacdoc.sty'.