summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/apa-a.4ht
blob: c94ceb161c46fbbcc919d5da9f71756f7f3af10c (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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% apa-a.4ht                             2007-01-03-21:02 %
% Copyright (C) 2003--2007       Eitan M. Gurari         %
%                                                        %
% This work 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 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% If you modify this program your changing its signature %
% with a directive of the following form will be         %
% appreciated.                                           %
%            \message{signature}                         %
%                                                        %
%                             gurari@cse.ohio-state.edu  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version 2007-01-03-21:02}

\append:def\maketitle{\egroup}
\pend:def\maketitle{%
  \bgroup
  \ConfigureEnv{figure}{\def\makebox[########1]########2{}}{}{}{}%
  \@ifundefined{@abstract}{}{%
     \pend:def\@abstract{\a:abstract}%
     \append:def\@abstract{\b:abstract}%
  }%
  \@ifundefined{@note}{}{%
     \pend:def\@note{\a:note}%
     \append:def\@note{\b:note}%
  }%
  \@ifundefined{@author}{}{%
   \pend:def\@affil{\a:affil}%
   \append:def\@affil{\b:affil}%
}%
\@ifundefined{@authorOne}{}{%
   \pend:def\@authorOne{\a:aut}%
   \append:def\@authorOne{\b:aut}%
   \pend:def\@affilOne{\a:affil}%
   \append:def\@affilOne{\b:affil}%
}%
\@ifundefined{@authorTwo}{}{%
   \pend:def\@authorTwo{\a:aut}%
   \append:def\@authorTwo{\b:aut}%
   \pend:def\@affilTwo{\a:affil}%
   \append:def\@affilTwo{\b:affil}%
}%
\@ifundefined{@authorFour}{}{%
   \pend:def\@authorFour{\a:aut}%
   \append:def\@authorFour{\b:aut}%
   \pend:def\@affilFour{\a:affil}%
   \append:def\@affilFour{\b:affil}%
}%
%
}
\NewConfigure{abstract}{2}
\NewConfigure{note}{2}
\NewConfigure{affil}{2}
\def\appendix{%
  \appendixtrue
  \apaappfig
  \apaapptab
  \ifapamodejou{}{\clearpage}
  \let\old@apa@section=\leveltwo
  \newlength{\app@t@width}
  \setlength{\app@t@width}{\columnwidth}
  \addtolength{\app@t@width}{-8em}%
  \long\def\leveltwo##1{%
     \ifapamodeman{%
       \clearpage
       \setcounter{postfig}{0}
       \setcounter{posttbl}{0}
       \efloat@condopen{fff}
       \efloat@iwrite{fff}{\string\addtocounter{appendix}{1}}
       \efloat@iwrite{fff}{\string\setcounter{figure}{0}}
       \efloat@condopen{ttt}
       \efloat@iwrite{ttt}{\string\addtocounter{appendix}{1}}
       \efloat@iwrite{ttt}{\string\setcounter{table}{0}}%
      }{%
       \setcounter{figure}{0}%
       \setcounter{table}{0}%
      }%
      \refstepcounter{appendix}%
      \ifnum\c@appendix>1 \immediate\write
               \@auxout{\global\string\oneappendixfalse}\fi%
      \old@apa@section{%
             \appendixname\ifoneappendix\else~\theappendix\fi\\
             ##1%
      }%
  }%
}
\append:def\seriate{\a:seriate
   \pend:def\item{\c:seriate
      \let\sp:ce=\space
      \def\space{\d:seriate\let\space=\sp:ce \space}%
}}%
\pend:def\endseriate{\b:seriate}
\NewConfigure{seriate}{4}
\def\s@title{}
\def\shorttitle#1{}
\AtBeginDocument{\def\rheadname{}}

\Hinput{apa}
\endinput