Debian Codegraph @

texmf-dist/doc/latex/apa/APAendfloat.cfg

raw
1 %%
2 %% This is file `endfloat.cfg',
3 %% modifed from the original supplied with the endfloat package
4 %% to handle both sideways floats and longtable
5 %%
6 %% Athanassios Protopapas <[email protected]>
7 %% July 2005
8 %%
9 %% Original authors: James Darrell McCauley <[email protected]>,
10 %% Jeff Goldberg <[email protected]>
11 %% Original version: Version 2.4i <October 1995>
12 %%
13 \RequirePackage{rotating}
14 \let\efsaved@sidewaysfigure\sidewaysfigure
15 \let\efsaved@sidewaystable\sidewaystable
16 \let\efsaved@longtable\longtable
17 \AtBeginTables{\let\sidewaystable=\efsaved@sidewaystable\relax}
18 \AtBeginTables{\let\longtable=\efsaved@longtable\relax}
19 \AtBeginFigures{\let\sidewaysfigure=\efsaved@sidewaysfigure\relax}
20 \def\sidewaystable{\efloat@condopen{ttt}
21 \efloat@iwrite{ttt}{\string\begin{sidewaystable}}%
22 \if@domarkers
23 \addtocounter{posttbl}{1}
24 \tableplace
25 \fi
26 \def\@currenvir{efloat@float}%
27 \begingroup
28 \let\do\ef@makeinnocent \dospecials
29 \ef@makeinnocent\^^L% and whatever other special cases
30 \endlinechar`\^^M \catcode`\^^M=12 \ef@xsidetable}
31 {\catcode`\^^M=12 \endlinechar=-1 %
32 \gdef\ef@xsidetable#1^^M{\def\test{#1}
33 \ifx\test\ef@endsidetabletest
34 \efloat@foundend{ttt}{sidewaystable}
35 \else
36 \efloat@iwrite{ttt}{#1}%
37 \let\next\ef@xsidetable
38 \fi \next}
39 }
40 \def\sidewaysfigure{\efloat@condopen{fff}
41 \efloat@iwrite{fff}{\string\begin{sidewaysfigure}}%
42 \if@domarkers
43 \addtocounter{postfig}{1}
44 \figureplace
45 \fi
46 \def\@currenvir{efloat@float}%
47 \begingroup
48 \let\do\ef@makeinnocent \dospecials
49 \ef@makeinnocent\^^L% and whatever other special cases
50 \endlinechar`\^^M \catcode`\^^M=12 \ef@xsidefigure}
51 {\catcode`\^^M=12 \endlinechar=-1 %
52 \gdef\ef@xsidefigure#1^^M{\def\test{#1}
53 \ifx\test\ef@endsidefiguretest
54 \efloat@foundend{fff}{sidewaysfigure}
55 \else
56 \efloat@iwrite{fff}{#1}%
57 \let\next\ef@xsidefigure
58 \fi \next}
59 }
60 \def\longtable{\efloat@condopen{ttt}
61 \efloat@iwrite{ttt}{\string\begin{longtable}}%
62 \if@domarkers
63 \addtocounter{posttbl}{1}
64 \tableplace
65 \fi
66 \def\@currenvir{efloat@float}%
67 \begingroup
68 \let\do\ef@makeinnocent \dospecials
69 \ef@makeinnocent\^^L% and whatever other special cases
70 \endlinechar`\^^M \catcode`\^^M=12 \ef@xlongtable}
71 {\catcode`\^^M=12 \endlinechar=-1 %
72 \gdef\ef@xlongtable#1^^M{\def\test{#1}
73 \ifx\test\ef@endlongtabletest
74 \efloat@foundend{ttt}{longtable}
75 \else
76 \efloat@iwrite{ttt}{#1}%
77 \let\next\ef@xlongtable
78 \fi \next}
79 }
80 {\escapechar=-1%
81 \xdef\ef@endsidefiguretest{\string\\end\string\{sidewaysfigure\string\}}%
82 \xdef\ef@endsidetabletest{\string\\end\string\{sidewaystable\string\}}
83 \xdef\ef@endlongtabletest{\string\\end\string\{longtable\string\}}}%
84 \endinput
85 %%
86 %% End of file `endfloat.cfg'.